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

Unified Diff: src/gpu/GrAARectRenderer.h

Issue 1116943004: Move instanced index buffer creation to flush time (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: static inline instead of inline static, because consistency 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
Index: src/gpu/GrAARectRenderer.h
diff --git a/src/gpu/GrAARectRenderer.h b/src/gpu/GrAARectRenderer.h
index 3193f4bc3a4d83d4d9a522be22bfa36e2b56939e..d8038ac45ffb53c7aec6d5a55ca67811a00ef538 100644
--- a/src/gpu/GrAARectRenderer.h
+++ b/src/gpu/GrAARectRenderer.h
@@ -9,6 +9,7 @@
#define GrAARectRenderer_DEFINED
#include "GrColor.h"
robertphillips 2015/05/04 13:16:00 Do we need this here ?
bsalomon 2015/05/04 15:01:09 Done.
+#include "GrResourceKey.h"
#include "SkMatrix.h"
#include "SkRect.h"
#include "SkRefCnt.h"
@@ -16,9 +17,9 @@
class GrClip;
class GrDrawTarget;
-class GrGpu;
class GrIndexBuffer;
class GrPipelineBuilder;
robertphillips 2015/05/04 13:16:00 This too?
bsalomon 2015/05/04 15:01:09 Done.
+class GrResourceProvider;
/*
* This class wraps helper functions that draw AA rects (filled & stroked)
@@ -27,19 +28,6 @@ class GrAARectRenderer : public SkRefCnt {
public:
SK_DECLARE_INST_COUNT(GrAARectRenderer)
- GrAARectRenderer(GrGpu* gpu)
- : fGpu(gpu)
- , fAAFillRectIndexBuffer(NULL)
- , fAAMiterStrokeRectIndexBuffer(NULL)
- , fAABevelStrokeRectIndexBuffer(NULL) {
- }
-
- void reset();
-
- ~GrAARectRenderer() {
- this->reset();
- }
-
// TODO: potentialy fuse the fill & stroke methods and differentiate
// between them by passing in stroke (==NULL means fill).
@@ -84,11 +72,6 @@ private:
const SkRect& devInside,
bool miterStroke);
- GrGpu* fGpu;
- GrIndexBuffer* fAAFillRectIndexBuffer;
- GrIndexBuffer* fAAMiterStrokeRectIndexBuffer;
- GrIndexBuffer* fAABevelStrokeRectIndexBuffer;
-
typedef SkRefCnt INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698