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

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: Add internalformat parameter to CreateImageCHROMIUM in fake_web_graphics_context_3d to fix clang bu… 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..f68965caff067d4f2bbdb156da56053b69ba4a67 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1433,15 +1433,6 @@ bool LayerTreeHostImpl::InitializeRenderer(
if (!resource_provider)
return false;
- if (settings_.impl_side_painting) {
- tile_manager_ = TileManager::Create(this,
- resource_provider.get(),
- settings_.num_raster_threads,
- settings_.use_color_estimator,
- rendering_stats_instrumentation_);
- UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());
- }
-
if (output_surface->capabilities().has_parent_compositor) {
renderer_ = DelegatingRenderer::Create(this, output_surface.get(),
resource_provider.get());
@@ -1459,6 +1450,17 @@ bool LayerTreeHostImpl::InitializeRenderer(
if (!renderer_)
return false;
+ if (settings_.impl_side_painting) {
+ bool 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_,
+ using_map_image);
+ UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());
+ }
+
resource_provider_ = resource_provider.Pass();
}
« 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