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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1159833002: content: Partial copy workaround for devices with known upload performance problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sort Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/raster/one_copy_tile_task_worker_pool.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 6f0261dd9e2694795b2166fe018dad79ce212f3f..949358dcef7b5c2935d901a8fbd70469f13c0ba3 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2138,10 +2138,14 @@ void LayerTreeHostImpl::CreateResourceAndTileTaskWorkerPool(
*resource_pool =
ResourcePool::Create(resource_provider_.get(), GL_TEXTURE_2D);
+ int max_copy_texture_chromium_size =
+ context_provider->ContextCapabilities()
+ .gpu.max_copy_texture_chromium_size;
+
*tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create(
task_runner, task_graph_runner, context_provider,
resource_provider_.get(), staging_resource_pool_.get(),
- settings_.max_bytes_per_copy_operation,
+ max_copy_texture_chromium_size,
settings_.use_persistent_map_for_gpu_memory_buffers);
return;
}
« no previous file with comments | « cc/raster/one_copy_tile_task_worker_pool.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698