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

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

Issue 2479513002: Reland of Extend CopyTextureCHROMIUM to more ES 3.0 texture formats. (Closed)
Patch Set: rebase and minor fix for premultiply and un-premultiply alpha Created 4 years, 1 month 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 d72dfc17aa9ba97c72260672e9a3c9ecdcd7fdd2..8c6a96ed22a63d65d668dfb46645abb1fe2eebc4 100644
--- a/gpu/command_buffer/service/feature_info.h
+++ b/gpu/command_buffer/service/feature_info.h
@@ -169,6 +169,12 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
return oes_texture_float_linear_available_;
}
+ bool texture_format_bgra8888_available() const {
+ return texture_format_bgra8888_available_;
+ }
+
+ bool ext_srgb_available() const { return ext_srgb_available_; }
+
private:
friend class base::RefCounted<FeatureInfo>;
friend class BufferManagerClientSideArraysTest;
@@ -197,6 +203,8 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
bool ext_color_buffer_float_available_;
bool oes_texture_float_linear_available_;
bool oes_texture_half_float_linear_available_;
+ bool texture_format_bgra8888_available_;
Zhenyao Mo 2016/11/19 00:42:32 This is the wrong place for these two flags. The
qiankun 2016/11/21 16:01:50 Yes. Thanks for pointing this. Follow your suggest
+ bool ext_srgb_available_;
bool disable_shader_translator_;
std::unique_ptr<gl::GLVersionInfo> gl_version_info_;

Powered by Google App Engine
This is Rietveld 408576698