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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 2076213002: Decompress ETC texture data when there is no native support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check MapBuffer result. Created 4 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
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 413e11d39f10a84c9707f07f8cdd999aa20933dc..4be125a15360c7648dfd31bc4914d0e426c76519 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -137,7 +137,8 @@ FeatureInfo::FeatureFlags::FeatureFlags()
ext_multisample_compatibility(false),
ext_blend_func_extended(false),
ext_read_format_bgra(false),
- desktop_srgb_support(false) {}
+ desktop_srgb_support(false),
+ arb_es3_compatibility(false) {}
FeatureInfo::FeatureInfo() {
InitializeBasicState(base::CommandLine::InitializedForCurrentProcess()
@@ -644,6 +645,12 @@ void FeatureInfo::InitializeFeatures() {
validators_.read_pixel_format.AddValue(GL_BGRA_EXT);
}
+ // GL_ARB_ES3_compatibility adds support for some ES3 texture formats that are
+ // not supported in desktop GL
+ feature_flags_.arb_es3_compatibility =
+ extensions.Contains("GL_ARB_ES3_compatibility") &&
+ !gl_version_info_->is_es;
+
// glGetInteger64v for timestamps is implemented on the client side in a way
// that it does not depend on a driver-level implementation of
// glGetInteger64v. The GPUTimer class which implements timer queries can also
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698