blob: 7c17bd486dff9d8c0ffe989937ab0cb2d20a7a13 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// Copyright 2011 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 CC_TREES_LAYER_TREE_SETTINGS_H_
#define CC_TREES_LAYER_TREE_SETTINGS_H_
#include "base/basictypes.h"
#include "cc/base/cc_export.h"
#include "cc/debug/layer_tree_debug_state.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/size.h"
namespace cc {
class CC_EXPORT LayerTreeSettings {
public:
LayerTreeSettings();
~LayerTreeSettings();
bool acceleratePainting;
bool compositorFrameMessage;
bool implSidePainting;
bool renderVSyncEnabled;
bool perTilePaintingEnabled;
bool partialSwapEnabled;
bool cacheRenderPassContents;
bool rightAlignedSchedulingEnabled;
bool acceleratedAnimationEnabled;
bool backgroundColorInsteadOfCheckerboard;
bool showOverdrawInTracing;
bool canUseLCDText;
bool shouldClearRootRenderPass;
bool useLinearFadeScrollbarAnimator;
bool solidColorScrollbars;
SkColor solidColorScrollbarColor;
int solidColorScrollbarThicknessDIP;
bool calculateTopControlsPosition;
bool useCheapnessEstimator;
bool useColorEstimator;
bool useMemoryManagement;
bool predictionBenchmarking;
float minimumContentsScale;
float lowResContentsScaleFactor;
float topControlsHeight;
float topControlsShowThreshold;
float topControlsHideThreshold;
double refreshRate;
size_t maxPartialTextureUpdates;
size_t numRasterThreads;
gfx::Size defaultTileSize;
gfx::Size maxUntiledLayerSize;
gfx::Size minimumOcclusionTrackingSize;
bool usePinchZoomScrollbars;
LayerTreeDebugState initialDebugState;
};
} // namespace cc
#endif // CC_TREES_LAYER_TREE_SETTINGS_H_
|