diff options
author | 2014-07-17 12:25:11 -0700 | |
---|---|---|
committer | 2014-07-17 12:25:11 -0700 | |
commit | 98d608dba6a0b3c15fb08f1fa2c8b9d170124c7c (patch) | |
tree | cba2372b4abff4dae433df57662e7a7a27611ff2 /libs/hwui/PathCache.cpp | |
parent | 889fc94ffa70633e510e812b9da86723f4eee384 (diff) |
Minor cleanups around color usage
Change-Id: I56733cbe933a58d5977c032f056abb35265ee252
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r-- | libs/hwui/PathCache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp index ae486087e785..9ba885496f6f 100644 --- a/libs/hwui/PathCache.cpp +++ b/libs/hwui/PathCache.cpp @@ -19,6 +19,7 @@ #include <SkBitmap.h> #include <SkCanvas.h> +#include <SkColor.h> #include <SkPaint.h> #include <SkPath.h> #include <SkRect.h> @@ -111,7 +112,7 @@ static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { static void initPaint(SkPaint& paint) { // Make sure the paint is opaque, color, alpha, filter, etc. // will be applied later when compositing the alpha8 texture - paint.setColor(0xff000000); + paint.setColor(SK_ColorBLACK); paint.setAlpha(255); paint.setColorFilter(NULL); paint.setMaskFilter(NULL); |