summaryrefslogtreecommitdiffstats
path: root/cc/layers/ui_resource_layer_unittest.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 20:36:43 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 20:36:43 +0000
commit97c6a734bf17b2eafb1bac318236736edb7c3460 (patch)
treedd0b4b7f183e59efcc9b3db3d3cde58bfc9bfcd8 /cc/layers/ui_resource_layer_unittest.cc
parente13549ec4ece604cb4cb8b2cfaefc016015fef33 (diff)
downloadchromium_src-97c6a734bf17b2eafb1bac318236736edb7c3460.zip
chromium_src-97c6a734bf17b2eafb1bac318236736edb7c3460.tar.gz
chromium_src-97c6a734bf17b2eafb1bac318236736edb7c3460.tar.bz2
cc: Remove OverdrawMetrics and --trace-overdraw flag.
These metrics are only recorded when --trace-overdraw is specified, which means they are never recorded in practice because they are too expensive to record. They get in the way of inverting the occlusion relationship with AppendQuads, so remove them. R=enne@chromium.org, piman@chromium.org, enne BUG=344962,351493 Review URL: https://codereview.chromium.org/195803003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256630 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/ui_resource_layer_unittest.cc')
-rw-r--r--cc/layers/ui_resource_layer_unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/cc/layers/ui_resource_layer_unittest.cc b/cc/layers/ui_resource_layer_unittest.cc
index c05d312..1e0e1dea 100644
--- a/cc/layers/ui_resource_layer_unittest.cc
+++ b/cc/layers/ui_resource_layer_unittest.cc
@@ -4,7 +4,6 @@
#include "cc/layers/ui_resource_layer.h"
-#include "cc/debug/overdraw_metrics.h"
#include "cc/resources/prioritized_resource_manager.h"
#include "cc/resources/resource_provider.h"
#include "cc/resources/resource_update_queue.h"
@@ -58,7 +57,8 @@ TEST_F(UIResourceLayerTest, SetBitmap) {
EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get());
ResourceUpdateQueue queue;
- OcclusionTracker<Layer> occlusion_tracker(gfx::Rect(), false);
+ gfx::Rect screen_space_clip_rect;
+ OcclusionTracker<Layer> occlusion_tracker(screen_space_clip_rect);
test_layer->SavePaintProperties();
test_layer->Update(&queue, &occlusion_tracker);
@@ -86,7 +86,8 @@ TEST_F(UIResourceLayerTest, SetUIResourceId) {
EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get());
ResourceUpdateQueue queue;
- OcclusionTracker<Layer> occlusion_tracker(gfx::Rect(), false);
+ gfx::Rect screen_space_clip_rect;
+ OcclusionTracker<Layer> occlusion_tracker(screen_space_clip_rect);
test_layer->SavePaintProperties();
test_layer->Update(&queue, &occlusion_tracker);