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 76ace6df4661fbed7ac8620fd1f9f6f0404251e3..644191d3d745381071f682a7f59ba9092c7841a5 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 |
@@ -18,7 +18,7 @@ SkOSWindow::SkOSWindow(void* hwnd) { |
} |
SkOSWindow::~SkOSWindow() { |
- this->detach(); |
+ this->release(); |
} |
bool SkOSWindow::attach(SkBackEndTypes attachType, |
@@ -149,7 +149,7 @@ bool SkOSWindow::attach(SkBackEndTypes attachType, |
} |
} |
-void SkOSWindow::detach() { |
+void SkOSWindow::release() { |
if (fWindow.fDisplay != EGL_NO_DISPLAY) { |
eglMakeCurrent(fWindow.fDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); |
if (fWindow.fContext != EGL_NO_CONTEXT) { |