Index: samplecode/SampleUnpremul.cpp |
diff --git a/samplecode/SampleUnpremul.cpp b/samplecode/SampleUnpremul.cpp |
index c6244cf042d00f223a0cb0bdccb47e9506508373..dfdd2accdbcd2466cf1e3de20cf24f943cd59981 100644 |
--- a/samplecode/SampleUnpremul.cpp |
+++ b/samplecode/SampleUnpremul.cpp |
@@ -28,7 +28,7 @@ extern SkShader* createChecker(); |
* Interprets c as an unpremultiplied color, and returns the |
* premultiplied equivalent. |
*/ |
-SkPMColor SkPreMultiplyUnPMColor(SkPMColor c) { |
+static SkPMColor premultiply_unpmcolor(SkPMColor c) { |
U8CPU a = SkGetPackedA32(c); |
U8CPU r = SkGetPackedR32(c); |
U8CPU g = SkGetPackedG32(c); |
@@ -132,7 +132,7 @@ protected: |
} |
for (int i = 0; i < fBitmap.width(); ++i) { |
for (int j = 0; j < fBitmap.height(); ++j) { |
- *bm.getAddr32(i, j) = SkPreMultiplyUnPMColor(*fBitmap.getAddr32(i, j)); |
+ *bm.getAddr32(i, j) = premultiply_unpmcolor(*fBitmap.getAddr32(i, j)); |
} |
} |
canvas->drawBitmap(bm, 0, 0); |