remove code disabled from writePixels change
These tests were asserting that particular, non-documented, optimizations were taking place in the deferreddevice. Theese particualr short-cuts are no longer possible given the change to canvas' writepixels to always require a raw-pointer. R=junov@google.com TBR=junov@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/190853002 git-svn-id: http://skia.googlecode.com/svn/trunk@13703 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
210a6aa8bd
commit
8eb20cc112
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user