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

Unified Diff: src/gpu/GrOvalRenderer.h

Issue 1126613003: Revert of Move instanced index buffer creation to flush time (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOvalRenderer.h
diff --git a/src/gpu/GrOvalRenderer.h b/src/gpu/GrOvalRenderer.h
index 57ce2a5dfe056174d9cc6e0386e09443bc02e313..f31aa69bb2d0d34e93064923517503d5469e2a2c 100644
--- a/src/gpu/GrOvalRenderer.h
+++ b/src/gpu/GrOvalRenderer.h
@@ -23,6 +23,16 @@
class GrOvalRenderer : public SkRefCnt {
public:
SK_DECLARE_INST_COUNT(GrOvalRenderer)
+
+ GrOvalRenderer(GrGpu* gpu)
+ : fGpu(gpu)
+ , fRRectIndexBuffer(NULL)
+ , fStrokeRRectIndexBuffer(NULL) {}
+ ~GrOvalRenderer() {
+ this->reset();
+ }
+
+ void reset();
bool drawOval(GrDrawTarget*,
GrPipelineBuilder*,
@@ -69,6 +79,10 @@
const SkRect& circle,
const SkStrokeRec& stroke);
+ GrGpu* fGpu;
+ GrIndexBuffer* fRRectIndexBuffer;
+ GrIndexBuffer* fStrokeRRectIndexBuffer;
+
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698