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

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

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase Created 3 years, 4 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/image_factory.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 77b7e7fef5c9dcedcbbbec17deaff73376f212e5..45187e69b8b8cee1a1ccbb8e4d050478fc568f45 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -165,6 +165,8 @@ class GPU_EXPORT Texture final : public TextureBase {
return usage_;
}
+ GLint buffer_usage() const { return buffer_usage_; }
+
GLenum compare_func() const {
return sampler_state_.compare_func;
}
@@ -612,6 +614,7 @@ class GPU_EXPORT Texture final : public TextureBase {
GLenum swizzle_g_;
GLenum swizzle_b_;
GLenum swizzle_a_;
+ GLint buffer_usage_ = GL_NONE;
// The maximum level that has been set.
GLint max_level_set_;
« no previous file with comments | « gpu/command_buffer/service/image_factory.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698