Index: cc/layer_tree_host.cc |
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc |
index a186ed0ca2c7dde89d5f7ec52f7d83da1764d6b4..8921ef4ee71ee22d3957469f6a7b195998b9bb0e 100644 |
--- a/cc/layer_tree_host.cc |
+++ b/cc/layer_tree_host.cc |
@@ -4,6 +4,7 @@ |
#include "cc/layer_tree_host.h" |
+#include "base/command_line.h" |
#include "base/debug/trace_event.h" |
#include "base/message_loop.h" |
#include "cc/font_atlas.h" |
@@ -21,6 +22,7 @@ |
#include "cc/overdraw_metrics.h" |
#include "cc/settings.h" |
#include "cc/single_thread_proxy.h" |
+#include "cc/switches.h" |
#include "cc/thread.h" |
#include "cc/thread_proxy.h" |
#include "cc/tree_synchronizer.h" |
@@ -51,6 +53,12 @@ LayerTreeSettings::LayerTreeSettings() |
, maxUntiledLayerSize(gfx::Size(512, 512)) |
, minimumOcclusionTrackingSize(gfx::Size(160, 160)) |
{ |
+ // TODO(danakj): Move this to chromium when we don't go through the WebKit API anymore. |
+ showPropertyChangedRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kShowPropertyChangedRects); |
tfarina
2012/11/13 15:00:19
do we need cc:: here? We are in cc namespace alrea
|
+ showSurfaceDamageRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kShowSurfaceDamageRects); |
+ showScreenSpaceRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kShowScreenSpaceRects); |
+ showReplicaScreenSpaceRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kShowReplicaScreenSpaceRects); |
+ showOccludingRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kShowOccludingRects); |
} |
LayerTreeSettings::~LayerTreeSettings() |