Index: include/gpu/GrProcessor.h |
diff --git a/include/gpu/GrProcessor.h b/include/gpu/GrProcessor.h |
index c860b32c1bdc0f235a81cb3988342f886dd2b7c1..f7579cd76e3f667a47f490ba7cf72ca51d22e3d6 100644 |
--- a/include/gpu/GrProcessor.h |
+++ b/include/gpu/GrProcessor.h |
@@ -200,6 +200,8 @@ public: |
template <typename T> const T& cast() const { return *static_cast<const T*>(this); } |
protected: |
+ GrProcessor() : fWillReadFragmentPosition(false) {} |
+ |
/** |
* Subclasses call this from their constructor to register GrTextureAccesses. The processor |
* subclass manages the lifetime of the accesses (this function only stores a pointer). The |
@@ -208,8 +210,7 @@ protected: |
*/ |
void addTextureAccess(const GrTextureAccess* textureAccess); |
- GrProcessor() |
- : fWillReadFragmentPosition(false) {} |
+ bool hasSameTextureAccesses(const GrProcessor&) const; |
/** |
* If the prcoessor will generate a backend-specific processor that will read the fragment |
@@ -218,8 +219,6 @@ protected: |
*/ |
void setWillReadFragmentPosition() { fWillReadFragmentPosition = true; } |
- SkDEBUGCODE(void assertTexturesEqual(const GrProcessor& other) const;) |
- |
private: |
/** |