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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1379783002: Allow one-copy task tile worker pool to use compressed textures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 *cmd, 362 *cmd,
363 cc::switches::kSlowDownRasterScaleFactor, 363 cc::switches::kSlowDownRasterScaleFactor,
364 kMinSlowDownScaleFactor, 364 kMinSlowDownScaleFactor,
365 kMaxSlowDownScaleFactor, 365 kMaxSlowDownScaleFactor,
366 &settings.initial_debug_state.slow_down_raster_scale_factor); 366 &settings.initial_debug_state.slow_down_raster_scale_factor);
367 } 367 }
368 368
369 settings.strict_layer_property_change_checking = 369 settings.strict_layer_property_change_checking =
370 cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking); 370 cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking);
371 371
372 settings.renderer_settings.use_tile_compression =
373 cmd->HasSwitch(cc::switches::kEnableTileCompression);
374
372 #if defined(OS_ANDROID) 375 #if defined(OS_ANDROID)
373 SynchronousCompositorFactory* synchronous_compositor_factory = 376 SynchronousCompositorFactory* synchronous_compositor_factory =
374 SynchronousCompositorFactory::GetInstance(); 377 SynchronousCompositorFactory::GetInstance();
375 378
376 // We can't use GPU rasterization on low-end devices, because the Ganesh 379 // We can't use GPU rasterization on low-end devices, because the Ganesh
377 // cache would consume too much memory. 380 // cache would consume too much memory.
378 if (base::SysInfo::IsLowEndDevice()) 381 if (base::SysInfo::IsLowEndDevice())
379 settings.gpu_rasterization_enabled = false; 382 settings.gpu_rasterization_enabled = false;
380 settings.using_synchronous_renderer_compositor = 383 settings.using_synchronous_renderer_compositor =
381 synchronous_compositor_factory; 384 synchronous_compositor_factory;
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 blink::WebWidget::RenderEvent, frameId, webEvents); 1008 blink::WebWidget::RenderEvent, frameId, webEvents);
1006 } 1009 }
1007 } 1010 }
1008 1011
1009 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1012 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1010 uint32_t surface_id_namespace) { 1013 uint32_t surface_id_namespace) {
1011 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1014 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1012 } 1015 }
1013 1016
1014 } // namespace content 1017 } // namespace content
OLDNEW
« cc/resources/resource_pool.cc ('K') | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698