| Index: src/opts/SkBitmapProcState_opts_mips_dsp.cpp
|
| diff --git a/src/opts/SkBitmapProcState_opts_mips_dsp.cpp b/src/opts/SkBitmapProcState_opts_mips_dsp.cpp
|
| index 049519a61364a5181c389fa7d2fc162fbeab578e..6b8195c660f15768134e9055e617fecce8846dc9 100644
|
| --- a/src/opts/SkBitmapProcState_opts_mips_dsp.cpp
|
| +++ b/src/opts/SkBitmapProcState_opts_mips_dsp.cpp
|
| @@ -18,13 +18,13 @@ static void SI8_D16_nofilter_DX_mips_dsp(const SkBitmapProcState& s,
|
| SkASSERT(count > 0 && colors != NULL);
|
| SkASSERT(s.fInvType <= (SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask));
|
| SkASSERT(kNone_SkFilterQuality == s.fFilterLevel);
|
| - const uint16_t* SK_RESTRICT table = s.fBitmap->getColorTable()->read16BitCache();
|
| - const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels();
|
| - SkASSERT((unsigned)xy[0] < (unsigned)s.fBitmap->height());
|
| - srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes());
|
| + const uint16_t* SK_RESTRICT table = s.fPixmap.ctable()->read16BitCache();
|
| + const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fPixmap.addr();
|
| + SkASSERT((unsigned)xy[0] < (unsigned)s.fPixmap.height());
|
| + srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fPixmap.rowBytes());
|
| uint8_t src;
|
|
|
| - if (1 == s.fBitmap->width()) {
|
| + if (1 == s.fPixmap.width()) {
|
| src = srcAddr[0];
|
| uint16_t dstValue = table[src];
|
| sk_memset16(colors, dstValue, count);
|
| @@ -150,11 +150,11 @@ static void SI8_opaque_D32_nofilter_DX_mips_dsp(const SkBitmapProcState& s,
|
| SkASSERT(count > 0 && colors != NULL);
|
| SkASSERT(s.fInvType <= (SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask));
|
| SkASSERT(kNone_SkFilterQuality == s.fFilterLevel);
|
| - const SkPMColor* SK_RESTRICT table = s.fBitmap->getColorTable()->readColors();
|
| - const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fBitmap->getPixels();
|
| - srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fBitmap->rowBytes());
|
| + const SkPMColor* SK_RESTRICT table = s.fPixmap.ctable()->readColors();
|
| + const uint8_t* SK_RESTRICT srcAddr = (const uint8_t*)s.fPixmap.addr();
|
| + srcAddr = (const uint8_t*)((const char*)srcAddr + xy[0] * s.fPixmap.rowBytes());
|
|
|
| - if (1 == s.fBitmap->width()) {
|
| + if (1 == s.fPixmap.width()) {
|
| uint8_t src = srcAddr[0];
|
| SkPMColor dstValue = table[src];
|
| sk_memset32(colors, dstValue, count);
|
| @@ -376,7 +376,7 @@ void SkBitmapProcState::platformProcs() {
|
| justDx = true;
|
| }
|
|
|
| - switch (fBitmap->colorType()) {
|
| + switch (fPixmap.colorType()) {
|
| case kIndex_8_SkColorType:
|
| if (justDx && kNone_SkFilterQuality == fFilterLevel) {
|
| fSampleProc16 = SI8_D16_nofilter_DX_mips_dsp;
|
|
|