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

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

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: tilemanagerconsistency Created 5 years, 7 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
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/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2133 DCHECK(!IsSynchronousSingleThreaded()); 2133 DCHECK(!IsSynchronousSingleThreaded());
2134 2134
2135 // We need to create a staging resource pool when using copy rasterizer. 2135 // We need to create a staging resource pool when using copy rasterizer.
2136 *staging_resource_pool = 2136 *staging_resource_pool =
2137 ResourcePool::Create(resource_provider_.get(), image_target); 2137 ResourcePool::Create(resource_provider_.get(), image_target);
2138 *resource_pool = 2138 *resource_pool =
2139 ResourcePool::Create(resource_provider_.get(), GL_TEXTURE_2D); 2139 ResourcePool::Create(resource_provider_.get(), GL_TEXTURE_2D);
2140 2140
2141 *tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create( 2141 *tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create(
2142 task_runner, task_graph_runner, context_provider, 2142 task_runner, task_graph_runner, context_provider,
2143 resource_provider_.get(), staging_resource_pool_.get()); 2143 resource_provider_.get(), staging_resource_pool_.get(),
2144 settings_.have_persistent_gpu_memory_buffers);
2144 return; 2145 return;
2145 } 2146 }
2146 2147
2147 // Synchronous single-threaded mode depends on tiles being ready to 2148 // Synchronous single-threaded mode depends on tiles being ready to
2148 // draw when raster is complete. Therefore, it must use one of zero 2149 // draw when raster is complete. Therefore, it must use one of zero
2149 // copy, software raster, or GPU raster (in the branches above). 2150 // copy, software raster, or GPU raster (in the branches above).
2150 DCHECK(!IsSynchronousSingleThreaded()); 2151 DCHECK(!IsSynchronousSingleThreaded());
2151 2152
2152 *resource_pool = ResourcePool::Create( 2153 *resource_pool = ResourcePool::Create(
2153 resource_provider_.get(), GL_TEXTURE_2D); 2154 resource_provider_.get(), GL_TEXTURE_2D);
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
3442 new_target.SetToMin(layer_impl->MaxScrollOffset()); 3443 new_target.SetToMin(layer_impl->MaxScrollOffset());
3443 3444
3444 curve->UpdateTarget( 3445 curve->UpdateTarget(
3445 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) 3446 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time)
3446 .InSecondsF(), 3447 .InSecondsF(),
3447 new_target); 3448 new_target);
3448 3449
3449 return true; 3450 return true;
3450 } 3451 }
3451 } // namespace cc 3452 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698