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

Unified Diff: sky/shell/platform_view.cc

Issue 974483004: Stocks app shouldn't show black when resuming from recents list (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/platform_view.h ('k') | sky/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/platform_view.cc
diff --git a/sky/shell/platform_view.cc b/sky/shell/platform_view.cc
index 69a7b10a1c130ca00e18b43430d5b509e5cf0fd9..cc98beb22cb3c30ddad182f9f3e9945a32d3ce00 100644
--- a/sky/shell/platform_view.cc
+++ b/sky/shell/platform_view.cc
@@ -59,16 +59,16 @@ void PlatformView::SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface) {
base::android::ScopedJavaLocalFrame scoped_local_reference_frame(env);
window_ = ANativeWindow_fromSurface(env, jsurface);
}
- config_.gpu_task_runner->PostTask(
- FROM_HERE, base::Bind(&GPUDelegate::OnAcceleratedWidgetAvailable,
- config_.gpu_delegate, window_));
+ config_.ui_task_runner->PostTask(
+ FROM_HERE, base::Bind(&UIDelegate::OnAcceleratedWidgetAvailable,
+ config_.ui_delegate, window_));
}
void PlatformView::SurfaceDestroyed(JNIEnv* env, jobject obj) {
DCHECK(window_);
- config_.gpu_task_runner->PostTask(
+ config_.ui_task_runner->PostTask(
FROM_HERE,
- base::Bind(&GPUDelegate::OnOutputSurfaceDestroyed, config_.gpu_delegate));
+ base::Bind(&UIDelegate::OnOutputSurfaceDestroyed, config_.ui_delegate));
ReleaseWindow();
}
« no previous file with comments | « sky/shell/platform_view.h ('k') | sky/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698