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

Unified Diff: ui/platform_window/android/platform_window_android.cc

Issue 1406333003: aura: Support SurfaceDestroyed() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wth2
Patch Set: comment Created 5 years, 2 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
« no previous file with comments | « ui/ozone/demo/ozone_demo.cc ('k') | ui/platform_window/platform_window_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/android/platform_window_android.cc
diff --git a/ui/platform_window/android/platform_window_android.cc b/ui/platform_window/android/platform_window_android.cc
index 94500a25ebf30a0da68b9889b1ed599345df049c..50e6b86543aba644a3270819bc0a3329cf64d165 100644
--- a/ui/platform_window/android/platform_window_android.cc
+++ b/ui/platform_window/android/platform_window_android.cc
@@ -89,8 +89,8 @@ void PlatformWindowAndroid::SurfaceCreated(JNIEnv* env,
void PlatformWindowAndroid::SurfaceDestroyed(JNIEnv* env, jobject obj) {
DCHECK(window_);
+ delegate_->OnAcceleratedWidgetDestroyed();
ReleaseWindow();
- delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 0.f);
}
void PlatformWindowAndroid::SurfaceSetSize(JNIEnv* env,
« no previous file with comments | « ui/ozone/demo/ozone_demo.cc ('k') | ui/platform_window/platform_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698