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

Unified Diff: src/gpu/GrStencilAndCoverTextContext.h

Issue 1507203002: Improve nvpr glyph batching (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_drawpathbatch
Patch Set: re-fix issue dependencies Created 5 years 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 | « no previous file | 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 7716c784052a9ef4e01b2a928537e02dd6a8a9ba..dab71e057859f798ca3258ce390055d1aee57fad 100644
--- a/src/gpu/GrStencilAndCoverTextContext.h
+++ b/src/gpu/GrStencilAndCoverTextContext.h
@@ -14,11 +14,11 @@
#include "SkTHash.h"
#include "SkTInternalLList.h"
#include "SkTLList.h"
+#include "batches/GrDrawPathBatch.h"
class GrTextStrike;
class GrPath;
class SkSurfaceProps;
-class GrPathRangeDraw;
/*
* This class implements text rendering using stencil and cover path rendering
@@ -75,6 +75,8 @@ private:
size_t computeSizeInCache() const;
private:
+ typedef GrDrawPathRangeBatch::InstanceData InstanceData;
+
SkGlyphCache* getGlyphCache() const;
GrPathRange* createGlyphs(GrContext*) const;
void appendGlyph(const SkGlyph&, const SkPoint&, FallbackBlobBuilder*);
@@ -86,11 +88,11 @@ private:
bool fUsingRawGlyphPaths;
GrUniqueKey fGlyphPathsKey;
int fTotalGlyphCount;
- SkAutoTUnref<GrPathRangeDraw> fDraw;
+ SkAutoTUnref<InstanceData> fInstanceData;
+ int fFallbackGlyphCount;
SkAutoTUnref<const SkTextBlob> fFallbackTextBlob;
mutable SkGlyphCache* fDetachedGlyphCache;
mutable uint32_t fLastDrawnGlyphsID;
- mutable SkMatrix fLocalMatrixTemplate;
};
// Text blobs/caches.
« no previous file with comments | « no previous file | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698