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

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: types 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
« no previous file with comments | « cc/test/test_web_graphics_context_3d.cc ('k') | components/mus/public/cpp/context_provider.h » ('j') | 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/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 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2217 2217
2218 *tile_task_worker_pool = ZeroCopyTileTaskWorkerPool::Create( 2218 *tile_task_worker_pool = ZeroCopyTileTaskWorkerPool::Create(
2219 GetTaskRunner(), task_graph_runner, resource_provider_.get(), 2219 GetTaskRunner(), task_graph_runner, resource_provider_.get(),
2220 settings_.renderer_settings.preferred_tile_format); 2220 settings_.renderer_settings.preferred_tile_format);
2221 return; 2221 return;
2222 } 2222 }
2223 2223
2224 *resource_pool = 2224 *resource_pool =
2225 ResourcePool::Create(resource_provider_.get(), GetTaskRunner()); 2225 ResourcePool::Create(resource_provider_.get(), GetTaskRunner());
2226 2226
2227 int max_copy_texture_chromium_size = context_provider->ContextCapabilities() 2227 const int max_copy_texture_chromium_size =
2228 .gpu.max_copy_texture_chromium_size; 2228 context_provider->ContextCapabilities().max_copy_texture_chromium_size;
2229 2229
2230 *tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create( 2230 *tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create(
2231 GetTaskRunner(), task_graph_runner, context_provider, 2231 GetTaskRunner(), task_graph_runner, context_provider,
2232 resource_provider_.get(), max_copy_texture_chromium_size, 2232 resource_provider_.get(), max_copy_texture_chromium_size,
2233 settings_.use_partial_raster, settings_.max_staging_buffer_usage_in_bytes, 2233 settings_.use_partial_raster, settings_.max_staging_buffer_usage_in_bytes,
2234 settings_.renderer_settings.preferred_tile_format); 2234 settings_.renderer_settings.preferred_tile_format);
2235 } 2235 }
2236 2236
2237 void LayerTreeHostImpl::SetLayerTreeMutator(LayerTreeMutator* mutator) { 2237 void LayerTreeHostImpl::SetLayerTreeMutator(LayerTreeMutator* mutator) {
2238 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), 2238 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"),
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after
3943 return task_runner_provider_->HasImplThread(); 3943 return task_runner_provider_->HasImplThread();
3944 } 3944 }
3945 3945
3946 bool LayerTreeHostImpl::CommitToActiveTree() const { 3946 bool LayerTreeHostImpl::CommitToActiveTree() const {
3947 // In single threaded mode we skip the pending tree and commit directly to the 3947 // In single threaded mode we skip the pending tree and commit directly to the
3948 // active tree. 3948 // active tree.
3949 return !task_runner_provider_->HasImplThread(); 3949 return !task_runner_provider_->HasImplThread();
3950 } 3950 }
3951 3951
3952 } // namespace cc 3952 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_web_graphics_context_3d.cc ('k') | components/mus/public/cpp/context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698