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

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

Issue 368883003: cc: Disallow scroll offset animations when impl-scrolling isn't supported (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/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/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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 completion.Wait(); 655 completion.Wait();
656 } 656 }
657 657
658 void ThreadProxy::ForceSerializeOnSwapBuffersOnImplThread( 658 void ThreadProxy::ForceSerializeOnSwapBuffersOnImplThread(
659 CompletionEvent* completion) { 659 CompletionEvent* completion) {
660 if (impl().layer_tree_host_impl->renderer()) 660 if (impl().layer_tree_host_impl->renderer())
661 impl().layer_tree_host_impl->renderer()->DoNoOp(); 661 impl().layer_tree_host_impl->renderer()->DoNoOp();
662 completion->Signal(); 662 completion->Signal();
663 } 663 }
664 664
665 bool ThreadProxy::SupportsImplScrolling() const {
666 return true;
667 }
668
665 void ThreadProxy::SetDebugState(const LayerTreeDebugState& debug_state) { 669 void ThreadProxy::SetDebugState(const LayerTreeDebugState& debug_state) {
666 Proxy::ImplThreadTaskRunner()->PostTask( 670 Proxy::ImplThreadTaskRunner()->PostTask(
667 FROM_HERE, 671 FROM_HERE,
668 base::Bind(&ThreadProxy::SetDebugStateOnImplThread, 672 base::Bind(&ThreadProxy::SetDebugStateOnImplThread,
669 impl_thread_weak_ptr_, 673 impl_thread_weak_ptr_,
670 debug_state)); 674 debug_state));
671 } 675 }
672 676
673 void ThreadProxy::SetDebugStateOnImplThread( 677 void ThreadProxy::SetDebugStateOnImplThread(
674 const LayerTreeDebugState& debug_state) { 678 const LayerTreeDebugState& debug_state) {
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 1440
1437 impl().timing_history.DidActivatePendingTree(); 1441 impl().timing_history.DidActivatePendingTree();
1438 } 1442 }
1439 1443
1440 void ThreadProxy::DidManageTiles() { 1444 void ThreadProxy::DidManageTiles() {
1441 DCHECK(IsImplThread()); 1445 DCHECK(IsImplThread());
1442 impl().scheduler->DidManageTiles(); 1446 impl().scheduler->DidManageTiles();
1443 } 1447 }
1444 1448
1445 } // namespace cc 1449 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698