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

Unified Diff: include/gpu/GrContext.h

Issue 23120004: Change Atlas recycling to track current flush count and recycle if Atlas not used in current flush. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Disable font cache stats Created 7 years, 4 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 | « no previous file | src/gpu/GrAtlas.h » ('j') | src/gpu/GrTextStrike.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index ced251b204a32d4298ec895c373aef0987b84673..b6093c6273171e66ff6afa2d3d1d826b9ec7b128 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -824,6 +824,7 @@ public:
GrFontCache* getFontCache() { return fFontCache; }
GrDrawTarget* getTextTarget();
const GrIndexBuffer* getQuadIndexBuffer() const;
+ uint64_t getFlushCount() const { return fFlushCount; }
bsalomon 2013/08/13 21:18:28 I think this guy needs some documentation even tho
/**
* Stencil buffers add themselves to the cache using addStencilBuffer. findStencilBuffer is
@@ -883,6 +884,8 @@ private:
SkTDArray<CleanUpData> fCleanUpData;
int fMaxTextureSizeOverride;
+
+ uint64_t fFlushCount;
GrContext(); // init must be called after the constructor.
bool init(GrBackend, GrBackendContext);
« no previous file with comments | « no previous file | src/gpu/GrAtlas.h » ('j') | src/gpu/GrTextStrike.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698