diff options
| author | junov@google.com <junov@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-06 21:47:40 +0000 |
|---|---|---|
| committer | junov@google.com <junov@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-06 21:47:40 +0000 |
| commit | dbfac8a72393eaf01670aeb3244de0e18d8faf98 (patch) | |
| tree | 851b0b533bedd77e65dd43746802c4acf59b8390 /samplecode/SampleMipMap.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 'samplecode/SampleMipMap.cpp')
| -rw-r--r-- | samplecode/SampleMipMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleMipMap.cpp b/samplecode/SampleMipMap.cpp index e0a8e4de21..f3a12cd5ae 100644 --- a/samplecode/SampleMipMap.cpp +++ b/samplecode/SampleMipMap.cpp @@ -16,7 +16,7 @@ static SkBitmap createBitmap(int n) { SkBitmap bitmap; bitmap.setConfig(SkBitmap::kARGB_8888_Config, n, n); bitmap.allocPixels(); - bitmap.eraseColor(0); + bitmap.eraseColor(SK_ColorTRANSPARENT); SkCanvas canvas(bitmap); SkRect r; @@ -83,7 +83,7 @@ protected: SkAutoCanvasRestore acr(canvas, true); for (int i = 0; i < 6; i++) { - bg.eraseColor(0); + bg.eraseColor(SK_ColorTRANSPARENT); SkCanvas c(bg); c.scale(SK_Scalar1 / (1 << i), SK_Scalar1 / (1 << i)); c.drawBitmap(bitmap, 0, 0, NULL); |
