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

Side by Side 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 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 159
160 GLenum wrap_t() const { 160 GLenum wrap_t() const {
161 return sampler_state_.wrap_t; 161 return sampler_state_.wrap_t;
162 } 162 }
163 163
164 GLenum usage() const { 164 GLenum usage() const {
165 return usage_; 165 return usage_;
166 } 166 }
167 167
168 GLint buffer_usage() const { return buffer_usage_; }
169
168 GLenum compare_func() const { 170 GLenum compare_func() const {
169 return sampler_state_.compare_func; 171 return sampler_state_.compare_func;
170 } 172 }
171 173
172 GLenum compare_mode() const { 174 GLenum compare_mode() const {
173 return sampler_state_.compare_mode; 175 return sampler_state_.compare_mode;
174 } 176 }
175 177
176 GLfloat max_lod() const { 178 GLfloat max_lod() const {
177 return sampler_state_.max_lod; 179 return sampler_state_.max_lod;
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 607
606 // Texture parameters. 608 // Texture parameters.
607 SamplerState sampler_state_; 609 SamplerState sampler_state_;
608 GLenum usage_; 610 GLenum usage_;
609 GLint base_level_; 611 GLint base_level_;
610 GLint max_level_; 612 GLint max_level_;
611 GLenum swizzle_r_; 613 GLenum swizzle_r_;
612 GLenum swizzle_g_; 614 GLenum swizzle_g_;
613 GLenum swizzle_b_; 615 GLenum swizzle_b_;
614 GLenum swizzle_a_; 616 GLenum swizzle_a_;
617 GLint buffer_usage_ = GL_NONE;
615 618
616 // The maximum level that has been set. 619 // The maximum level that has been set.
617 GLint max_level_set_; 620 GLint max_level_set_;
618 621
619 // Whether or not this texture is "texture complete" 622 // Whether or not this texture is "texture complete"
620 bool texture_complete_; 623 bool texture_complete_;
621 624
622 // Whether or not this texture is "cube complete" 625 // Whether or not this texture is "cube complete"
623 bool cube_complete_; 626 bool cube_complete_;
624 627
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1255
1253 ServiceDiscardableManager* discardable_manager_; 1256 ServiceDiscardableManager* discardable_manager_;
1254 1257
1255 DISALLOW_COPY_AND_ASSIGN(TextureManager); 1258 DISALLOW_COPY_AND_ASSIGN(TextureManager);
1256 }; 1259 };
1257 1260
1258 } // namespace gles2 1261 } // namespace gles2
1259 } // namespace gpu 1262 } // namespace gpu
1260 1263
1261 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 1264 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW
« 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