Index: platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp |
diff --git a/platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp b/platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp |
index e2bc99610ff2beb58e0eafca27b2f6c8257daf5c..487835b31d14c4c6e57e49bf0903e7d147f7c780 100644 |
--- a/platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp |
+++ b/platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp |
@@ -111,8 +111,8 @@ bool SkOSWindow::attach(SkBackEndTypes attachType, |
ANativeWindow_setBuffersGeometry(fNativeWindow, 0, 0, format); |
- surface = eglCreateWindowSurface(display, config, fNativeWindow, NULL); |
- context = eglCreateContext(display, config, NULL, kAPIs[api].fContextAttribs); |
+ surface = eglCreateWindowSurface(display, config, fNativeWindow, nullptr); |
+ context = eglCreateContext(display, config, nullptr, kAPIs[api].fContextAttribs); |
if (EGL_NO_CONTEXT == context) { |
SkDebugf("eglCreateContext failed. EGL Error: 0x%08x\n", eglGetError()); |
continue; |