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

Side by Side Diff: gpu/command_buffer/service/texture_manager.h

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: add test Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 GLenum wrap_t() const { 154 GLenum wrap_t() const {
155 return sampler_state_.wrap_t; 155 return sampler_state_.wrap_t;
156 } 156 }
157 157
158 GLenum usage() const { 158 GLenum usage() const {
159 return usage_; 159 return usage_;
160 } 160 }
161 161
162 GLint buffer_usage() const { return buffer_usage_; }
163
162 GLenum compare_func() const { 164 GLenum compare_func() const {
163 return sampler_state_.compare_func; 165 return sampler_state_.compare_func;
164 } 166 }
165 167
166 GLenum compare_mode() const { 168 GLenum compare_mode() const {
167 return sampler_state_.compare_mode; 169 return sampler_state_.compare_mode;
168 } 170 }
169 171
170 GLfloat max_lod() const { 172 GLfloat max_lod() const {
171 return sampler_state_.max_lod; 173 return sampler_state_.max_lod;
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 601
600 // Texture parameters. 602 // Texture parameters.
601 SamplerState sampler_state_; 603 SamplerState sampler_state_;
602 GLenum usage_; 604 GLenum usage_;
603 GLint base_level_; 605 GLint base_level_;
604 GLint max_level_; 606 GLint max_level_;
605 GLenum swizzle_r_; 607 GLenum swizzle_r_;
606 GLenum swizzle_g_; 608 GLenum swizzle_g_;
607 GLenum swizzle_b_; 609 GLenum swizzle_b_;
608 GLenum swizzle_a_; 610 GLenum swizzle_a_;
611 GLint buffer_usage_ = GL_NONE;
609 612
610 // The maximum level that has been set. 613 // The maximum level that has been set.
611 GLint max_level_set_; 614 GLint max_level_set_;
612 615
613 // Whether or not this texture is "texture complete" 616 // Whether or not this texture is "texture complete"
614 bool texture_complete_; 617 bool texture_complete_;
615 618
616 // Whether or not this texture is "cube complete" 619 // Whether or not this texture is "cube complete"
617 bool cube_complete_; 620 bool cube_complete_;
618 621
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 1249
1247 ServiceDiscardableManager* discardable_manager_; 1250 ServiceDiscardableManager* discardable_manager_;
1248 1251
1249 DISALLOW_COPY_AND_ASSIGN(TextureManager); 1252 DISALLOW_COPY_AND_ASSIGN(TextureManager);
1250 }; 1253 };
1251 1254
1252 } // namespace gles2 1255 } // namespace gles2
1253 } // namespace gpu 1256 } // namespace gpu
1254 1257
1255 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 1258 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698