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

Side by Side Diff: chrome/browser/gpu_util.cc

Issue 10459016: Disable accelerated animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Just switch enable/disable. Don't rename flag. Created 8 years, 6 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 "chrome/browser/gpu_util.h" 5 #include "chrome/browser/gpu_util.h"
6 6
7 #include <vector> 7 #include <vector>
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 { 222 {
223 "3d_css", 223 "3d_css",
224 flags & content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING, 224 flags & content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING,
225 command_line.HasSwitch(switches::kDisableAcceleratedLayers), 225 command_line.HasSwitch(switches::kDisableAcceleratedLayers),
226 "Accelerated layers have been disabled at the command line.", 226 "Accelerated layers have been disabled at the command line.",
227 false 227 false
228 }, 228 },
229 { 229 {
230 "css_animation", 230 "css_animation",
231 flags & content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING, 231 flags & content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING,
232 command_line.HasSwitch(switches::kDisableThreadedAnimation) || 232 !command_line.HasSwitch(switches::kEnableThreadedAnimation) ||
233 command_line.HasSwitch(switches::kDisableAcceleratedCompositing), 233 command_line.HasSwitch(switches::kDisableAcceleratedCompositing),
234 "Accelerated CSS animation has been disabled at the command line.", 234 "Accelerated CSS animation has been disabled at the command line.",
235 true 235 true
236 }, 236 },
237 { 237 {
238 "webgl", 238 "webgl",
239 flags & content::GPU_FEATURE_TYPE_WEBGL, 239 flags & content::GPU_FEATURE_TYPE_WEBGL,
240 command_line.HasSwitch(switches::kDisableExperimentalWebGL), 240 command_line.HasSwitch(switches::kDisableExperimentalWebGL),
241 "WebGL has been disabled, either via about:flags or command line.", 241 "WebGL has been disabled, either via about:flags or command line.",
242 false 242 false
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 kGpuBlacklistFeatureHistogramNamesWin[i], 483 kGpuBlacklistFeatureHistogramNamesWin[i],
484 1, kNumWinSubVersions * kGpuFeatureNumStatus, 484 1, kNumWinSubVersions * kGpuFeatureNumStatus,
485 kNumWinSubVersions * kGpuFeatureNumStatus + 1, 485 kNumWinSubVersions * kGpuFeatureNumStatus + 1,
486 base::Histogram::kUmaTargetedHistogramFlag); 486 base::Histogram::kUmaTargetedHistogramFlag);
487 histogram_pointer->Add(GetGpuBlacklistHistogramValueWin(value)); 487 histogram_pointer->Add(GetGpuBlacklistHistogramValueWin(value));
488 #endif 488 #endif
489 } 489 }
490 } 490 }
491 491
492 } // namespace gpu_util; 492 } // namespace gpu_util;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698