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

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

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: remove include Created 3 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 unified diff | Download patch
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | no next file » | 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/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/profiler/scoped_tracker.h" 9 #include "base/profiler/scoped_tracker.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 if (scheduler_on_impl_thread_) 417 if (scheduler_on_impl_thread_)
418 scheduler_on_impl_thread_->DidReceiveCompositorFrameAck(); 418 scheduler_on_impl_thread_->DidReceiveCompositorFrameAck();
419 layer_tree_host_->DidReceiveCompositorFrameAck(); 419 layer_tree_host_->DidReceiveCompositorFrameAck();
420 } 420 }
421 421
422 void SingleThreadProxy::OnDrawForCompositorFrameSink( 422 void SingleThreadProxy::OnDrawForCompositorFrameSink(
423 bool resourceless_software_draw) { 423 bool resourceless_software_draw) {
424 NOTREACHED() << "Implemented by ThreadProxy for synchronous compositor."; 424 NOTREACHED() << "Implemented by ThreadProxy for synchronous compositor.";
425 } 425 }
426 426
427 void SingleThreadProxy::NeedsImplSideInvalidation() {
428 // TODO(khushalsagar): Plumb this to the scheduler when
429 // https://codereview.chromium.org/2659123004/ lands. See crbug.com/686267.
430 NOTIMPLEMENTED();
431 }
432
427 void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) { 433 void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) {
428 TRACE_EVENT0("cc,benchmark", "SingleThreadProxy::CompositeImmediately"); 434 TRACE_EVENT0("cc,benchmark", "SingleThreadProxy::CompositeImmediately");
429 DCHECK(task_runner_provider_->IsMainThread()); 435 DCHECK(task_runner_provider_->IsMainThread());
430 #if DCHECK_IS_ON() 436 #if DCHECK_IS_ON()
431 DCHECK(!inside_impl_frame_); 437 DCHECK(!inside_impl_frame_);
432 #endif 438 #endif
433 base::AutoReset<bool> inside_composite(&inside_synchronous_composite_, true); 439 base::AutoReset<bool> inside_composite(&inside_synchronous_composite_, true);
434 440
435 if (compositor_frame_sink_lost_) { 441 if (compositor_frame_sink_lost_) {
436 RequestNewCompositorFrameSink(); 442 RequestNewCompositorFrameSink();
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 void SingleThreadProxy::DidFinishImplFrame() { 741 void SingleThreadProxy::DidFinishImplFrame() {
736 layer_tree_host_impl_->DidFinishImplFrame(); 742 layer_tree_host_impl_->DidFinishImplFrame();
737 #if DCHECK_IS_ON() 743 #if DCHECK_IS_ON()
738 DCHECK(inside_impl_frame_) 744 DCHECK(inside_impl_frame_)
739 << "DidFinishImplFrame called while not inside an impl frame!"; 745 << "DidFinishImplFrame called while not inside an impl frame!";
740 inside_impl_frame_ = false; 746 inside_impl_frame_ = false;
741 #endif 747 #endif
742 } 748 }
743 749
744 } // namespace cc 750 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698