Index: tests/SkResourceCacheTest.cpp |
diff --git a/tests/SkResourceCacheTest.cpp b/tests/SkResourceCacheTest.cpp |
index e1f8a65bbca42b7d989e3dd56f3e88d357417dc5..0e941758eede8bce9de3d51d53376eb9b398c3e7 100644 |
--- a/tests/SkResourceCacheTest.cpp |
+++ b/tests/SkResourceCacheTest.cpp |
@@ -11,7 +11,6 @@ |
#include "SkDiscardableMemoryPool.h" |
#include "SkGraphics.h" |
#include "SkResourceCache.h" |
-#include "SkSurface.h" |
static const int kCanvasSize = 1; |
static const int kBitmapSize = 16; |
@@ -28,8 +27,8 @@ |
// Draw a scaled bitmap, then return true iff it has been cached. |
static bool test_scaled_image_cache_useage() { |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(kCanvasSize, kCanvasSize)); |
- SkCanvas* canvas = surface->getCanvas(); |
+ SkAutoTUnref<SkCanvas> canvas( |
+ SkCanvas::NewRasterN32(kCanvasSize, kCanvasSize)); |
SkBitmap bitmap; |
bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); |
bitmap.eraseColor(0xFFFFFFFF); |