Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: src/gpu/SkGr.cpp

Issue 483593002: eliminate code related to SkBitmap::Config (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkBitmap.cpp ('k') | src/image/SkImagePriv.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/core/SkBitmap.cpp ('k') | src/image/SkImagePriv.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698