OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |