Index: src/effects/SkTransparentShader.cpp |
diff --git a/src/effects/SkTransparentShader.cpp b/src/effects/SkTransparentShader.cpp |
index 0274481623f275b848fbe3771426546613a31a91..970e74faa80f41364e599e492bb685587cb4117e 100644 |
--- a/src/effects/SkTransparentShader.cpp |
+++ b/src/effects/SkTransparentShader.cpp |
@@ -23,7 +23,7 @@ bool SkTransparentShader::setContext(const SkBitmap& device, |
uint32_t SkTransparentShader::getFlags() { |
uint32_t flags = this->INHERITED::getFlags(); |
- switch (fDevice->getConfig()) { |
+ switch (fDevice->config()) { |
case SkBitmap::kRGB_565_Config: |
flags |= kHasSpan16_Flag; |
if (fAlpha == 255) |
@@ -42,7 +42,7 @@ uint32_t SkTransparentShader::getFlags() { |
void SkTransparentShader::shadeSpan(int x, int y, SkPMColor span[], int count) { |
unsigned scale = SkAlpha255To256(fAlpha); |
- switch (fDevice->getConfig()) { |
+ switch (fDevice->config()) { |
case SkBitmap::kARGB_8888_Config: |
if (scale == 256) { |
SkPMColor* src = fDevice->getAddr32(x, y); |
@@ -103,7 +103,7 @@ void SkTransparentShader::shadeSpan(int x, int y, SkPMColor span[], int count) { |
} |
void SkTransparentShader::shadeSpan16(int x, int y, uint16_t span[], int count) { |
- SkASSERT(fDevice->getConfig() == SkBitmap::kRGB_565_Config); |
+ SkASSERT(fDevice->config() == SkBitmap::kRGB_565_Config); |
uint16_t* src = fDevice->getAddr16(x, y); |
if (src != span) { |