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

Side by Side Diff: cc/trees/single_thread_proxy.cc

Issue 1091323002: Send a message through the ozone channel to recreate buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/single_thread_proxy.h" 5 #include "cc/trees/single_thread_proxy.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "cc/debug/benchmark_instrumentation.h" 10 #include "cc/debug/benchmark_instrumentation.h"
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 bool children_need_begin_frames) { 765 bool children_need_begin_frames) {
766 scheduler_on_impl_thread_->SetChildrenNeedBeginFrames( 766 scheduler_on_impl_thread_->SetChildrenNeedBeginFrames(
767 children_need_begin_frames); 767 children_need_begin_frames);
768 } 768 }
769 769
770 void SingleThreadProxy::SetAuthoritativeVSyncInterval( 770 void SingleThreadProxy::SetAuthoritativeVSyncInterval(
771 const base::TimeDelta& interval) { 771 const base::TimeDelta& interval) {
772 scheduler_on_impl_thread_->SetAuthoritativeVSyncInterval(interval); 772 scheduler_on_impl_thread_->SetAuthoritativeVSyncInterval(interval);
773 } 773 }
774 774
775 void SingleThreadProxy::RecreateOutputSurfaceBuffers() {
776 layer_tree_host_impl_->output_surface()->RecreateBuffers();
777 }
778
775 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) { 779 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
776 layer_tree_host_impl_->WillBeginImplFrame(args); 780 layer_tree_host_impl_->WillBeginImplFrame(args);
777 } 781 }
778 782
779 void SingleThreadProxy::ScheduledActionSendBeginMainFrame() { 783 void SingleThreadProxy::ScheduledActionSendBeginMainFrame() {
780 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionSendBeginMainFrame"); 784 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionSendBeginMainFrame");
781 // Although this proxy is single-threaded, it's problematic to synchronously 785 // Although this proxy is single-threaded, it's problematic to synchronously
782 // have BeginMainFrame happen after ScheduledActionSendBeginMainFrame. This 786 // have BeginMainFrame happen after ScheduledActionSendBeginMainFrame. This
783 // could cause a commit to occur in between a series of SetNeedsCommit calls 787 // could cause a commit to occur in between a series of SetNeedsCommit calls
784 // (i.e. property modifications) causing some to fall on one frame and some to 788 // (i.e. property modifications) causing some to fall on one frame and some to
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 944
941 void SingleThreadProxy::DidBeginImplFrameDeadline() { 945 void SingleThreadProxy::DidBeginImplFrameDeadline() {
942 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); 946 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame();
943 } 947 }
944 948
945 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { 949 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
946 layer_tree_host_->SendBeginFramesToChildren(args); 950 layer_tree_host_->SendBeginFramesToChildren(args);
947 } 951 }
948 952
949 } // namespace cc 953 } // namespace cc
OLDNEW
« 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