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

Unified Diff: include/gpu/GrProcessor.h

Issue 1275853005: All child GrFragmentProcs' transforms and textures will be stored in the root GrFragmentProc in pre… (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: use GrFragmentStage array for children Created 5 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/GrProcessor.h
diff --git a/include/gpu/GrProcessor.h b/include/gpu/GrProcessor.h
index 719577377d18924b8bcc6bc773d7a56d981b13d1..a8bbdf8237e7db5b742afff59087b0796ae034d9 100644
--- a/include/gpu/GrProcessor.h
+++ b/include/gpu/GrProcessor.h
@@ -63,11 +63,13 @@ public:
in generated shader code. */
virtual const char* name() const = 0;
- int numTextures() const { return fTextureAccesses.count(); }
+ virtual int numTextures() const { return fTextureAccesses.count(); }
/** Returns the access pattern for the texture at index. index must be valid according to
numTextures(). */
- const GrTextureAccess& textureAccess(int index) const { return *fTextureAccesses[index]; }
+ virtual const GrTextureAccess& textureAccess(int index) const {
+ return *fTextureAccesses[index];
+ }
/** Shortcut for textureAccess(index).texture(); */
GrTexture* texture(int index) const { return this->textureAccess(index).getTexture(); }
@@ -118,6 +120,7 @@ protected:
}
uint32_t fClassID;
+ SkSTArray<4, const GrTextureAccess*, true> fTextureAccesses;
private:
static uint32_t GenClassID() {
@@ -137,7 +140,6 @@ private:
};
static int32_t gCurrProcessorClassID;
- SkSTArray<4, const GrTextureAccess*, true> fTextureAccesses;
bool fWillReadFragmentPosition;
typedef GrProgramElement INHERITED;

Powered by Google App Engine
This is Rietveld 408576698