diff --git a/impeller/typographer/backends/skia/typeface_skia.cc b/impeller/typographer/backends/skia/typeface_skia.cc index 552e159f1f824..df0b88be16a5e 100644 --- a/impeller/typographer/backends/skia/typeface_skia.cc +++ b/impeller/typographer/backends/skia/typeface_skia.cc @@ -28,17 +28,6 @@ bool TypefaceSkia::IsEqual(const Typeface& other) const { return sk_other->typeface_ == typeface_; } -Rect TypefaceSkia::GetBoundingBox() const { - if (!IsValid()) { - return {}; - } - - const auto bounds = typeface_->getBounds(); - - return Rect::MakeLTRB(bounds.left(), bounds.top(), bounds.right(), - bounds.bottom()); -} - const sk_sp& TypefaceSkia::GetSkiaTypeface() const { return typeface_; } diff --git a/impeller/typographer/backends/skia/typeface_skia.h b/impeller/typographer/backends/skia/typeface_skia.h index 6ac52c47761fe..03fd2dbe8c6e9 100644 --- a/impeller/typographer/backends/skia/typeface_skia.h +++ b/impeller/typographer/backends/skia/typeface_skia.h @@ -28,9 +28,6 @@ class TypefaceSkia final : public Typeface, // |Comparable| bool IsEqual(const Typeface& other) const override; - // |Typeface| - Rect GetBoundingBox() const override; - const sk_sp& GetSkiaTypeface() const; private: diff --git a/impeller/typographer/typeface.h b/impeller/typographer/typeface.h index f3a4fe265af7f..39e8186772fc5 100644 --- a/impeller/typographer/typeface.h +++ b/impeller/typographer/typeface.h @@ -24,15 +24,6 @@ class Typeface : public Comparable { virtual bool IsValid() const = 0; - //---------------------------------------------------------------------------- - /// @brief Get the union of the bounding boxes of all glyphs in the - /// typeface. This box is unit-scaled and conservatively large to - /// cover all glyphs. - /// - /// @return The conservative unit-scaled bounding box. - /// - virtual Rect GetBoundingBox() const = 0; - private: FML_DISALLOW_COPY_AND_ASSIGN(Typeface); };