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

Unified Diff: include/gpu/GrEffectStage.h

Issue 542723004: Make GrDrawState and GrEffectStage use the pending io/exec ref mechanisms. (Closed) Base URL: https://skia.googlesource.com/skia.git@complete
Patch Set: revert two files Created 6 years, 3 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 | « no previous file | include/gpu/GrTextureAccess.h » ('j') | src/gpu/GrAllocator.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrEffectStage.h
diff --git a/include/gpu/GrEffectStage.h b/include/gpu/GrEffectStage.h
index 65c7bebdc7056f7da58960ea61e489fd5c2cd73d..79fe9913e8f589a031db38dff956f31c0fa22dcc 100644
--- a/include/gpu/GrEffectStage.h
+++ b/include/gpu/GrEffectStage.h
@@ -13,9 +13,8 @@
#include "GrBackendEffectFactory.h"
#include "GrEffect.h"
+#include "GrProgramElementRef.h"
#include "SkMatrix.h"
-#include "GrTypes.h"
-
#include "SkShader.h"
class GrEffectStage {
@@ -136,10 +135,12 @@ public:
const int* getVertexAttribIndices() const { return fVertexAttribIndices; }
int getVertexAttribIndexCount() const { return fEffect->numVertexAttribs(); }
+ void convertToPendingExec() { fEffect.convertToPendingExec(); }
+
private:
bool fCoordChangeMatrixSet;
SkMatrix fCoordChangeMatrix;
- SkAutoTUnref<const GrEffect> fEffect;
+ GrProgramElementRef<const GrEffect> fEffect;
int fVertexAttribIndices[2];
};
« no previous file with comments | « no previous file | include/gpu/GrTextureAccess.h » ('j') | src/gpu/GrAllocator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698