summaryrefslogtreecommitdiffstats
path: root/cc/content_layer_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/content_layer_unittest.cc')
-rw-r--r--cc/content_layer_unittest.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/cc/content_layer_unittest.cc b/cc/content_layer_unittest.cc
index 8e6e7e6..dc84df7 100644
--- a/cc/content_layer_unittest.cc
+++ b/cc/content_layer_unittest.cc
@@ -14,8 +14,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include <public/WebFloatRect.h>
#include <public/WebRect.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/RefPtr.h>
using namespace cc;
using namespace WebKit;
@@ -45,9 +43,8 @@ TEST(ContentLayerChromiumTest, ContentLayerPainterWithDeviceScale)
IntRect opaqueRectInLayerSpace(5, 5, 20, 20);
IntRect opaqueRectInContentSpace = opaqueRectInLayerSpace;
opaqueRectInContentSpace.scale(contentsScale);
- OwnPtr<SkCanvas> canvas = adoptPtr(skia::CreateBitmapCanvas(contentRect.width(), contentRect.height(), false));
MockContentLayerChromiumClient client(opaqueRectInLayerSpace);
- RefPtr<BitmapCanvasLayerTextureUpdater> updater = BitmapCanvasLayerTextureUpdater::create(ContentLayerPainter::create(&client));
+ RefPtr<BitmapCanvasLayerTextureUpdater> updater = BitmapCanvasLayerTextureUpdater::create(ContentLayerPainter::create(&client).PassAs<LayerPainterChromium>());
IntRect resultingOpaqueRect;
CCRenderingStats stats;