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 23 matching lines...) Expand all Loading... |
34 deleted_(false), | 34 deleted_(false), |
35 target_(0), | 35 target_(0), |
36 min_filter_(GL_NEAREST_MIPMAP_LINEAR), | 36 min_filter_(GL_NEAREST_MIPMAP_LINEAR), |
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 has_been_bound_(false), |
44 owned_(true) { | 45 owned_(true) { |
45 } | 46 } |
46 | 47 |
47 // True if this texture meets all the GLES2 criteria for rendering. | 48 // True if this texture meets all the GLES2 criteria for rendering. |
48 // See section 3.8.2 of the GLES2 spec. | 49 // See section 3.8.2 of the GLES2 spec. |
49 bool CanRender(const FeatureInfo* feature_info) const; | 50 bool CanRender(const FeatureInfo* feature_info) const; |
50 | 51 |
51 // The service side OpenGL id of the texture. | 52 // The service side OpenGL id of the texture. |
52 GLuint service_id() const { | 53 GLuint service_id() const { |
53 return service_id_; | 54 return service_id_; |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 TextureInfo::Ref default_texture_2d_; | 342 TextureInfo::Ref default_texture_2d_; |
342 TextureInfo::Ref default_texture_cube_map_; | 343 TextureInfo::Ref default_texture_cube_map_; |
343 | 344 |
344 DISALLOW_COPY_AND_ASSIGN(TextureManager); | 345 DISALLOW_COPY_AND_ASSIGN(TextureManager); |
345 }; | 346 }; |
346 | 347 |
347 } // namespace gles2 | 348 } // namespace gles2 |
348 } // namespace gpu | 349 } // namespace gpu |
349 | 350 |
350 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 351 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
OLD | NEW |