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

Unified Diff: src/gpu/GrTessellatingPathRenderer.h

Issue 1114353004: Implement vertex buffer caching in the tessellated path renderer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Integrated cache invalidation based on SkPath GenID change Created 5 years, 5 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: src/gpu/GrTessellatingPathRenderer.h
diff --git a/src/gpu/GrTessellatingPathRenderer.h b/src/gpu/GrTessellatingPathRenderer.h
index 79cafc99f520fe1a229bf52108528eda6657fd2f..4f0b638dd95bd8ff39b1eb87417afd81fc8dc1ed 100644
--- a/src/gpu/GrTessellatingPathRenderer.h
+++ b/src/gpu/GrTessellatingPathRenderer.h
@@ -16,7 +16,7 @@
*/
class SK_API GrTessellatingPathRenderer : public GrPathRenderer {
public:
- GrTessellatingPathRenderer();
+ explicit GrTessellatingPathRenderer(GrContext*);
bool canDrawPath(const GrDrawTarget*,
const GrPipelineBuilder*,
@@ -40,6 +40,8 @@ protected:
bool antiAlias) override;
typedef GrPathRenderer INHERITED;
+private:
+ GrContext* fContext;
bsalomon 2015/07/28 14:55:48 Do we need a long lived ptr back to the context? I
Stephen White 2015/07/28 15:10:28 It's to get the GrGpu to call createVertexBuffer()
bsalomon 2015/07/28 21:23:30 Gotcha, that code predates some refactoring. We wa
Stephen White 2015/07/28 22:11:23 Logged as http://skbug.com/4130.
};
#endif

Powered by Google App Engine
This is Rietveld 408576698