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

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

Issue 2424833003: gpu: check GL_RGB565 work in ES3 context (Closed)
Patch Set: Created 4 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
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 0ad77686904d7d959e50cde34355312caa9e9a84..cb679997a0bd3568720c288261da7e8b4b967051 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -1407,6 +1407,8 @@ void FeatureInfo::InitializeFeatures() {
}
bool FeatureInfo::IsES3Capable() const {
+ if (testing_es3_apis_enabled_)
+ return true;
if (!enable_unsafe_es3_apis_switch_)
return false;
if (workarounds_.disable_texture_storage)
@@ -1416,6 +1418,11 @@ bool FeatureInfo::IsES3Capable() const {
return false;
}
+void FeatureInfo::EnableES3ValidatorsForTesting() {
+ testing_es3_apis_enabled_ = true;
+ EnableES3Validators();
+}
+
void FeatureInfo::EnableES3Validators() {
DCHECK(IsES3Capable());
validators_.UpdateValuesES3();
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/framebuffer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698