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

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: fixing mac compiler warning 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..33b53773a8ec3f8a0730a67de9ada01112f83932 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;
@@ -27,7 +29,7 @@ public:
fVertexAttribIndices[1] = attrIndex1;
}
robertphillips 2014/08/29 15:04:53 We don't usually add the explicit empty INHERITED(
joshua.litt 2014/09/02 16:06:21 Well, if I don't do this then I get a warning on m
- GrEffectStage(const GrEffectStage& other) {
+ GrEffectStage(const GrEffectStage& other) : INHERITED() {
bsalomon 2014/08/29 15:07:25 We don't require explicit calls of default cons fo
joshua.litt 2014/09/02 16:06:21 see above
*this = other;
}
@@ -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/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698