diff options
author | 2014-12-09 09:00:49 -0800 | |
---|---|---|
committer | 2014-12-09 09:00:49 -0800 | |
commit | 17168df7798d0d12684f18df0556dc19e65b32e6 (patch) | |
tree | c146317e443c68d41d03f7e5b623cf22ef2386e7 /src/gpu/gl/builders/GrGLProgramBuilder.h | |
parent | 303044579913eacc177d4b28a674121725c565bb (diff) |
Use texture size to determine precision of texture coord varyings.
Review URL: https://codereview.chromium.org/778783002
Diffstat (limited to 'src/gpu/gl/builders/GrGLProgramBuilder.h')
-rw-r--r-- | src/gpu/gl/builders/GrGLProgramBuilder.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.h b/src/gpu/gl/builders/GrGLProgramBuilder.h index 973ae5e078..b7458b3e8f 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.h +++ b/src/gpu/gl/builders/GrGLProgramBuilder.h @@ -30,9 +30,9 @@ class GrGLUniformBuilder { public: enum ShaderVisibility { - kVertex_Visibility = 0x1, - kGeometry_Visibility = 0x2, - kFragment_Visibility = 0x4, + kVertex_Visibility = 1 << kVertex_GrShaderType, + kGeometry_Visibility = 1 << kGeometry_GrShaderType, + kFragment_Visibility = 1 << kFragment_GrShaderType, }; virtual ~GrGLUniformBuilder() {} @@ -344,12 +344,6 @@ protected: SkString fSourceCoords; }; - void addCoordVarying(const char* name, GrGLVarying* v, const char* uniName, - const char* sourceCoords) { - this->addVarying(name, v); - fCoordVaryings.push_back(TransformVarying(*v, uniName, sourceCoords)); - } - const char* rtAdjustment() const { return "rtAdjustment"; } // number of each input/output type in a single allocation block, used by many builders |