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

Side by Side Diff: cc/CCSettings.cpp

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 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 "config.h" 5 #include "config.h"
6 6
7 #include "CCSettings.h" 7 #include "CCSettings.h"
8 8
9 namespace { 9 namespace {
10 static bool s_perTilePaintingEnabled = false; 10 static bool s_perTilePaintingEnabled = false;
11 static bool s_partialSwapEnabled = false; 11 static bool s_partialSwapEnabled = false;
12 static bool s_acceleratedAnimationEnabled = false; 12 static bool s_acceleratedAnimationEnabled = false;
13 } // namespace 13 } // namespace
14 14
15 namespace WebCore { 15 namespace cc {
16 16
17 bool CCSettings::perTilePaintingEnabled() { return s_perTilePaintingEnabled; } 17 bool CCSettings::perTilePaintingEnabled() { return s_perTilePaintingEnabled; }
18 void CCSettings::setPerTilePaintingEnabled(bool enabled) { s_perTilePaintingEnab led = enabled; } 18 void CCSettings::setPerTilePaintingEnabled(bool enabled) { s_perTilePaintingEnab led = enabled; }
19 19
20 bool CCSettings::partialSwapEnabled() { return s_partialSwapEnabled; } 20 bool CCSettings::partialSwapEnabled() { return s_partialSwapEnabled; }
21 void CCSettings::setPartialSwapEnabled(bool enabled) { s_partialSwapEnabled = en abled; } 21 void CCSettings::setPartialSwapEnabled(bool enabled) { s_partialSwapEnabled = en abled; }
22 22
23 bool CCSettings::acceleratedAnimationEnabled() { return s_acceleratedAnimationEn abled; } 23 bool CCSettings::acceleratedAnimationEnabled() { return s_acceleratedAnimationEn abled; }
24 void CCSettings::setAcceleratedAnimationEnabled(bool enabled) { s_acceleratedAni mationEnabled = enabled; } 24 void CCSettings::setAcceleratedAnimationEnabled(bool enabled) { s_acceleratedAni mationEnabled = enabled; }
25 25
26 void CCSettings::reset() 26 void CCSettings::reset()
27 { 27 {
28 s_perTilePaintingEnabled = false; 28 s_perTilePaintingEnabled = false;
29 s_partialSwapEnabled = false; 29 s_partialSwapEnabled = false;
30 s_acceleratedAnimationEnabled = false; 30 s_acceleratedAnimationEnabled = false;
31 } 31 }
32 32
33 } // namespace WebCore 33 } // 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