Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(874)

Unified Diff: platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp

Issue 1809733002: detach -> release (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: (C) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « platform_tools/android/apps/sample_app/src/main/jni/com_skia_SkiaSampleRenderer.cpp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698