aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-02-17 20:43:43 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-18 02:18:28 +0000
commit7fc4a2d2f0eb57f94f5ef9a0f759a099a4320a54 (patch)
tree274f1cce10e6171825398ef1be40b34eb2e8252c
parentf67c45994dedc96eb979e331ab156649847071a4 (diff)
Fix -Wshadow-field warning in class NullInterface
This warning fires in a tip of tree clang build because the base class to NullInterface also has a field called fExtensions. Change-Id: I5e2a901583ae223a85d562f2d8b082e4d0cbf690 Reviewed-on: https://skia-review.googlesource.com/8691 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
-rw-r--r--src/gpu/gl/GrGLCreateNullInterface.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gpu/gl/GrGLCreateNullInterface.cpp b/src/gpu/gl/GrGLCreateNullInterface.cpp
index b41f826dfb..7611f597c1 100644
--- a/src/gpu/gl/GrGLCreateNullInterface.cpp
+++ b/src/gpu/gl/GrGLCreateNullInterface.cpp
@@ -224,17 +224,17 @@ public:
, fCurrUniformLocation(0)
, fCurrPathID(0) {
memset(fBoundBuffers, 0, sizeof(fBoundBuffers));
- fExtensions.push_back("GL_ARB_framebuffer_object");
- fExtensions.push_back("GL_ARB_blend_func_extended");
- fExtensions.push_back("GL_ARB_timer_query");
- fExtensions.push_back("GL_ARB_draw_buffers");
- fExtensions.push_back("GL_ARB_occlusion_query");
- fExtensions.push_back("GL_EXT_stencil_wrap");
+ fAdvertisedExtensions.push_back("GL_ARB_framebuffer_object");
+ fAdvertisedExtensions.push_back("GL_ARB_blend_func_extended");
+ fAdvertisedExtensions.push_back("GL_ARB_timer_query");
+ fAdvertisedExtensions.push_back("GL_ARB_draw_buffers");
+ fAdvertisedExtensions.push_back("GL_ARB_occlusion_query");
+ fAdvertisedExtensions.push_back("GL_EXT_stencil_wrap");
if (enableNVPR) {
- fExtensions.push_back("GL_NV_path_rendering");
- fExtensions.push_back("GL_ARB_program_interface_query");
+ fAdvertisedExtensions.push_back("GL_NV_path_rendering");
+ fAdvertisedExtensions.push_back("GL_ARB_program_interface_query");
}
- fExtensions.push_back(nullptr);
+ fAdvertisedExtensions.push_back(nullptr);
this->init(kGL_GrGLStandard);
}
@@ -522,7 +522,7 @@ public:
break;
case GR_GL_NUM_EXTENSIONS: {
GrGLint i = 0;
- while (fExtensions[i++]);
+ while (fAdvertisedExtensions[i++]);
*params = i;
break;
}
@@ -606,7 +606,7 @@ public:
GrGLint count;
this->getIntegerv(GR_GL_NUM_EXTENSIONS, &count);
if ((GrGLint)i <= count) {
- return (const GrGLubyte*) fExtensions[i];
+ return (const GrGLubyte*) fAdvertisedExtensions[i];
} else {
return nullptr;
}
@@ -711,7 +711,7 @@ private:
GrGLuint fCurrUniformLocation;
GrGLuint fCurrPathID;
sk_sp<const Texture> fSingleTextureObject;
- SkTArray<const char*> fExtensions;
+ SkTArray<const char*> fAdvertisedExtensions;
// the OpenGLES 2.0 spec says this must be >= 128
static const GrGLint kDefaultMaxVertexUniformVectors = 128;
@@ -755,11 +755,11 @@ private:
gMutex.acquire();
if (0 == gExtString.size()) {
int i = 0;
- while (fExtensions[i]) {
+ while (fAdvertisedExtensions[i]) {
if (i > 0) {
gExtString.append(" ");
}
- gExtString.append(fExtensions[i]);
+ gExtString.append(fAdvertisedExtensions[i]);
++i;
}
}