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

Unified Diff: include/gpu/GrProcessor.h

Issue 654313002: Auto-compare GrProcessors' texture accesses in isEqual(). (Closed) Base URL: https://skia.googlesource.com/skia.git@xformcomp
Patch Set: update Created 6 years, 2 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 | « include/gpu/GrGeometryProcessor.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
/**
« no previous file with comments | « include/gpu/GrGeometryProcessor.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698