blob: a25434d13250cd3f3c57e72365a298f01cb3067b (
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
32
33
34
35
|
// 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 "webkit/glue/webkit_glue_export.h"
namespace cc {
// This file is for settings that apply to all compositors. Add settings to
// LayerTreeSettings if a ui and renderer compositor might not want the same
// setting.
class Settings {
public:
static bool perTilePaintingEnabled();
static bool partialSwapEnabled();
static bool acceleratedAnimationEnabled();
static bool pageScalePinchZoomEnabled();
static bool jankInsteadOfCheckerboard();
static bool backgroundColorInsteadOfCheckerboard();
static void setPartialSwapEnabled(bool);
static void setPerTilePaintingEnabled(bool);
static void setAcceleratedAnimationEnabled(bool);
static void setPageScalePinchZoomEnabled(bool);
static void resetForTest();
};
} // namespace cc
#endif // Settings_h
|