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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 12095053: cc: Avoid expensive RenderingStats collection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use WebSettings Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 prefs.fullscreen_enabled = 525 prefs.fullscreen_enabled =
526 !command_line.HasSwitch(switches::kDisableFullScreen); 526 !command_line.HasSwitch(switches::kDisableFullScreen);
527 prefs.css_sticky_position_enabled = 527 prefs.css_sticky_position_enabled =
528 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 528 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
529 prefs.css_shaders_enabled = 529 prefs.css_shaders_enabled =
530 command_line.HasSwitch(switches::kEnableCssShaders); 530 command_line.HasSwitch(switches::kEnableCssShaders);
531 prefs.css_variables_enabled = 531 prefs.css_variables_enabled =
532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
533 prefs.css_grid_layout_enabled = 533 prefs.css_grid_layout_enabled =
534 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 534 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
535 prefs.record_rendering_stats =
536 command_line.HasSwitch(switches::kEnableGpuBenchmarking);
535 537
536 bool touch_device_present = false; 538 bool touch_device_present = false;
537 #if defined(USE_AURA) && defined(USE_X11) 539 #if defined(USE_AURA) && defined(USE_X11)
538 touch_device_present = 540 touch_device_present =
539 ui::TouchFactory::GetInstance()->IsTouchDevicePresent(); 541 ui::TouchFactory::GetInstance()->IsTouchDevicePresent();
540 #endif 542 #endif
541 #if defined(OS_WIN) 543 #if defined(OS_WIN)
542 touch_device_present = ui::IsTouchDevicePresent(); 544 touch_device_present = ui::IsTouchDevicePresent();
543 #endif 545 #endif
544 #if defined(OS_ANDROID) 546 #if defined(OS_ANDROID)
(...skipping 2904 matching lines...) Expand 10 before | Expand all | Expand 10 after
3449 3451
3450 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { 3452 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() {
3451 return browser_plugin_guest_.get(); 3453 return browser_plugin_guest_.get();
3452 } 3454 }
3453 3455
3454 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { 3456 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() {
3455 return browser_plugin_embedder_.get(); 3457 return browser_plugin_embedder_.get();
3456 } 3458 }
3457 3459
3458 } // namespace content 3460 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698