diff options
author | 2012-12-06 21:47:40 +0000 | |
---|---|---|
committer | 2012-12-06 21:47:40 +0000 | |
commit | dbfac8a72393eaf01670aeb3244de0e18d8faf98 (patch) | |
tree | 851b0b533bedd77e65dd43746802c4acf59b8390 /tests/QuickRejectTest.cpp | |
parent | 4eeda37a7456876cb8d509a4ea43c7f4c684477a (diff) |
Defining new color constat for transparent color
Review URL: https://codereview.appspot.com/6901044
git-svn-id: http://skia.googlecode.com/svn/trunk@6696 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/QuickRejectTest.cpp')
-rw-r--r-- | tests/QuickRejectTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/QuickRejectTest.cpp b/tests/QuickRejectTest.cpp index b8fb989966..00008330eb 100644 --- a/tests/QuickRejectTest.cpp +++ b/tests/QuickRejectTest.cpp @@ -41,7 +41,7 @@ static void test_drawBitmap(skiatest::Reporter* reporter) { SkBitmap dst; dst.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); dst.allocPixels(); - dst.eraseColor(0); + dst.eraseColor(SK_ColorTRANSPARENT); SkCanvas canvas(dst); SkPaint paint; @@ -54,7 +54,7 @@ static void test_drawBitmap(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); // reverify we are clear again - dst.eraseColor(0); + dst.eraseColor(SK_ColorTRANSPARENT); REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); // if the bitmap is clipped out, we don't draw it |