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

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

Issue 10441087: Plum through ANGLE_depth_texture (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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.h
diff --git a/gpu/command_buffer/service/feature_info.h b/gpu/command_buffer/service/feature_info.h
index b626441302b325cd476204a2a0970a75b4eb2bee..9856f77aa47c2979f0ffdeab0a96208b268d5ddf 100644
--- a/gpu/command_buffer/service/feature_info.h
+++ b/gpu/command_buffer/service/feature_info.h
@@ -77,6 +77,10 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
return &validators_;
}
+ const ValueValidator<GLenum>& GetTextureFormatValidator(GLenum format) {
+ return texture_format_validators_[format];
+ }
+
const std::string& extensions() const {
return extensions_;
}
@@ -87,12 +91,17 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
private:
friend class base::RefCounted<FeatureInfo>;
+
+ typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap;
+ ValidatorMap texture_format_validators_;
+
~FeatureInfo();
void AddExtensionString(const std::string& str);
Validators validators_;
+
DisallowedFeatures disallowed_features_;
// The extensions string returned by glGetString(GL_EXTENSIONS);

Powered by Google App Engine
This is Rietveld 408576698