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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Alphabetize switch names in lists Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host.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 9ee229bd760f95dfdaffb42b388c3d9e7236bbfa..6d619bf45f7bf772e4118c3170e29ce7823d13e8 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1434,11 +1434,17 @@ bool LayerTreeHostImpl::InitializeRenderer(
return false;
if (settings_.impl_side_painting) {
+ bool using_map_image = false;
+ if (renderer() != NULL) {
+ // Renderer may be NULL in unit tests.
reveman 2013/05/22 23:51:49 is the problem not just that you're creating the r
kaanb 2013/05/22 23:59:27 Yes, I moved TileManager creation after the Render
+ using_map_image = GetRendererCapabilities().using_map_image;
+ }
tile_manager_ = TileManager::Create(this,
resource_provider.get(),
settings_.num_raster_threads,
settings_.use_color_estimator,
- rendering_stats_instrumentation_);
+ rendering_stats_instrumentation_,
+ using_map_image);
UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());
}
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698