summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host.h
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-12 19:18:37 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-12 19:18:37 +0000
commitff762fbe1abebb014ef65596becbcd28900b44de (patch)
tree709c69cca4f1930a95a0d6d3fc52bb9dbf662bfe /cc/layer_tree_host.h
parent5f542b3a751407a6168b61be7c675edeccc83b59 (diff)
downloadchromium_src-ff762fbe1abebb014ef65596becbcd28900b44de.zip
chromium_src-ff762fbe1abebb014ef65596becbcd28900b44de.tar.gz
chromium_src-ff762fbe1abebb014ef65596becbcd28900b44de.tar.bz2
[cc] Route LayerImpl::layerTreeHostImpl() calls through LayerTreeImpl
Pulled settings & debugstate to their own files to reduce header coupling, which bit me a few times on this patch [lthi needs lth, lti needs lthi for settings, etc]. NOTRY=true BUG=155209 R=enne Review URL: https://chromiumcodereview.appspot.com/11529003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host.h')
-rw-r--r--cc/layer_tree_host.h47
1 files changed, 1 insertions, 46 deletions
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index 7e600bd..5c1ce68 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -17,6 +17,7 @@
#include "cc/cc_export.h"
#include "cc/layer_tree_host_client.h"
#include "cc/layer_tree_host_common.h"
+#include "cc/layer_tree_settings.h"
#include "cc/occlusion_tracker.h"
#include "cc/output_surface.h"
#include "cc/prioritized_resource_manager.h"
@@ -49,52 +50,6 @@ class HeadsUpDisplayLayer;
class Region;
struct ScrollAndScaleSet;
-struct CC_EXPORT LayerTreeDebugState {
- LayerTreeDebugState();
- ~LayerTreeDebugState();
-
- bool showFPSCounter;
- bool showPlatformLayerTree;
- bool showDebugBorders;
-
- bool showPaintRects;
- bool showPropertyChangedRects;
- bool showSurfaceDamageRects;
- bool showScreenSpaceRects;
- bool showReplicaScreenSpaceRects;
- bool showOccludingRects;
- bool showNonOccludingRects;
-
- bool showHudInfo() const;
- bool showHudRects() const;
- bool hudNeedsFont() const;
-
- static bool equal(const LayerTreeDebugState& a, const LayerTreeDebugState& b);
- static LayerTreeDebugState unite(const LayerTreeDebugState& a, const LayerTreeDebugState& b);
-};
-
-struct CC_EXPORT LayerTreeSettings {
- LayerTreeSettings();
- ~LayerTreeSettings();
-
- bool acceleratePainting;
- bool implSidePainting;
- bool renderVSyncEnabled;
- bool perTilePaintingEnabled;
- bool partialSwapEnabled;
- bool acceleratedAnimationEnabled;
- bool pageScalePinchZoomEnabled;
- bool backgroundColorInsteadOfCheckerboard;
- bool showOverdrawInTracing;
- double refreshRate;
- size_t maxPartialTextureUpdates;
- size_t numRasterThreads;
- gfx::Size defaultTileSize;
- gfx::Size maxUntiledLayerSize;
- gfx::Size minimumOcclusionTrackingSize;
-
- LayerTreeDebugState initialDebugState;
-};
// Provides information on an Impl's rendering capabilities back to the LayerTreeHost
struct CC_EXPORT RendererCapabilities {