| Index: tests/DeferredCanvasTest.cpp
|
| diff --git a/tests/DeferredCanvasTest.cpp b/tests/DeferredCanvasTest.cpp
|
| index 367300f9f2545ed0c149aec465e1129b6654c79b..aa360be4010c7fea3edea10c0239a36f564e8a13 100644
|
| --- a/tests/DeferredCanvasTest.cpp
|
| +++ b/tests/DeferredCanvasTest.cpp
|
| @@ -160,38 +160,12 @@ static void TestDeferredCanvasWritePixelsToSurface(skiatest::Reporter* reporter)
|
| REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
|
| REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
|
|
|
| - surface->clearCounts();
|
| - canvas->writePixels(srcBitmap, 0, 0);
|
| -#if 0
|
| - REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
|
| - REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
|
| -#endif
|
| - surface->clearCounts();
|
| - canvas->flush();
|
| -#if 0
|
| - REPORTER_ASSERT(reporter, 1 == surface->fDiscardCount);
|
| - REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
|
| -#endif
|
| -
|
| // Case 3: writePixels that partially covers the canvas
|
| surface->clearCounts();
|
| SkAutoTUnref<SkImage> image3(canvas->newImageSnapshot());
|
| REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
|
| REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
|
|
|
| - surface->clearCounts();
|
| - canvas->writePixels(srcBitmap, 5, 0);
|
| -#if 0
|
| - REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
|
| - REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
|
| -#endif
|
| - surface->clearCounts();
|
| - canvas->flush();
|
| -#if 0
|
| - REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
|
| - REPORTER_ASSERT(reporter, 1 == surface->fRetainCount);
|
| -#endif
|
| -
|
| // Case 4: unpremultiplied opaque writePixels that entirely
|
| // covers the canvas
|
| surface->clearCounts();
|
|
|