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

Unified Diff: cc/trees/thread_proxy.cc

Issue 606113003: Revert of Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | « cc/trees/thread_proxy.h ('k') | cc/trees/tree_synchronizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index dddf112194a9960339bed5fe32f59b0eab9553e8..53fb3843d665b7416a1ecf2dd278d6034b8f3bb6 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -215,12 +215,13 @@
}
}
-void ThreadProxy::RequestNewOutputSurface() {
- DCHECK(IsMainThread());
- layer_tree_host()->RequestNewOutputSurface();
-}
-
-void ThreadProxy::SetOutputSurface(scoped_ptr<OutputSurface> output_surface) {
+void ThreadProxy::CreateAndInitializeOutputSurface() {
+ TRACE_EVENT0("cc", "ThreadProxy::DoCreateAndInitializeOutputSurface");
+ DCHECK(IsMainThread());
+
+ scoped_ptr<OutputSurface> output_surface =
+ layer_tree_host()->CreateOutputSurface();
+
if (output_surface) {
Proxy::ImplThreadTaskRunner()->PostTask(
FROM_HERE,
@@ -244,7 +245,7 @@
if (!success) {
Proxy::MainThreadTaskRunner()->PostTask(
FROM_HERE,
- base::Bind(&ThreadProxy::RequestNewOutputSurface,
+ base::Bind(&ThreadProxy::CreateAndInitializeOutputSurface,
main_thread_weak_ptr_));
}
}
@@ -1025,7 +1026,8 @@
DCHECK(IsImplThread());
Proxy::MainThreadTaskRunner()->PostTask(
FROM_HERE,
- base::Bind(&ThreadProxy::RequestNewOutputSurface, main_thread_weak_ptr_));
+ base::Bind(&ThreadProxy::CreateAndInitializeOutputSurface,
+ main_thread_weak_ptr_));
}
DrawResult ThreadProxy::DrawSwapInternal(bool forced_draw) {
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | cc/trees/tree_synchronizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698