Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1178)

Unified Diff: third_party/WebKit/Source/platform/fonts/Font.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..5595bc9b8f42ba1d4f28a9bf6c0d1a20d042a9f9 100644
--- a/third_party/WebKit/Source/platform/fonts/Font.h
+++ b/third_party/WebKit/Source/platform/fonts/Font.h
@@ -31,6 +31,8 @@
#include "platform/fonts/FontFallbackList.h"
#include "platform/fonts/FontFallbackPriority.h"
#include "platform/fonts/SimpleFontData.h"
+#include "platform/graphics/paint/PaintCanvas.h"
+#include "platform/graphics/paint/PaintFlags.h"
#include "platform/text/TabSize.h"
#include "platform/text/TextDirection.h"
#include "wtf/Allocator.h"
@@ -39,9 +41,6 @@
#include "wtf/MathExtras.h"
#include "wtf/text/CharacterNames.h"
-class SkCanvas;
-class SkPaint;
-
namespace blink {
struct CharacterRange;
@@ -79,23 +78,23 @@ class PLATFORM_EXPORT Font {
DoNotPaintIfFontNotReady,
UseFallbackIfFontNotReady
};
- bool drawText(SkCanvas*,
+ bool drawText(PaintCanvas*,
const TextRunPaintInfo&,
const FloatPoint&,
float deviceScaleFactor,
- const SkPaint&) const;
- bool drawBidiText(SkCanvas*,
+ const PaintFlags&) const;
+ bool drawBidiText(PaintCanvas*,
const TextRunPaintInfo&,
const FloatPoint&,
CustomFontNotReadyAction,
float deviceScaleFactor,
- const SkPaint&) const;
- void drawEmphasisMarks(SkCanvas*,
+ const PaintFlags&) const;
+ void drawEmphasisMarks(PaintCanvas*,
const TextRunPaintInfo&,
const AtomicString& mark,
const FloatPoint&,
float deviceScaleFactor,
- const SkPaint&) const;
+ const PaintFlags&) const;
struct TextIntercept {
float m_begin, m_end;
@@ -110,7 +109,7 @@ class PLATFORM_EXPORT Font {
// upright in vertical.
void getTextIntercepts(const TextRunPaintInfo&,
float deviceScaleFactor,
- const SkPaint&,
+ const PaintFlags&,
const std::tuple<float, float>& bounds,
Vector<TextIntercept>&) const;
@@ -177,8 +176,8 @@ class PLATFORM_EXPORT Font {
float buildGlyphBuffer(const TextRunPaintInfo&,
GlyphBuffer&,
const GlyphData* emphasisData = nullptr) const;
- void drawGlyphBuffer(SkCanvas*,
- const SkPaint&,
+ void drawGlyphBuffer(PaintCanvas*,
+ const PaintFlags&,
const TextRunPaintInfo&,
const GlyphBuffer&,
const FloatPoint&,

Powered by Google App Engine
This is Rietveld 408576698