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

Unified Diff: content/common/gpu/client/gl_helper_readback_support.h

Issue 374633002: SkBitmap::Config is deprecated, use SkColorType instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments from #4 Created 6 years, 5 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
Index: content/common/gpu/client/gl_helper_readback_support.h
diff --git a/content/common/gpu/client/gl_helper_readback_support.h b/content/common/gpu/client/gl_helper_readback_support.h
index e163c761fdf65ba60c8c3e66642e78a56a6d4523..266711c26b6046871252efd59c82749965b98bfe 100644
--- a/content/common/gpu/client/gl_helper_readback_support.h
+++ b/content/common/gpu/client/gl_helper_readback_support.h
@@ -22,7 +22,7 @@ class CONTENT_EXPORT GLHelperReadbackSupport {
// For ex: some hardwares have rgb565 readback
// support when binded with the frame buffer for others it may fail.
// Here we pass the internal textureformat as skia config.
- bool IsReadbackConfigSupported(SkBitmap::Config texture_format);
+ bool IsReadbackConfigSupported(SkColorType texture_format);
// Provides the additional readback format/type pairing for a render target
// of a given format/type pairing
@@ -46,14 +46,14 @@ class CONTENT_EXPORT GLHelperReadbackSupport {
// InitializeReadbackSupport. We should not use this any where
// except the InitializeReadbackSupport.Calling this at other places
// can distrub the state of normal gl operations.
- void CheckForReadbackSupport(SkBitmap::Config texture_format);
+ void CheckForReadbackSupport(SkColorType texture_format);
// Helper functions for checking the supported texture formats.
// Avoid using this API in between texture operations, as this does some
// teture opertions (bind, attach) internally.
bool SupportsFormat(GLint format, GLint type);
- FormatSupport format_support_table_[SkBitmap::kConfigCount];
+ FormatSupport format_support_table_[kLastEnum_SkColorType + 1];
gpu::gles2::GLES2Interface* gl_;
std::vector<struct FormatCacheEntry> format_cache_;

Powered by Google App Engine
This is Rietveld 408576698