| 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;
|
|
|