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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h

Issue 2714413003: Remove GlyphBuffer (Closed)
Patch Set: format Created 3 years, 9 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/shaping/CachingWordShaper.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h
index 30dce3593a042b346902a67241a8522b76310820..2cb7946e2685b8637456fed9d8081d64e6374bb6 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/CachingWordShaper.h
@@ -37,9 +37,9 @@ namespace blink {
struct CharacterRange;
class Font;
-class GlyphBuffer;
class ShapeCache;
class SimpleFontData;
+class ShapeResultBloberizer;
struct GlyphData;
class PLATFORM_EXPORT CachingWordShaper final {
@@ -56,15 +56,11 @@ class PLATFORM_EXPORT CachingWordShaper final {
int offsetForPosition(const TextRun&,
float targetX,
bool includePartialGlyphs);
- float fillGlyphBuffer(const TextRun&,
- GlyphBuffer*,
- unsigned from,
- unsigned to);
- float fillGlyphBufferForTextEmphasis(const TextRun&,
- const GlyphData* emphasisData,
- GlyphBuffer*,
- unsigned from,
- unsigned to);
+
+ float fillGlyphs(const TextRunPaintInfo&, ShapeResultBloberizer&);
+ void fillTextEmphasisGlyphs(const TextRunPaintInfo&,
+ const GlyphData& emphasisData,
+ ShapeResultBloberizer&);
CharacterRange getCharacterRange(const TextRun&,
unsigned from,
unsigned to);

Powered by Google App Engine
This is Rietveld 408576698