use AsMode instead of deprecated IsMode
git-svn-id: http://skia.googlecode.com/svn/trunk@2705 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp
index 6bb0db4..307d51b 100644
--- a/src/core/SkBlitter.cpp
+++ b/src/core/SkBlitter.cpp
@@ -716,7 +716,7 @@
SkBitmap::Config deviceConfig) {
SkXfermode::Mode mode;
- if (SkXfermode::IsMode(xfer, &mode)) {
+ if (SkXfermode::AsMode(xfer, &mode)) {
switch (mode) {
case SkXfermode::kSrc_Mode:
if (just_solid_color(paint)) {
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp
index 579e29a..5ddca08 100644
--- a/src/core/SkDraw.cpp
+++ b/src/core/SkDraw.cpp
@@ -152,7 +152,7 @@
}
SkXfermode::Mode mode;
- if (!SkXfermode::IsMode(paint.getXfermode(), &mode)) {
+ if (!SkXfermode::AsMode(paint.getXfermode(), &mode)) {
return NULL;
}
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 69973be..869189f 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -1462,9 +1462,7 @@
}
if (NULL != xmode && NULL != texs && NULL != colors) {
- SkXfermode::Mode mode;
- if (!SkXfermode::IsMode(xmode, &mode) ||
- SkXfermode::kMultiply_Mode != mode) {
+ if (!SkXfermode::IsMode(xmode, SkXfermode::kMultiply_Mode)) {
SkDebugf("Unsupported vertex-color/texture xfer mode.\n");
#if 0
return