| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 // Webview does not own the surface so should not clear it. | 436 // Webview does not own the surface so should not clear it. |
| 437 settings.renderer_settings.should_clear_root_render_pass = | 437 settings.renderer_settings.should_clear_root_render_pass = |
| 438 !synchronous_compositor_factory; | 438 !synchronous_compositor_factory; |
| 439 | 439 |
| 440 // TODO(danakj): Only do this on low end devices. | 440 // TODO(danakj): Only do this on low end devices. |
| 441 settings.create_low_res_tiling = true; | 441 settings.create_low_res_tiling = true; |
| 442 | 442 |
| 443 settings.use_external_begin_frame_source = true; | 443 settings.use_external_begin_frame_source = true; |
| 444 | 444 |
| 445 #elif !defined(OS_MACOSX) | 445 #elif !defined(OS_MACOSX) |
| 446 settings.report_overscroll_only_for_scrollable_axes = false; | |
| 447 | |
| 448 if (ui::IsOverlayScrollbarEnabled()) { | 446 if (ui::IsOverlayScrollbarEnabled()) { |
| 449 settings.scrollbar_animator = cc::LayerTreeSettings::THINNING; | 447 settings.scrollbar_animator = cc::LayerTreeSettings::THINNING; |
| 450 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); | 448 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); |
| 451 } else { | 449 } else { |
| 452 settings.scrollbar_animator = cc::LayerTreeSettings::LINEAR_FADE; | 450 settings.scrollbar_animator = cc::LayerTreeSettings::LINEAR_FADE; |
| 453 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); | 451 settings.solid_color_scrollbar_color = SkColorSetARGB(128, 128, 128, 128); |
| 454 } | 452 } |
| 455 settings.scrollbar_fade_delay_ms = 500; | 453 settings.scrollbar_fade_delay_ms = 500; |
| 456 settings.scrollbar_fade_resize_delay_ms = 500; | 454 settings.scrollbar_fade_resize_delay_ms = 500; |
| 457 settings.scrollbar_fade_duration_ms = 300; | 455 settings.scrollbar_fade_duration_ms = 300; |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 return; | 1027 return; |
| 1030 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 1028 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
| 1031 } | 1029 } |
| 1032 | 1030 |
| 1033 void RenderWidgetCompositor::SetSurfaceIdNamespace( | 1031 void RenderWidgetCompositor::SetSurfaceIdNamespace( |
| 1034 uint32_t surface_id_namespace) { | 1032 uint32_t surface_id_namespace) { |
| 1035 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); | 1033 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); |
| 1036 } | 1034 } |
| 1037 | 1035 |
| 1038 } // namespace content | 1036 } // namespace content |
| OLD | NEW |