diff options
author | 2014-07-08 06:52:35 -0700 | |
---|---|---|
committer | 2014-07-08 06:52:35 -0700 | |
commit | 97b9ab72cd5ee0cba4692082737266376425f27c (patch) | |
tree | 3061ad5cf5cb7cc81f4e5ee3014597ae1bf4dbab /tests/GLProgramsTest.cpp | |
parent | 4ae94ffce5ecf1b71cb5e295b68bf4ec9e697443 (diff) |
Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*.
Make Sk-effect virtuals produce GrEffect* rather than GrEffectRef*
Make GrEffectRef a typedef for GrEffect.
Committed: https://skia.googlesource.com/skia/+/2011fe9cdfa63b83489a146cea6a724cede352c8
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/377503004
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r-- | tests/GLProgramsTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp index 64c8559196..8ead5b8bca 100644 --- a/tests/GLProgramsTest.cpp +++ b/tests/GLProgramsTest.cpp @@ -172,7 +172,7 @@ bool GrGpuGL::programUnitTest(int maxStages) { *this->caps(), dummyTextures)); SkASSERT(effect); - int numAttribs = (*effect)->numVertexAttribs(); + int numAttribs = effect->numVertexAttribs(); // If adding this effect would exceed the max attrib count then generate a // new random effect. @@ -183,15 +183,15 @@ bool GrGpuGL::programUnitTest(int maxStages) { // If adding this effect would exceed the max texture coord set count then generate a // new random effect. - if (useFixedFunctionTexturing && !(*effect)->hasVertexCode()) { - int numTransforms = (*effect)->numTransforms(); + if (useFixedFunctionTexturing && !effect->hasVertexCode()) { + int numTransforms = effect->numTransforms(); if (currTextureCoordSet + numTransforms > this->glCaps().maxFixedFunctionTextureCoords()) { continue; } currTextureCoordSet += numTransforms; } - useFixedFunctionTexturing = useFixedFunctionTexturing && !(*effect)->hasVertexCode(); + useFixedFunctionTexturing = useFixedFunctionTexturing && !effect->hasVertexCode(); for (int i = 0; i < numAttribs; ++i) { attribIndices[i] = currAttribIndex++; |