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

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

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: rebase Created 4 years, 8 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after
2233 2233
2234 *tile_task_worker_pool = ZeroCopyTileTaskWorkerPool::Create( 2234 *tile_task_worker_pool = ZeroCopyTileTaskWorkerPool::Create(
2235 GetTaskRunner(), task_graph_runner, resource_provider_.get(), 2235 GetTaskRunner(), task_graph_runner, resource_provider_.get(),
2236 settings_.renderer_settings.preferred_tile_format); 2236 settings_.renderer_settings.preferred_tile_format);
2237 return; 2237 return;
2238 } 2238 }
2239 2239
2240 *resource_pool = 2240 *resource_pool =
2241 ResourcePool::Create(resource_provider_.get(), GetTaskRunner()); 2241 ResourcePool::Create(resource_provider_.get(), GetTaskRunner());
2242 2242
2243 int max_copy_texture_chromium_size = context_provider->ContextCapabilities() 2243 const int max_copy_texture_chromium_size =
2244 .gpu.max_copy_texture_chromium_size; 2244 context_provider->ContextCapabilities().max_copy_texture_chromium_size;
2245 2245
2246 *tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create( 2246 *tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create(
2247 GetTaskRunner(), task_graph_runner, context_provider, 2247 GetTaskRunner(), task_graph_runner, context_provider,
2248 resource_provider_.get(), max_copy_texture_chromium_size, 2248 resource_provider_.get(), max_copy_texture_chromium_size,
2249 settings_.use_partial_raster, settings_.max_staging_buffer_usage_in_bytes, 2249 settings_.use_partial_raster, settings_.max_staging_buffer_usage_in_bytes,
2250 settings_.renderer_settings.preferred_tile_format); 2250 settings_.renderer_settings.preferred_tile_format);
2251 } 2251 }
2252 2252
2253 void LayerTreeHostImpl::RecordMainFrameTiming( 2253 void LayerTreeHostImpl::RecordMainFrameTiming(
2254 const BeginFrameArgs& start_of_main_frame_args, 2254 const BeginFrameArgs& start_of_main_frame_args,
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
3980 return task_runner_provider_->HasImplThread(); 3980 return task_runner_provider_->HasImplThread();
3981 } 3981 }
3982 3982
3983 bool LayerTreeHostImpl::CommitToActiveTree() const { 3983 bool LayerTreeHostImpl::CommitToActiveTree() const {
3984 // In single threaded mode we skip the pending tree and commit directly to the 3984 // In single threaded mode we skip the pending tree and commit directly to the
3985 // active tree. 3985 // active tree.
3986 return !task_runner_provider_->HasImplThread(); 3986 return !task_runner_provider_->HasImplThread();
3987 } 3987 }
3988 3988
3989 } // namespace cc 3989 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698