aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/Intersection
diff options
context:
space:
mode:
authorGravatar junov@google.com <junov@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-06 21:47:40 +0000
committerGravatar junov@google.com <junov@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-06 21:47:40 +0000
commitdbfac8a72393eaf01670aeb3244de0e18d8faf98 (patch)
tree851b0b533bedd77e65dd43746802c4acf59b8390 /experimental/Intersection
parent4eeda37a7456876cb8d509a4ea43c7f4c684477a (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 'experimental/Intersection')
-rw-r--r--experimental/Intersection/SkAntiEdge.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/experimental/Intersection/SkAntiEdge.cpp b/experimental/Intersection/SkAntiEdge.cpp
index eb7dc34d7e..41887fe3c1 100644
--- a/experimental/Intersection/SkAntiEdge.cpp
+++ b/experimental/Intersection/SkAntiEdge.cpp
@@ -999,7 +999,7 @@ void CreateSweep(SkBitmap* sweep, SkScalar rectWidth) {
const int pixelCol = 100;
sweep->setConfig(SkBitmap::kA8_Config, pixelCol, pixelRow);
sweep->allocPixels();
- sweep->eraseColor(0);
+ sweep->eraseColor(SK_ColorTRANSPARENT);
sweep->lockPixels();
void* pixels = sweep->getPixels();
create_sweep((uint8_t*) pixels, pixelRow, pixelCol, rectWidth);
@@ -1011,7 +1011,7 @@ void CreateHorz(SkBitmap* sweep) {
const int pixelCol = 100;
sweep->setConfig(SkBitmap::kA8_Config, pixelCol, pixelRow);
sweep->allocPixels();
- sweep->eraseColor(0);
+ sweep->eraseColor(SK_ColorTRANSPARENT);
sweep->lockPixels();
void* pixels = sweep->getPixels();
create_horz((uint8_t*) pixels, pixelRow, pixelCol);
@@ -1023,7 +1023,7 @@ void CreateVert(SkBitmap* sweep) {
const int pixelCol = 100;
sweep->setConfig(SkBitmap::kA8_Config, pixelCol, pixelRow);
sweep->allocPixels();
- sweep->eraseColor(0);
+ sweep->eraseColor(SK_ColorTRANSPARENT);
sweep->lockPixels();
void* pixels = sweep->getPixels();
create_vert((uint8_t*) pixels, pixelRow, pixelCol);
@@ -1035,7 +1035,7 @@ void CreateAngle(SkBitmap* sweep, SkScalar angle) {
const int pixelCol = 150;
sweep->setConfig(SkBitmap::kA8_Config, pixelCol, pixelRow);
sweep->allocPixels();
- sweep->eraseColor(0);
+ sweep->eraseColor(SK_ColorTRANSPARENT);
sweep->lockPixels();
void* pixels = sweep->getPixels();
create_angle((uint8_t*) pixels, pixelRow, pixelCol, angle);