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

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: no DCHECK 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 void SingleThreadProxy::ScheduledActionPrepareTiles() { 724 void SingleThreadProxy::ScheduledActionPrepareTiles() {
725 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionPrepareTiles"); 725 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionPrepareTiles");
726 DebugScopedSetImplThread impl(task_runner_provider_); 726 DebugScopedSetImplThread impl(task_runner_provider_);
727 layer_tree_host_impl_->PrepareTiles(); 727 layer_tree_host_impl_->PrepareTiles();
728 } 728 }
729 729
730 void SingleThreadProxy::ScheduledActionInvalidateCompositorFrameSink() { 730 void SingleThreadProxy::ScheduledActionInvalidateCompositorFrameSink() {
731 NOTREACHED(); 731 NOTREACHED();
732 } 732 }
733 733
734 void SingleThreadProxy::ScheduledActionPerformImplSideInvalidation() {
735 NOTIMPLEMENTED();
736 }
737
734 void SingleThreadProxy::UpdateBrowserControlsState( 738 void SingleThreadProxy::UpdateBrowserControlsState(
735 BrowserControlsState constraints, 739 BrowserControlsState constraints,
736 BrowserControlsState current, 740 BrowserControlsState current,
737 bool animate) { 741 bool animate) {
738 NOTREACHED() << "Browser Controls are used only in threaded mode"; 742 NOTREACHED() << "Browser Controls are used only in threaded mode";
739 } 743 }
740 744
741 void SingleThreadProxy::DidFinishImplFrame() { 745 void SingleThreadProxy::DidFinishImplFrame() {
742 layer_tree_host_impl_->DidFinishImplFrame(); 746 layer_tree_host_impl_->DidFinishImplFrame();
743 #if DCHECK_IS_ON() 747 #if DCHECK_IS_ON()
744 DCHECK(inside_impl_frame_) 748 DCHECK(inside_impl_frame_)
745 << "DidFinishImplFrame called while not inside an impl frame!"; 749 << "DidFinishImplFrame called while not inside an impl frame!";
746 inside_impl_frame_ = false; 750 inside_impl_frame_ = false;
747 #endif 751 #endif
748 } 752 }
749 753
750 } // namespace cc 754 } // 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