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

Side by Side Diff: cc/CCSettings.cpp

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/CCSettings.h ('k') | cc/CCSharedQuadState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6
7 #include "base/command_line.h"
8 #include "CCSettings.h"
9 #include "cc/switches.h"
10
11 namespace {
12 static bool s_perTilePaintingEnabled = false;
13 static bool s_partialSwapEnabled = false;
14 static bool s_acceleratedAnimationEnabled = false;
15 static bool s_pageScalePinchZoomEnabled = false;
16 } // namespace
17
18 namespace cc {
19
20 bool CCSettings::perTilePaintingEnabled() { return s_perTilePaintingEnabled; }
21 void CCSettings::setPerTilePaintingEnabled(bool enabled) { s_perTilePaintingEnab led = enabled; }
22
23 bool CCSettings::partialSwapEnabled() { return s_partialSwapEnabled; }
24 void CCSettings::setPartialSwapEnabled(bool enabled) { s_partialSwapEnabled = en abled; }
25
26 bool CCSettings::acceleratedAnimationEnabled() { return s_acceleratedAnimationEn abled; }
27 void CCSettings::setAcceleratedAnimationEnabled(bool enabled) { s_acceleratedAni mationEnabled = enabled; }
28
29 bool CCSettings::pageScalePinchZoomEnabled() { return s_pageScalePinchZoomEnable d; }
30 void CCSettings::setPageScalePinchZoomEnabled(bool enabled) { s_pageScalePinchZo omEnabled = enabled; }
31
32 bool CCSettings::jankInsteadOfCheckerboard()
33 {
34 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kJankInsteadOfC heckerboard);
35 }
36
37 bool CCSettings::backgroundColorInsteadOfCheckerboard()
38 {
39 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kBackgroundColo rInsteadOfCheckerboard);
40 }
41
42 void CCSettings::reset()
43 {
44 s_perTilePaintingEnabled = false;
45 s_partialSwapEnabled = false;
46 s_acceleratedAnimationEnabled = false;
47 s_pageScalePinchZoomEnabled = false;
48 }
49
50 } // namespace cc
OLDNEW
« no previous file with comments | « cc/CCSettings.h ('k') | cc/CCSharedQuadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698