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

Unified Diff: tests/ShaderImageFilterTest.cpp

Issue 162643002: replace setConfig+allocPixels with single call (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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/SerializationTest.cpp ('k') | tests/ShaderOpacityTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ShaderImageFilterTest.cpp
diff --git a/tests/ShaderImageFilterTest.cpp b/tests/ShaderImageFilterTest.cpp
index 96beed51a13e065ce711913336ccf72ab1418fc9..45fb5ca9a1d340ca41ef3e8300539789897346de 100644
--- a/tests/ShaderImageFilterTest.cpp
+++ b/tests/ShaderImageFilterTest.cpp
@@ -17,13 +17,11 @@ DEF_TEST(ShaderImageFilter, reporter) {
SkBitmap filterResult, shaderResult;
- filterResult.setConfig(SkBitmap::kARGB_8888_Config, w, h);
- filterResult.allocPixels();
+ filterResult.allocN32Pixels(w, h);
SkCanvas canvasFilter(filterResult);
canvasFilter.clear(0x00000000);
- shaderResult.setConfig(SkBitmap::kARGB_8888_Config, w, h);
- shaderResult.allocPixels();
+ shaderResult.allocN32Pixels(w, h);
SkCanvas canvasShader(shaderResult);
canvasShader.clear(0x00000000);
« no previous file with comments | « tests/SerializationTest.cpp ('k') | tests/ShaderOpacityTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698