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

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: nits 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
« no previous file with comments | « cc/worker_pool.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 prefs.fullscreen_enabled = 529 prefs.fullscreen_enabled =
530 !command_line.HasSwitch(switches::kDisableFullScreen); 530 !command_line.HasSwitch(switches::kDisableFullScreen);
531 prefs.css_sticky_position_enabled = 531 prefs.css_sticky_position_enabled =
532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
533 prefs.css_shaders_enabled = 533 prefs.css_shaders_enabled =
534 command_line.HasSwitch(switches::kEnableCssShaders); 534 command_line.HasSwitch(switches::kEnableCssShaders);
535 prefs.css_variables_enabled = 535 prefs.css_variables_enabled =
536 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 536 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
537 prefs.css_grid_layout_enabled = 537 prefs.css_grid_layout_enabled =
538 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 538 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
539 prefs.record_rendering_stats =
540 command_line.HasSwitch(switches::kEnableGpuBenchmarking);
539 541
540 bool touch_device_present = false; 542 bool touch_device_present = false;
541 #if defined(USE_AURA) && defined(USE_X11) 543 #if defined(USE_AURA) && defined(USE_X11)
542 touch_device_present = 544 touch_device_present =
543 ui::TouchFactory::GetInstance()->IsTouchDevicePresent(); 545 ui::TouchFactory::GetInstance()->IsTouchDevicePresent();
544 #endif 546 #endif
545 #if defined(OS_WIN) 547 #if defined(OS_WIN)
546 touch_device_present = ui::IsTouchDevicePresent(); 548 touch_device_present = ui::IsTouchDevicePresent();
547 #endif 549 #endif
548 #if defined(OS_ANDROID) 550 #if defined(OS_ANDROID)
(...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3459 3461
3460 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { 3462 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() {
3461 return browser_plugin_guest_.get(); 3463 return browser_plugin_guest_.get();
3462 } 3464 }
3463 3465
3464 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { 3466 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() {
3465 return browser_plugin_embedder_.get(); 3467 return browser_plugin_embedder_.get();
3466 } 3468 }
3467 3469
3468 } // namespace content 3470 } // namespace content
OLDNEW
« no previous file with comments | « cc/worker_pool.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698