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

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

Issue 184103037: Support ARGB_8888 by default in GLHelperReadbackSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gl_helper_readback_support.cc
diff --git a/content/common/gpu/client/gl_helper_readback_support.cc b/content/common/gpu/client/gl_helper_readback_support.cc
index 28bae135670a8e9886e44cbcf2454a607714b261..476f88520d4ad0b2908c1223b991c0e466f53998 100644
--- a/content/common/gpu/client/gl_helper_readback_support.cc
+++ b/content/common/gpu/client/gl_helper_readback_support.cc
@@ -37,7 +37,8 @@ void GLHelperReadbackSupport::CheckForReadbackSupport(
supports_format = SupportsFormat(GL_RGB, GL_UNSIGNED_SHORT_5_6_5);
break;
case SkBitmap::kARGB_8888_Config:
- supports_format = SupportsFormat(GL_RGBA, GL_UNSIGNED_BYTE);
+ // This is the baseline, assume always true.
+ supports_format = true;
break;
case SkBitmap::kARGB_4444_Config:
supports_format = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698