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

Unified Diff: include/gpu/GrEffectStage.h

Issue 509153002: Initial change to create GeometryProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: adding some tests to ignore Created 6 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
Index: include/gpu/GrEffectStage.h
diff --git a/include/gpu/GrEffectStage.h b/include/gpu/GrEffectStage.h
index 65c7bebdc7056f7da58960ea61e489fd5c2cd73d..c8a785c12449392a91a228807f798744932d2e93 100644
--- a/include/gpu/GrEffectStage.h
+++ b/include/gpu/GrEffectStage.h
@@ -18,8 +18,10 @@
#include "SkShader.h"
-class GrEffectStage {
+class GrEffectStage : public SkRefCnt {
public:
+ SK_DECLARE_INST_COUNT(GrEffectStage);
+
explicit GrEffectStage(const GrEffect* effect, int attrIndex0 = -1, int attrIndex1 = -1)
: fEffect(SkRef(effect)) {
fCoordChangeMatrixSet = false;
@@ -141,6 +143,8 @@ private:
SkMatrix fCoordChangeMatrix;
SkAutoTUnref<const GrEffect> fEffect;
int fVertexAttribIndices[2];
+
+ typedef SkRefCnt INHERITED;
};
#endif
« no previous file with comments | « gm/beziereffects.cpp ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | src/gpu/GrDrawState.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698