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

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

Issue 733773005: cc: GPU rasterize tiles synchronously in PrepareToDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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/layer_tree_host_impl.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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 if (result == DRAW_SUCCESS) 1046 if (result == DRAW_SUCCESS)
1047 impl().timing_history.DidFinishDrawing(); 1047 impl().timing_history.DidFinishDrawing();
1048 1048
1049 DCHECK_NE(INVALID_RESULT, result); 1049 DCHECK_NE(INVALID_RESULT, result);
1050 return result; 1050 return result;
1051 } 1051 }
1052 1052
1053 void ThreadProxy::ScheduledActionManageTiles() { 1053 void ThreadProxy::ScheduledActionManageTiles() {
1054 TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionManageTiles"); 1054 TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionManageTiles");
1055 DCHECK(impl().layer_tree_host_impl->settings().impl_side_painting); 1055 DCHECK(impl().layer_tree_host_impl->settings().impl_side_painting);
1056 impl().layer_tree_host_impl->ManageTiles(); 1056 if (!impl().layer_tree_host_impl->use_gpu_rasterization())
1057 impl().layer_tree_host_impl->ManageTiles();
1057 } 1058 }
1058 1059
1059 DrawResult ThreadProxy::ScheduledActionDrawAndSwapIfPossible() { 1060 DrawResult ThreadProxy::ScheduledActionDrawAndSwapIfPossible() {
1060 TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionDrawAndSwap"); 1061 TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionDrawAndSwap");
1061 1062
1062 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to 1063 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to
1063 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should 1064 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should
1064 // never generate this call when it can't draw. 1065 // never generate this call when it can't draw.
1065 DCHECK(impl().layer_tree_host_impl->CanDraw()); 1066 DCHECK(impl().layer_tree_host_impl->CanDraw());
1066 1067
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1342
1342 impl().timing_history.DidActivateSyncTree(); 1343 impl().timing_history.DidActivateSyncTree();
1343 } 1344 }
1344 1345
1345 void ThreadProxy::DidManageTiles() { 1346 void ThreadProxy::DidManageTiles() {
1346 DCHECK(IsImplThread()); 1347 DCHECK(IsImplThread());
1347 impl().scheduler->DidManageTiles(); 1348 impl().scheduler->DidManageTiles();
1348 } 1349 }
1349 1350
1350 } // namespace cc 1351 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698