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

Unified Diff: sky/shell/shell_view.cc

Issue 1213623008: Back button should be able to close apps (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix tests Created 5 years, 5 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 | « sky/shell/android/org/domokit/sky/shell/SkyActivity.java ('k') | sky/viewer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/shell_view.cc
diff --git a/sky/shell/shell_view.cc b/sky/shell/shell_view.cc
index bbcd069a3ab91b57b8f6d9f4863a2098cf45988d..bb83d422ef2491f65a67d1ea652adf3fe65c6957 100644
--- a/sky/shell/shell_view.cc
+++ b/sky/shell/shell_view.cc
@@ -13,6 +13,12 @@
namespace sky {
namespace shell {
+namespace {
+
+template<typename T>
+void Drop(scoped_ptr<T> ptr) { }
+
+} // namespace
ShellView::ShellView(Shell& shell)
: shell_(shell) {
@@ -22,6 +28,10 @@ ShellView::ShellView(Shell& shell)
}
ShellView::~ShellView() {
+ shell_.gpu_task_runner()->PostTask(FROM_HERE,
+ base::Bind(&Drop<Rasterizer>, base::Passed(&rasterizer_)));
+ shell_.ui_task_runner()->PostTask(FROM_HERE,
+ base::Bind(&Drop<Engine>, base::Passed(&engine_)));
}
void ShellView::CreateEngine() {
« no previous file with comments | « sky/shell/android/org/domokit/sky/shell/SkyActivity.java ('k') | sky/viewer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698