OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 prefs.show_composited_layer_borders = | 477 prefs.show_composited_layer_borders = |
478 command_line.HasSwitch(switches::kShowCompositedLayerBorders); | 478 command_line.HasSwitch(switches::kShowCompositedLayerBorders); |
479 prefs.show_composited_layer_tree = | 479 prefs.show_composited_layer_tree = |
480 command_line.HasSwitch(switches::kShowCompositedLayerTree); | 480 command_line.HasSwitch(switches::kShowCompositedLayerTree); |
481 prefs.show_fps_counter = | 481 prefs.show_fps_counter = |
482 command_line.HasSwitch(switches::kShowFPSCounter); | 482 command_line.HasSwitch(switches::kShowFPSCounter); |
483 prefs.accelerated_compositing_for_overflow_scroll_enabled = | 483 prefs.accelerated_compositing_for_overflow_scroll_enabled = |
484 command_line.HasSwitch(switches::kEnableAcceleratedOverflowScroll); | 484 command_line.HasSwitch(switches::kEnableAcceleratedOverflowScroll); |
485 prefs.accelerated_compositing_for_scrollable_frames_enabled = | 485 prefs.accelerated_compositing_for_scrollable_frames_enabled = |
486 command_line.HasSwitch(switches::kEnableAcceleratedScrollableFrames); | 486 command_line.HasSwitch(switches::kEnableAcceleratedScrollableFrames); |
| 487 prefs.composited_scrolling_for_frames_enabled = |
| 488 command_line.HasSwitch(switches::kEnableCompositedScrollingForFrames); |
487 prefs.show_paint_rects = | 489 prefs.show_paint_rects = |
488 command_line.HasSwitch(switches::kShowPaintRects); | 490 command_line.HasSwitch(switches::kShowPaintRects); |
489 prefs.render_vsync_enabled = | 491 prefs.render_vsync_enabled = |
490 !command_line.HasSwitch(switches::kDisableGpuVsync); | 492 !command_line.HasSwitch(switches::kDisableGpuVsync); |
491 prefs.accelerated_compositing_enabled = | 493 prefs.accelerated_compositing_enabled = |
492 GpuProcessHost::gpu_enabled() && | 494 GpuProcessHost::gpu_enabled() && |
493 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing); | 495 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing); |
494 prefs.force_compositing_mode = | 496 prefs.force_compositing_mode = |
495 command_line.HasSwitch(switches::kForceCompositingMode) && | 497 command_line.HasSwitch(switches::kForceCompositingMode) && |
496 !command_line.HasSwitch(switches::kDisableForceCompositingMode); | 498 !command_line.HasSwitch(switches::kDisableForceCompositingMode); |
(...skipping 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3394 | 3396 |
3395 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { | 3397 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { |
3396 return browser_plugin_guest_.get(); | 3398 return browser_plugin_guest_.get(); |
3397 } | 3399 } |
3398 | 3400 |
3399 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { | 3401 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { |
3400 return browser_plugin_embedder_.get(); | 3402 return browser_plugin_embedder_.get(); |
3401 } | 3403 } |
3402 | 3404 |
3403 } // namespace content | 3405 } // namespace content |
OLD | NEW |