From 97c6a734bf17b2eafb1bac318236736edb7c3460 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Wed, 12 Mar 2014 20:36:43 +0000 Subject: 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 --- cc/layers/ui_resource_layer_unittest.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cc/layers/ui_resource_layer_unittest.cc') 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 occlusion_tracker(gfx::Rect(), false); + gfx::Rect screen_space_clip_rect; + OcclusionTracker 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 occlusion_tracker(gfx::Rect(), false); + gfx::Rect screen_space_clip_rect; + OcclusionTracker occlusion_tracker(screen_space_clip_rect); test_layer->SavePaintProperties(); test_layer->Update(&queue, &occlusion_tracker); -- cgit v1.1