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

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

Issue 1425533006: cc: Add flag to specify to ResourceProvider to always use GMBs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test and build Created 5 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
« no previous file with comments | « cc/test/pixel_test.cc ('k') | content/browser/gpu/compositor_util.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 <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after
2259 // point). 2259 // point).
2260 return false; 2260 return false;
2261 } 2261 }
2262 2262
2263 output_surface_ = output_surface; 2263 output_surface_ = output_surface;
2264 resource_provider_ = ResourceProvider::Create( 2264 resource_provider_ = ResourceProvider::Create(
2265 output_surface_, shared_bitmap_manager_, gpu_memory_buffer_manager_, 2265 output_surface_, shared_bitmap_manager_, gpu_memory_buffer_manager_,
2266 task_runner_provider_->blocking_main_thread_task_runner(), 2266 task_runner_provider_->blocking_main_thread_task_runner(),
2267 settings_.renderer_settings.highp_threshold_min, 2267 settings_.renderer_settings.highp_threshold_min,
2268 settings_.renderer_settings.texture_id_allocation_chunk_size, 2268 settings_.renderer_settings.texture_id_allocation_chunk_size,
2269 settings_.renderer_settings.use_gpu_memory_buffer_resources,
2269 settings_.use_image_texture_targets); 2270 settings_.use_image_texture_targets);
2270 2271
2271 CreateAndSetRenderer(); 2272 CreateAndSetRenderer();
2272 2273
2273 // Since the new renderer may be capable of MSAA, update status here. 2274 // Since the new renderer may be capable of MSAA, update status here.
2274 UpdateGpuRasterizationStatus(); 2275 UpdateGpuRasterizationStatus();
2275 2276
2276 CreateTileManagerResources(); 2277 CreateTileManagerResources();
2277 RecreateTreeResources(); 2278 RecreateTreeResources();
2278 2279
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after
3687 return task_runner_provider_->HasImplThread(); 3688 return task_runner_provider_->HasImplThread();
3688 } 3689 }
3689 3690
3690 bool LayerTreeHostImpl::CommitToActiveTree() const { 3691 bool LayerTreeHostImpl::CommitToActiveTree() const {
3691 // In single threaded mode we skip the pending tree and commit directly to the 3692 // In single threaded mode we skip the pending tree and commit directly to the
3692 // active tree. 3693 // active tree.
3693 return !task_runner_provider_->HasImplThread(); 3694 return !task_runner_provider_->HasImplThread();
3694 } 3695 }
3695 3696
3696 } // namespace cc 3697 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | content/browser/gpu/compositor_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698