Index: src/core/SkBitmapProcShader.cpp |
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp |
index 97abbf96759ff7e7e9e029493791e99f718fcb71..c3b10184f4429981d69d18ce888b4af1bb61f609 100644 |
--- a/src/core/SkBitmapProcShader.cpp |
+++ b/src/core/SkBitmapProcShader.cpp |
@@ -27,7 +27,9 @@ |
fTileModeY = (uint8_t)tmy; |
} |
-bool SkBitmapProcShader::onIsABitmap(SkBitmap* texture, SkMatrix* texM, TileMode xy[]) const { |
+SkShader::BitmapType SkBitmapProcShader::asABitmap(SkBitmap* texture, |
+ SkMatrix* texM, |
+ TileMode xy[]) const { |
if (texture) { |
*texture = fRawBitmap; |
} |
@@ -38,7 +40,7 @@ |
xy[0] = (TileMode)fTileModeX; |
xy[1] = (TileMode)fTileModeY; |
} |
- return true; |
+ return kDefault_BitmapType; |
} |
SkFlattenable* SkBitmapProcShader::CreateProc(SkReadBuffer& buffer) { |