blob: 5bfbb865ef29e2e9422c51dbe460b152a3112015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CCSettings_h
#define CCSettings_h
#include "IntSize.h"
namespace WebCore {
class CCSettings {
public:
static bool perTilePaintingEnabled();
static bool partialSwapEnabled();
static bool acceleratedAnimationEnabled();
// These setters should only be used on the main thread before the layer
// renderer is initialized.
static void setPerTilePaintingEnabled(bool);
static void setPartialSwapEnabled(bool);
static void setAcceleratedAnimationEnabled(bool);
// These settings are meant to be set only once, and only read thereafter.
// This function is only for resetting settings in tests.
static void reset();
};
} // namespace WebCore
#endif // CCSettings_h
|