| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 mag_filter_(GL_LINEAR), | 37 mag_filter_(GL_LINEAR), |
| 38 wrap_s_(GL_REPEAT), | 38 wrap_s_(GL_REPEAT), |
| 39 wrap_t_(GL_REPEAT), | 39 wrap_t_(GL_REPEAT), |
| 40 max_level_set_(-1), | 40 max_level_set_(-1), |
| 41 texture_complete_(false), | 41 texture_complete_(false), |
| 42 cube_complete_(false), | 42 cube_complete_(false), |
| 43 npot_(false), | 43 npot_(false), |
| 44 owned_(true) { | 44 owned_(true) { |
| 45 } | 45 } |
| 46 | 46 |
| 47 GLenum min_filter() const { |
| 48 return min_filter_; |
| 49 } |
| 50 |
| 51 GLenum mag_filter() const { |
| 52 return mag_filter_; |
| 53 } |
| 54 |
| 55 GLenum wrap_s() const { |
| 56 return wrap_s_; |
| 57 } |
| 58 |
| 59 GLenum wrap_t() const { |
| 60 return wrap_t_; |
| 61 } |
| 62 |
| 47 // True if this texture meets all the GLES2 criteria for rendering. | 63 // True if this texture meets all the GLES2 criteria for rendering. |
| 48 // See section 3.8.2 of the GLES2 spec. | 64 // See section 3.8.2 of the GLES2 spec. |
| 49 bool CanRender(const FeatureInfo* feature_info) const; | 65 bool CanRender(const FeatureInfo* feature_info) const; |
| 50 | 66 |
| 51 // The service side OpenGL id of the texture. | 67 // The service side OpenGL id of the texture. |
| 52 GLuint service_id() const { | 68 GLuint service_id() const { |
| 53 return service_id_; | 69 return service_id_; |
| 54 } | 70 } |
| 55 | 71 |
| 56 // Returns the target this texure was first bound to or 0 if it has not | 72 // Returns the target this texure was first bound to or 0 if it has not |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 TextureInfo::Ref default_texture_2d_; | 357 TextureInfo::Ref default_texture_2d_; |
| 342 TextureInfo::Ref default_texture_cube_map_; | 358 TextureInfo::Ref default_texture_cube_map_; |
| 343 | 359 |
| 344 DISALLOW_COPY_AND_ASSIGN(TextureManager); | 360 DISALLOW_COPY_AND_ASSIGN(TextureManager); |
| 345 }; | 361 }; |
| 346 | 362 |
| 347 } // namespace gles2 | 363 } // namespace gles2 |
| 348 } // namespace gpu | 364 } // namespace gpu |
| 349 | 365 |
| 350 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 366 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
| OLD | NEW |