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

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

Issue 179793011: Revert 255420 "Revert 255386 "Support ARGB_8888 by default in GL..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
« 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: trunk/src/content/common/gpu/client/gl_helper_readback_support.cc
===================================================================
--- trunk/src/content/common/gpu/client/gl_helper_readback_support.cc (revision 255445)
+++ trunk/src/content/common/gpu/client/gl_helper_readback_support.cc (working copy)
@@ -37,7 +37,8 @@
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