Index: src/pdf/SkPDFImage.cpp |
diff --git a/src/pdf/SkPDFImage.cpp b/src/pdf/SkPDFImage.cpp |
index ed204550e76ee87c866c2e783b7695e65b1d5b47..c3dc396fc4be4bc08350c828b3695ad1c976e824 100644 |
--- a/src/pdf/SkPDFImage.cpp |
+++ b/src/pdf/SkPDFImage.cpp |
@@ -27,7 +27,7 @@ static bool skip_compression(SkPDFCatalog* catalog) { |
static size_t get_uncompressed_size(const SkBitmap& bitmap, |
const SkIRect& srcRect) { |
- switch (bitmap.getConfig()) { |
+ switch (bitmap.config()) { |
case SkBitmap::kIndex8_Config: |
return srcRect.width() * srcRect.height(); |
case SkBitmap::kARGB_4444_Config: |
@@ -491,7 +491,7 @@ static SkBitmap unpremultiply_bitmap(const SkBitmap& bitmap, |
SkPDFImage* SkPDFImage::CreateImage(const SkBitmap& bitmap, |
const SkIRect& srcRect, |
SkPicture::EncodeBitmap encoder) { |
- if (bitmap.getConfig() == SkBitmap::kNo_Config) { |
+ if (bitmap.config() == SkBitmap::kNo_Config) { |
return NULL; |
} |
@@ -569,7 +569,7 @@ SkPDFImage::SkPDFImage(SkStream* stream, |
fStreamValid = false; |
} |
- SkBitmap::Config config = fBitmap.getConfig(); |
+ SkBitmap::Config config = fBitmap.config(); |
insertName("Type", "XObject"); |
insertName("Subtype", "Image"); |