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

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

Issue 1296673004: Devtools/CC: Remove continuous repainting feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/thread_proxy.h" 5 #include "cc/trees/thread_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 } 624 }
625 625
626 void ThreadProxy::SetDebugState(const LayerTreeDebugState& debug_state) { 626 void ThreadProxy::SetDebugState(const LayerTreeDebugState& debug_state) {
627 Proxy::ImplThreadTaskRunner()->PostTask( 627 Proxy::ImplThreadTaskRunner()->PostTask(
628 FROM_HERE, 628 FROM_HERE,
629 base::Bind(&ThreadProxy::SetDebugStateOnImplThread, 629 base::Bind(&ThreadProxy::SetDebugStateOnImplThread,
630 impl_thread_weak_ptr_, 630 impl_thread_weak_ptr_,
631 debug_state)); 631 debug_state));
632 } 632 }
633 633
634 void ThreadProxy::SetDebugStateOnImplThread( 634 void ThreadProxy::SetDebugStateOnImplThread(
danakj 2015/08/21 18:56:09 Can this method go away?
samli 2015/08/26 21:08:24 I don't think so.
danakj 2015/08/27 18:44:45 Can you explain? The whole Proxy::SetDebugState me
635 const LayerTreeDebugState& debug_state) { 635 const LayerTreeDebugState& debug_state) {
636 DCHECK(IsImplThread()); 636 DCHECK(IsImplThread());
637 impl().scheduler->SetContinuousPainting(debug_state.continuous_painting);
638 } 637 }
639 638
640 void ThreadProxy::FinishAllRenderingOnImplThread(CompletionEvent* completion) { 639 void ThreadProxy::FinishAllRenderingOnImplThread(CompletionEvent* completion) {
641 TRACE_EVENT0("cc", "ThreadProxy::FinishAllRenderingOnImplThread"); 640 TRACE_EVENT0("cc", "ThreadProxy::FinishAllRenderingOnImplThread");
642 DCHECK(IsImplThread()); 641 DCHECK(IsImplThread());
643 impl().layer_tree_host_impl->FinishAllRendering(); 642 impl().layer_tree_host_impl->FinishAllRendering();
644 completion->Signal(); 643 completion->Signal();
645 } 644 }
646 645
647 void ThreadProxy::ScheduledActionSendBeginMainFrame() { 646 void ThreadProxy::ScheduledActionSendBeginMainFrame() {
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 1261
1263 void ThreadProxy::PostFrameTimingEvents( 1262 void ThreadProxy::PostFrameTimingEvents(
1264 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 1263 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
1265 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { 1264 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) {
1266 DCHECK(IsMainThread()); 1265 DCHECK(IsMainThread());
1267 layer_tree_host()->RecordFrameTimingEvents(composite_events.Pass(), 1266 layer_tree_host()->RecordFrameTimingEvents(composite_events.Pass(),
1268 main_frame_events.Pass()); 1267 main_frame_events.Pass());
1269 } 1268 }
1270 1269
1271 } // namespace cc 1270 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698