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

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

Issue 191293004: cc: Rename FinishCommit to NotifyReadyToCommit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/scheduler/scheduler_unittest.cc ('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 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 delta = base::TimeDelta(); 1396 delta = base::TimeDelta();
1397 Proxy::ImplThreadTaskRunner()->PostDelayedTask(FROM_HERE, closure, delta); 1397 Proxy::ImplThreadTaskRunner()->PostDelayedTask(FROM_HERE, closure, delta);
1398 } 1398 }
1399 1399
1400 void ThreadProxy::DidBeginImplFrameDeadline() { 1400 void ThreadProxy::DidBeginImplFrameDeadline() {
1401 impl().layer_tree_host_impl->ResetCurrentFrameTimeForNextFrame(); 1401 impl().layer_tree_host_impl->ResetCurrentFrameTimeForNextFrame();
1402 } 1402 }
1403 1403
1404 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1404 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1405 DCHECK(IsImplThread()); 1405 DCHECK(IsImplThread());
1406 impl().scheduler->FinishCommit(); 1406 impl().scheduler->NotifyReadyToCommit();
1407 } 1407 }
1408 1408
1409 void ThreadProxy::DidCommitAndDrawFrame() { 1409 void ThreadProxy::DidCommitAndDrawFrame() {
1410 DCHECK(IsMainThread()); 1410 DCHECK(IsMainThread());
1411 if (!layer_tree_host()) 1411 if (!layer_tree_host())
1412 return; 1412 return;
1413 layer_tree_host()->DidCommitAndDrawFrame(); 1413 layer_tree_host()->DidCommitAndDrawFrame();
1414 } 1414 }
1415 1415
1416 void ThreadProxy::DidCompleteSwapBuffers() { 1416 void ThreadProxy::DidCompleteSwapBuffers() {
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 1735
1736 impl().timing_history.DidActivatePendingTree(); 1736 impl().timing_history.DidActivatePendingTree();
1737 } 1737 }
1738 1738
1739 void ThreadProxy::DidManageTiles() { 1739 void ThreadProxy::DidManageTiles() {
1740 DCHECK(IsImplThread()); 1740 DCHECK(IsImplThread());
1741 impl().scheduler->DidManageTiles(); 1741 impl().scheduler->DidManageTiles();
1742 } 1742 }
1743 1743
1744 } // namespace cc 1744 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698