aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrCustomStage.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gpu/GrCustomStage.h b/include/gpu/GrCustomStage.h
index 9765a42f2b..d75675c6c1 100644
--- a/include/gpu/GrCustomStage.h
+++ b/include/gpu/GrCustomStage.h
@@ -35,7 +35,7 @@ public:
typedef GrProgramStageFactory::StageKey StageKey;
- GrCustomStage();
+ explicit GrCustomStage(int numTextures);
virtual ~GrCustomStage();
/** If given an input texture that is/is not opaque, is this
@@ -81,7 +81,7 @@ public:
in generated shader code. */
const char* name() const { return this->getFactory().name(); }
- virtual int numTextures() const;
+ int numTextures() const { return fNumTextures; }
/** Returns the access pattern for the texture at index. index must be valid according to
numTextures(). */
@@ -94,6 +94,7 @@ public:
void operator delete(void* target);
private:
+ int fNumTextures;
typedef GrRefCnt INHERITED;
};