| Index: src/gpu/SkGr.cpp
|
| diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp
|
| index 308c3fe7ab8b25c94888bc203c90a432981c5110..085ad2bf8a94841a1da6c3450e027fd40cd77acf 100644
|
| --- a/src/gpu/SkGr.cpp
|
| +++ b/src/gpu/SkGr.cpp
|
| @@ -428,26 +428,6 @@ void GrUnlockAndUnrefCachedBitmapTexture(GrTexture* texture) {
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| -#ifdef SK_SUPPORT_LEGACY_BITMAP_CONFIG
|
| -GrPixelConfig SkBitmapConfig2GrPixelConfig(SkBitmap::Config config) {
|
| - switch (config) {
|
| - case SkBitmap::kA8_Config:
|
| - return kAlpha_8_GrPixelConfig;
|
| - case SkBitmap::kIndex8_Config:
|
| - return kIndex_8_GrPixelConfig;
|
| - case SkBitmap::kRGB_565_Config:
|
| - return kRGB_565_GrPixelConfig;
|
| - case SkBitmap::kARGB_4444_Config:
|
| - return kRGBA_4444_GrPixelConfig;
|
| - case SkBitmap::kARGB_8888_Config:
|
| - return kSkia8888_GrPixelConfig;
|
| - default:
|
| - // kNo_Config, kA1_Config missing
|
| - return kUnknown_GrPixelConfig;
|
| - }
|
| -}
|
| -#endif
|
| -
|
| // alphatype is ignore for now, but if GrPixelConfig is expanded to encompass
|
| // alpha info, that will be considered.
|
| GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType ct, SkAlphaType) {
|
|
|