Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index ae140e28460a0556d17790cefa6fb6b1f8970bdf..c08e75f62c0ec389c02bab67a7b25d4daecbcc6c 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -298,7 +298,7 @@ DEF_GPUTEST(ResourceCache, reporter, factory) { |
desc.fHeight = gHeight; |
SkAutoTUnref<GrTexture> texture(context->createUncachedTexture(desc, NULL, 0)); |
- SkAutoTUnref<SkGpuDevice> device(SkNEW_ARGS(SkGpuDevice, (context, texture.get()))); |
+ SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(texture.get())); |
SkCanvas canvas(device.get()); |
test_cache(reporter, context, &canvas); |