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

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

Issue 188633002: Query the preferred readback config in CopyFromBackingStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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.h
diff --git a/content/common/gpu/client/gl_helper.h b/content/common/gpu/client/gl_helper.h
index 560446c9b85131f5409faabf26632bf9fbc04d3a..ee74b5d98166e729deb70ee54367f5876b55d24a 100644
--- a/content/common/gpu/client/gl_helper.h
+++ b/content/common/gpu/client/gl_helper.h
@@ -330,6 +330,9 @@ class CONTENT_EXPORT GLHelper {
// matching config. This doesnt check for cross format readbacks.
bool IsReadbackConfigSupported(SkBitmap::Config texture_format);
+ // Returns the preffered readback-config based on the platform criteria.
+ SkBitmap::Config PreferredReadbackFormat();
+
protected:
class CopyTextureToImpl;

Powered by Google App Engine
This is Rietveld 408576698