Chromium Code Reviews| Index: tests/SurfaceTest.cpp |
| diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp |
| index 94490144ed8fa4b654a739cc350da173ffa95d1b..8cd50ddd33bd8ba25df6683acea75fa94dfbd4d6 100644 |
| --- a/tests/SurfaceTest.cpp |
| +++ b/tests/SurfaceTest.cpp |
| @@ -482,7 +482,7 @@ static void test_surface_budget(skiatest::Reporter* reporter, GrContext* context |
| SkASSERT(surface); |
| REPORTER_ASSERT(reporter, sbudgeted == is_budgeted(surface)); |
| - SkImage* image = surface->newImageSnapshot(ibudgeted); |
| + SkAutoTUnref<SkImage> image(surface->newImageSnapshot(ibudgeted)); |
|
tfarina
2015/01/24 22:03:11
lgtm
|
| // Initially the image shares a texture with the surface, and the surface decides |
| // whether it is budgeted or not. |