Index: cc/layers/content_layer_unittest.cc |
diff --git a/cc/layers/content_layer_unittest.cc b/cc/layers/content_layer_unittest.cc |
index 25421e7d41b2ffba1892bb75c2f21131264c2d69..b1c6a113847a27ee7eae44d7bfadab5421c0f97e 100644 |
--- a/cc/layers/content_layer_unittest.cc |
+++ b/cc/layers/content_layer_unittest.cc |
@@ -6,6 +6,7 @@ |
#include "cc/layers/content_layer_client.h" |
#include "cc/resources/bitmap_content_layer_updater.h" |
+#include "cc/test/fake_rendering_stats_instrumentation.h" |
#include "cc/test/geometry_test_utils.h" |
#include "skia/ext/platform_canvas.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -37,17 +38,18 @@ TEST(ContentLayerTest, ContentLayerPainterWithDeviceScale) { |
gfx::RectF opaque_rect_in_content_space = gfx::ScaleRect( |
opaque_rect_in_layer_space, contents_scale, contents_scale); |
MockContentLayerClient client(opaque_rect_in_layer_space); |
+ FakeRenderingStatsInstrumentation stats_instrumentation; |
scoped_refptr<BitmapContentLayerUpdater> updater = |
- BitmapContentLayerUpdater::Create(ContentLayerPainter::Create(&client). |
- PassAs<LayerPainter>()); |
+ BitmapContentLayerUpdater::Create( |
+ ContentLayerPainter::Create(&client).PassAs<LayerPainter>(), |
+ &stats_instrumentation); |
gfx::Rect resulting_opaque_rect; |
updater->PrepareToUpdate(content_rect, |
gfx::Size(256, 256), |
contents_scale, |
contents_scale, |
- &resulting_opaque_rect, |
- NULL); |
+ &resulting_opaque_rect); |
EXPECT_RECT_EQ(gfx::ToEnclosingRect(opaque_rect_in_content_space), |
resulting_opaque_rect); |