blob: 28bcdaaf5e6d925e4168df4f7bb5b6795f989d5f (
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
|
// 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_LAYER_TREE_SETTINGS_H_
#define CC_LAYER_TREE_SETTINGS_H_
#include "base/basictypes.h"
#include "cc/cc_export.h"
#include "cc/layer_tree_debug_state.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 rightAlignedSchedulingEnabled;
bool acceleratedAnimationEnabled;
bool pageScalePinchZoomEnabled;
bool backgroundColorInsteadOfCheckerboard;
bool showOverdrawInTracing;
bool canUseLCDText;
bool shouldClearRootRenderPass;
bool useLinearFadeScrollbarAnimator;
bool calculateTopControlsPosition;
float minimumContentsScale;
float lowResContentsScaleFactor;
double refreshRate;
size_t maxPartialTextureUpdates;
size_t numRasterThreads;
int topControlsHeightPx;
gfx::Size defaultTileSize;
gfx::Size maxUntiledLayerSize;
gfx::Size minimumOcclusionTrackingSize;
LayerTreeDebugState initialDebugState;
};
} // namespace cc
#endif // CC_LAYER_TREE_SETTINGS_H_
|