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

Unified Diff: tests/ClipCubicTest.cpp

Issue 164203003: replace setConfig+allocPixels with alloc-or-install-pixels (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/CanvasTest.cpp ('k') | tests/ClipperTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ClipCubicTest.cpp
diff --git a/tests/ClipCubicTest.cpp b/tests/ClipCubicTest.cpp
index db6ae8029333814068b8260bf837dc9a76d2fafd..31b38f2726286228f24d74e35c6ab7f6e57ad551 100644
--- a/tests/ClipCubicTest.cpp
+++ b/tests/ClipCubicTest.cpp
@@ -16,8 +16,7 @@
// with a device/clip that is larger.
static void test_giantClip() {
SkBitmap bm;
- bm.setConfig(SkBitmap::kARGB_8888_Config, 64919, 1);
- bm.allocPixels();
+ bm.allocN32Pixels(64919, 1);
SkCanvas canvas(bm);
canvas.clear(SK_ColorTRANSPARENT);
« no previous file with comments | « tests/CanvasTest.cpp ('k') | tests/ClipperTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698