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

Unified Diff: ui/aura/window_tree_host_platform.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/aura/window_tree_host_platform.h ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_platform.cc
diff --git a/ui/aura/window_tree_host_platform.cc b/ui/aura/window_tree_host_platform.cc
index ffaac30b0ca64b933647887e93929052afa27a39..0ec5a8639e7472141f255133beacbbf86d8803d1 100644
--- a/ui/aura/window_tree_host_platform.cc
+++ b/ui/aura/window_tree_host_platform.cc
@@ -168,6 +168,12 @@ void WindowTreeHostPlatform::OnAcceleratedWidgetAvailable(
WindowTreeHost::OnAcceleratedWidgetAvailable();
}
+void WindowTreeHostPlatform::OnAcceleratedWidgetDestroyed() {
+ gfx::AcceleratedWidget widget = compositor()->ReleaseAcceleratedWidget();
+ DCHECK_EQ(widget, widget_);
+ widget_ = gfx::kNullAcceleratedWidget;
+}
+
void WindowTreeHostPlatform::OnActivationChanged(bool active) {
if (active)
OnHostActivated();
« no previous file with comments | « ui/aura/window_tree_host_platform.h ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698