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

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: Remove redundant completed_tasks_.clear() Created 6 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
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())
vmiura 2014/11/20 02:29:20 nit: This should be redundant, as LTHI does the sa
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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 1334
1334 impl().timing_history.DidActivateSyncTree(); 1335 impl().timing_history.DidActivateSyncTree();
1335 } 1336 }
1336 1337
1337 void ThreadProxy::DidManageTiles() { 1338 void ThreadProxy::DidManageTiles() {
1338 DCHECK(IsImplThread()); 1339 DCHECK(IsImplThread());
1339 impl().scheduler->DidManageTiles(); 1340 impl().scheduler->DidManageTiles();
1340 } 1341 }
1341 1342
1342 } // namespace cc 1343 } // namespace cc
OLDNEW
« cc/trees/layer_tree_host_impl.cc ('K') | « 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