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