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

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

Issue 2659123004: cc: Add scheduler support for invalidating content on impl thread. (Closed)
Patch Set: .. 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
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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 void SingleThreadProxy::ScheduledActionPrepareTiles() { 718 void SingleThreadProxy::ScheduledActionPrepareTiles() {
719 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionPrepareTiles"); 719 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionPrepareTiles");
720 DebugScopedSetImplThread impl(task_runner_provider_); 720 DebugScopedSetImplThread impl(task_runner_provider_);
721 layer_tree_host_impl_->PrepareTiles(); 721 layer_tree_host_impl_->PrepareTiles();
722 } 722 }
723 723
724 void SingleThreadProxy::ScheduledActionInvalidateCompositorFrameSink() { 724 void SingleThreadProxy::ScheduledActionInvalidateCompositorFrameSink() {
725 NOTREACHED(); 725 NOTREACHED();
726 } 726 }
727 727
728 void SingleThreadProxy::ScheduledActionRunImplSideInvalidation() {
729 NOTIMPLEMENTED();
730 }
731
728 void SingleThreadProxy::UpdateBrowserControlsState( 732 void SingleThreadProxy::UpdateBrowserControlsState(
729 BrowserControlsState constraints, 733 BrowserControlsState constraints,
730 BrowserControlsState current, 734 BrowserControlsState current,
731 bool animate) { 735 bool animate) {
732 NOTREACHED() << "Browser Controls are used only in threaded mode"; 736 NOTREACHED() << "Browser Controls are used only in threaded mode";
733 } 737 }
734 738
735 void SingleThreadProxy::DidFinishImplFrame() { 739 void SingleThreadProxy::DidFinishImplFrame() {
736 layer_tree_host_impl_->DidFinishImplFrame(); 740 layer_tree_host_impl_->DidFinishImplFrame();
737 #if DCHECK_IS_ON() 741 #if DCHECK_IS_ON()
738 DCHECK(inside_impl_frame_) 742 DCHECK(inside_impl_frame_)
739 << "DidFinishImplFrame called while not inside an impl frame!"; 743 << "DidFinishImplFrame called while not inside an impl frame!";
740 inside_impl_frame_ = false; 744 inside_impl_frame_ = false;
741 #endif 745 #endif
742 } 746 }
743 747
744 } // namespace cc 748 } // namespace cc
OLDNEW
« cc/scheduler/scheduler_state_machine.cc ('K') | « cc/trees/single_thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698