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

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

Issue 52663003: Remove all fling related stuff from the renderer assuming that browser side Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | content/app/android/library_loader_hooks.cc » ('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/thread_proxy.h" 5 #include "cc/trees/thread_proxy.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 scheduler_on_impl_thread_->SetSwapUsedIncompleteTile( 561 scheduler_on_impl_thread_->SetSwapUsedIncompleteTile(
562 used_incomplete_tile); 562 used_incomplete_tile);
563 } 563 }
564 564
565 void ThreadProxy::DidInitializeVisibleTileOnImplThread() { 565 void ThreadProxy::DidInitializeVisibleTileOnImplThread() {
566 DCHECK(IsImplThread()); 566 DCHECK(IsImplThread());
567 TRACE_EVENT0("cc", "ThreadProxy::DidInitializeVisibleTileOnImplThread"); 567 TRACE_EVENT0("cc", "ThreadProxy::DidInitializeVisibleTileOnImplThread");
568 scheduler_on_impl_thread_->SetNeedsRedraw(); 568 scheduler_on_impl_thread_->SetNeedsRedraw();
569 } 569 }
570 570
571 void ThreadProxy::MainThreadHasStoppedFlinging() {
572 DCHECK(IsMainThread());
573 Proxy::ImplThreadTaskRunner()->PostTask(
574 FROM_HERE,
575 base::Bind(&ThreadProxy::MainThreadHasStoppedFlingingOnImplThread,
576 impl_thread_weak_ptr_));
577 }
578
579 void ThreadProxy::MainThreadHasStoppedFlingingOnImplThread() {
580 DCHECK(IsImplThread());
581 layer_tree_host_impl_->MainThreadHasStoppedFlinging();
582 }
583
584 void ThreadProxy::NotifyInputThrottledUntilCommit() { 571 void ThreadProxy::NotifyInputThrottledUntilCommit() {
585 DCHECK(IsMainThread()); 572 DCHECK(IsMainThread());
586 Proxy::ImplThreadTaskRunner()->PostTask( 573 Proxy::ImplThreadTaskRunner()->PostTask(
587 FROM_HERE, 574 FROM_HERE,
588 base::Bind(&ThreadProxy::SetInputThrottledUntilCommitOnImplThread, 575 base::Bind(&ThreadProxy::SetInputThrottledUntilCommitOnImplThread,
589 impl_thread_weak_ptr_, 576 impl_thread_weak_ptr_,
590 true)); 577 true));
591 } 578 }
592 579
593 void ThreadProxy::SetInputThrottledUntilCommitOnImplThread( 580 void ThreadProxy::SetInputThrottledUntilCommitOnImplThread(
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 completion_event_for_commit_held_on_tree_activation_ = NULL; 1572 completion_event_for_commit_held_on_tree_activation_ = NULL;
1586 } 1573 }
1587 1574
1588 UpdateBackgroundAnimateTicking(); 1575 UpdateBackgroundAnimateTicking();
1589 1576
1590 commit_to_activate_duration_history_.InsertSample( 1577 commit_to_activate_duration_history_.InsertSample(
1591 base::TimeTicks::HighResNow() - commit_complete_time_); 1578 base::TimeTicks::HighResNow() - commit_complete_time_);
1592 } 1579 }
1593 1580
1594 } // namespace cc 1581 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | content/app/android/library_loader_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698