aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/DeferredCanvasTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/DeferredCanvasTest.cpp')
-rw-r--r--tests/DeferredCanvasTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/DeferredCanvasTest.cpp b/tests/DeferredCanvasTest.cpp
index bb5410871c..860edf9a2a 100644
--- a/tests/DeferredCanvasTest.cpp
+++ b/tests/DeferredCanvasTest.cpp
@@ -369,7 +369,7 @@ static void TestDeferredCanvasBitmapShaderNoLeak(skiatest::Reporter* reporter) {
SkBitmap paintPattern;
paintPattern.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
paintPattern.allocPixels();
- paint.setShader(SkNEW_ARGS(SkBitmapProcShader,
+ paint.setShader(SkNEW_ARGS(SkBitmapProcShader,
(paintPattern, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode)))->unref();
canvas.drawPaint(paint);
canvas.flush();
@@ -382,13 +382,13 @@ static void TestDeferredCanvasBitmapShaderNoLeak(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, newBytesAllocated > bytesAllocated);
bytesAllocated = newBytesAllocated;
} else {
- REPORTER_ASSERT(reporter, newBytesAllocated == bytesAllocated);
+ REPORTER_ASSERT(reporter, newBytesAllocated == bytesAllocated);
}
}
}
- // All cached resources should be evictable since last canvas call was flush()
+ // All cached resources should be evictable since last canvas call was flush()
canvas.freeMemoryIfPossible(~0);
- REPORTER_ASSERT(reporter, 0 == canvas.storageAllocatedForRecording());
+ REPORTER_ASSERT(reporter, 0 == canvas.storageAllocatedForRecording());
}
static void TestDeferredCanvas(skiatest::Reporter* reporter) {