| Index: third_party/WebKit/Source/platform/fonts/Font.h
|
| diff --git a/third_party/WebKit/Source/platform/fonts/Font.h b/third_party/WebKit/Source/platform/fonts/Font.h
|
| index b85ee0e5ba42330af2890944d66ac3289e875814..d397691612bfaed12839a4d53ef8db2b2d4354fa 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/Font.h
|
| +++ b/third_party/WebKit/Source/platform/fonts/Font.h
|
| @@ -33,15 +33,13 @@
|
| #include "platform/fonts/SimpleFontData.h"
|
| #include "platform/text/TabSize.h"
|
| #include "platform/text/TextDirection.h"
|
| +#include "skia/ext/cdl_common.h"
|
| #include "wtf/Allocator.h"
|
| #include "wtf/HashMap.h"
|
| #include "wtf/HashSet.h"
|
| #include "wtf/MathExtras.h"
|
| #include "wtf/text/CharacterNames.h"
|
|
|
| -class SkCanvas;
|
| -class SkPaint;
|
| -
|
| namespace blink {
|
|
|
| struct CharacterRange;
|
| @@ -79,23 +77,23 @@ class PLATFORM_EXPORT Font {
|
| DoNotPaintIfFontNotReady,
|
| UseFallbackIfFontNotReady
|
| };
|
| - bool drawText(SkCanvas*,
|
| + bool drawText(CdlCanvas*,
|
| const TextRunPaintInfo&,
|
| const FloatPoint&,
|
| float deviceScaleFactor,
|
| - const SkPaint&) const;
|
| - bool drawBidiText(SkCanvas*,
|
| + const CdlPaint&) const;
|
| + bool drawBidiText(CdlCanvas*,
|
| const TextRunPaintInfo&,
|
| const FloatPoint&,
|
| CustomFontNotReadyAction,
|
| float deviceScaleFactor,
|
| - const SkPaint&) const;
|
| - void drawEmphasisMarks(SkCanvas*,
|
| + const CdlPaint&) const;
|
| + void drawEmphasisMarks(CdlCanvas*,
|
| const TextRunPaintInfo&,
|
| const AtomicString& mark,
|
| const FloatPoint&,
|
| float deviceScaleFactor,
|
| - const SkPaint&) const;
|
| + const CdlPaint&) const;
|
|
|
| struct TextIntercept {
|
| float m_begin, m_end;
|
| @@ -110,7 +108,7 @@ class PLATFORM_EXPORT Font {
|
| // upright in vertical.
|
| void getTextIntercepts(const TextRunPaintInfo&,
|
| float deviceScaleFactor,
|
| - const SkPaint&,
|
| + const CdlPaint&,
|
| const std::tuple<float, float>& bounds,
|
| Vector<TextIntercept>&) const;
|
|
|
| @@ -177,8 +175,8 @@ class PLATFORM_EXPORT Font {
|
| float buildGlyphBuffer(const TextRunPaintInfo&,
|
| GlyphBuffer&,
|
| const GlyphData* emphasisData = nullptr) const;
|
| - void drawGlyphBuffer(SkCanvas*,
|
| - const SkPaint&,
|
| + void drawGlyphBuffer(CdlCanvas*,
|
| + const CdlPaint&,
|
| const TextRunPaintInfo&,
|
| const GlyphBuffer&,
|
| const FloatPoint&,
|
|
|