Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1570)

Unified Diff: tests/ResourceCacheTest.cpp

Issue 517033002: Make SkGpuDevice constructors private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more replacements of cons with factory Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/ReadWriteAlphaTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « tests/ReadWriteAlphaTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698