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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 577643002: Making OutputSurface a begin frame source and vsync source. (Closed)
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/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 646bc3fbe4500e3220ac371170d24b8a856a484e..0d7f22303cc3fbbe173840e2d0b9dfde87c25a72 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -115,6 +115,7 @@ void SingleThreadProxy::CreateAndInitializeOutputSurface() {
scoped_ptr<OutputSurface> output_surface =
layer_tree_host_->CreateOutputSurface();
+ OutputSurface* output_surface_ptr = output_surface.get();
renderer_capabilities_for_main_thread_ = RendererCapabilities();
@@ -131,7 +132,8 @@ void SingleThreadProxy::CreateAndInitializeOutputSurface() {
if (success) {
if (scheduler_on_impl_thread_)
- scheduler_on_impl_thread_->DidCreateAndInitializeOutputSurface();
+ scheduler_on_impl_thread_->DidCreateAndInitializeOutputSurface(
+ output_surface_ptr);
} else if (Proxy::MainThreadTaskRunner()) {
MainThreadTaskRunner()->PostTask(
FROM_HERE,
@@ -551,10 +553,6 @@ bool SingleThreadProxy::MainFrameWillHappenForTesting() {
return false;
}
-BeginFrameSource* SingleThreadProxy::GetExternalBeginFrameSource() {
- return layer_tree_host_impl_.get();
-}
-
void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
layer_tree_host_impl_->WillBeginImplFrame(args);
}
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698