| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 settings.strict_layer_property_change_checking = | 260 settings.strict_layer_property_change_checking = |
| 261 cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking); | 261 cmd->HasSwitch(cc::switches::kStrictLayerPropertyChangeChecking); |
| 262 | 262 |
| 263 settings.use_map_image = cmd->HasSwitch(cc::switches::kUseMapImage); | 263 settings.use_map_image = cmd->HasSwitch(cc::switches::kUseMapImage); |
| 264 | 264 |
| 265 #if defined(OS_ANDROID) | 265 #if defined(OS_ANDROID) |
| 266 // TODO(danakj): Move these to the android code. | 266 // TODO(danakj): Move these to the android code. |
| 267 settings.can_use_lcd_text = false; | 267 settings.can_use_lcd_text = false; |
| 268 settings.max_partial_texture_updates = 0; | 268 settings.max_partial_texture_updates = 0; |
| 269 settings.use_linear_fade_scrollbar_animator = true; | 269 settings.use_linear_fade_scrollbar_animator = true; |
| 270 // TODO(wjmaclean) Remove this once the remaining references to it are |
| 271 // removed. |
| 270 settings.solid_color_scrollbars = true; | 272 settings.solid_color_scrollbars = true; |
| 271 settings.solid_color_scrollbar_color = | 273 settings.solid_color_scrollbar_color = |
| 272 cmd->HasSwitch(switches::kHideScrollbars) | 274 cmd->HasSwitch(switches::kHideScrollbars) |
| 273 ? SK_ColorTRANSPARENT | 275 ? SK_ColorTRANSPARENT |
| 274 : SkColorSetARGB(128, 128, 128, 128); | 276 : SkColorSetARGB(128, 128, 128, 128); |
| 275 settings.solid_color_scrollbar_thickness_dip = 3; | 277 settings.solid_color_scrollbar_thickness_dip = 3; |
| 276 settings.highp_threshold_min = 2048; | 278 settings.highp_threshold_min = 2048; |
| 277 // Android WebView handles root layer flings itself. | 279 // Android WebView handles root layer flings itself. |
| 278 settings.ignore_root_layer_flings = | 280 settings.ignore_root_layer_flings = |
| 279 widget->UsingSynchronousRendererCompositor(); | 281 widget->UsingSynchronousRendererCompositor(); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 578 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
| 577 } | 579 } |
| 578 | 580 |
| 579 scoped_refptr<cc::ContextProvider> | 581 scoped_refptr<cc::ContextProvider> |
| 580 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 582 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
| 581 return RenderThreadImpl::current()-> | 583 return RenderThreadImpl::current()-> |
| 582 OffscreenContextProviderForCompositorThread(); | 584 OffscreenContextProviderForCompositorThread(); |
| 583 } | 585 } |
| 584 | 586 |
| 585 } // namespace content | 587 } // namespace content |
| OLD | NEW |