aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-12-10 13:46:04 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-10 13:46:04 -0800
commit9fba90979243501d2348d1539ad2bb0bdf411b5b (patch)
tree30655138ce357c32f357570b882dbe1bf698119c
parent70ee31b2fa127eee6c0cea61cf05508e9d3ca7b1 (diff)
Use size_t for strlen() return value
-rw-r--r--src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp b/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
index 591cae349c..3b2488dfc6 100644
--- a/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
+++ b/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
@@ -277,7 +277,7 @@ GrGLFuncPtr EGLGLContext::onPlatformGetProcAddress(const char* procName) const {
}
static bool supports_egl_extension(EGLDisplay display, const char* extension) {
- int extensionLength = strlen(extension);
+ size_t extensionLength = strlen(extension);
const char* extensionsStr = eglQueryString(display, EGL_EXTENSIONS);
while (const char* match = strstr(extensionsStr, extension)) {
// Ensure the string we found is its own extension, not a substring of a larger extension