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

Unified Diff: src/gpu/GrStencilAndCoverTextContext.h

Issue 563283004: Use per-typeface sets of glyphs for nvpr text (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_glyphmemorypath
Patch Set: Touch up fake bold stroking Created 6 years, 3 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
« no previous file with comments | « src/gpu/GrPathRendering.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrStencilAndCoverTextContext.h
diff --git a/src/gpu/GrStencilAndCoverTextContext.h b/src/gpu/GrStencilAndCoverTextContext.h
index 08d7526b7e390d20e70ef86a75645abad70da2f8..4e411477d4628749dd307d3a68938ec9aa2ac121 100644
--- a/src/gpu/GrStencilAndCoverTextContext.h
+++ b/src/gpu/GrStencilAndCoverTextContext.h
@@ -15,6 +15,7 @@
class GrTextStrike;
class GrPath;
+class GrPathRange;
/*
* This class implements text rendering using stencil and cover path rendering
@@ -37,15 +38,14 @@ public:
virtual bool canDraw(const SkPaint& paint) SK_OVERRIDE;
private:
- class GlyphPathRange;
static const int kGlyphBufferSize = 1024;
- enum DeviceSpaceGlyphsBehavior {
- kUseIfNeeded_DeviceSpaceGlyphsBehavior,
- kDoNotUse_DeviceSpaceGlyphsBehavior,
+ enum RenderMode {
bsalomon 2014/09/17 20:57:29 Maybe some comment here on the nature of the short
Chris Dalton 2014/09/17 22:22:56 Done.
+ kMaxAccuracy_RenderMode,
+ kMaxPerformance_RenderMode,
};
void init(const GrPaint&, const SkPaint&, size_t textByteLength,
- DeviceSpaceGlyphsBehavior, SkScalar textTranslateY = 0);
+ RenderMode, SkScalar textTranslateY = 0);
void initGlyphs(SkGlyphCache* cache);
void appendGlyph(uint16_t glyphID, float x);
void appendGlyph(uint16_t glyphID, float x, float y);
@@ -55,9 +55,8 @@ private:
GrDrawState::AutoRestoreEffects fStateRestore;
SkScalar fTextRatio;
float fTextInverseRatio;
- SkStrokeRec fStroke;
SkGlyphCache* fGlyphCache;
- GlyphPathRange* fGlyphs;
+ GrPathRange* fGlyphs;
uint32_t fIndexBuffer[kGlyphBufferSize];
float fTransformBuffer[2 * kGlyphBufferSize];
GrDrawTarget::PathTransformType fTransformType;
« no previous file with comments | « src/gpu/GrPathRendering.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698