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

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

Issue 27973002: cc: Adding ETC1 support to UIResourceBitmap and ResourceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: latest comments Created 7 years, 2 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 | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index b620692936712dbec1e3256aad45c404c5fec91d..3a685bf3aa062bbe390cb93ffa692f9f0f65eecc 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -277,6 +277,10 @@ bool ContextProviderCommandBuffer::InitializeCapabilities() {
caps.texture_format_bgra8888 =
extension_set.count("GL_EXT_texture_format_BGRA8888") > 0;
+
+ caps.texture_format_etc1 =
+ extension_set.count("GL_OES_compressed_ETC1_RGB8_texture") > 0;
+
caps.texture_rectangle = extension_set.count("GL_ARB_texture_rectangle") > 0;
caps.post_sub_buffer = extension_set.count("GL_CHROMIUM_post_sub_buffer") > 0;
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698