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

Unified Diff: src/gpu/gl/GrGLPathProgramDataManager.h

Issue 1333273003: Start trying to collapse path program stuff (Closed) Base URL: https://skia.googlesource.com/skia.git@removebt
Patch Set: windows Created 5 years, 3 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 | « src/gpu/gl/GrGLPathProcessor.cpp ('k') | src/gpu/gl/GrGLPathProgramDataManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLPathProgramDataManager.h
diff --git a/src/gpu/gl/GrGLPathProgramDataManager.h b/src/gpu/gl/GrGLPathProgramDataManager.h
index 9eeac7ea2083948dae85a69b5a5164cfb9e50c92..376dff4b2d11f36627d455080c1a733ffd957ff6 100644
--- a/src/gpu/gl/GrGLPathProgramDataManager.h
+++ b/src/gpu/gl/GrGLPathProgramDataManager.h
@@ -17,27 +17,7 @@ class GrGLPathProgramBuilder;
*/
class GrGLPathProgramDataManager : SkNoncopyable {
public:
- class SeparableVaryingHandle : public GrGLProgramDataManager::ShaderResourceHandle {
- public:
- /*
- * Creates a reference to a separable varying of a GrGLShaderBuilder. The ref can be used
- * to set the varying with the corresponding GrGLPathProgramDataManager.
- */
- static SeparableVaryingHandle CreateFromSeparableVaryingIndex(int i) {
- return GrGLPathProgramDataManager::SeparableVaryingHandle(i);
- }
- SeparableVaryingHandle() { }
- bool operator==(const SeparableVaryingHandle& other) {
- return other.fValue == fValue;
- }
- private:
- SeparableVaryingHandle(int value) : ShaderResourceHandle(value) { }
- int toProgramDataIndex() const { SkASSERT(isValid()); return fValue; }
- int toShaderBuilderIndex() const { return toProgramDataIndex(); }
-
- friend class GrGLPathProgramDataManager; // For accessing toProgramDataIndex().
- friend class GrGLPathProcessor; // For accessing toShaderBuilderIndex().
- };
+ typedef GrGLProgramDataManager::ShaderResourceHandle SeparableVaryingHandle;
struct SeparableVaryingInfo {
GrGLShaderVar fVariable;
« no previous file with comments | « src/gpu/gl/GrGLPathProcessor.cpp ('k') | src/gpu/gl/GrGLPathProgramDataManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698