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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 GLenum format; | 278 GLenum format; |
279 GLenum type; | 279 GLenum type; |
280 scoped_refptr<gl::GLImage> image; | 280 scoped_refptr<gl::GLImage> image; |
281 ImageState image_state; | 281 ImageState image_state; |
282 uint32_t estimated_size; | 282 uint32_t estimated_size; |
283 bool internal_workaround; | 283 bool internal_workaround; |
284 }; | 284 }; |
285 | 285 |
286 struct FaceInfo { | 286 struct FaceInfo { |
287 FaceInfo(); | 287 FaceInfo(); |
| 288 FaceInfo(const FaceInfo& other); |
288 ~FaceInfo(); | 289 ~FaceInfo(); |
289 | 290 |
290 // This is relative to base_level and max_level of a texture. | 291 // This is relative to base_level and max_level of a texture. |
291 GLsizei num_mip_levels; | 292 GLsizei num_mip_levels; |
292 // This contains slots for all levels starting at 0. | 293 // This contains slots for all levels starting at 0. |
293 std::vector<LevelInfo> level_infos; | 294 std::vector<LevelInfo> level_infos; |
294 }; | 295 }; |
295 | 296 |
296 // Set the info for a particular level. | 297 // Set the info for a particular level. |
297 void SetLevelInfo(GLenum target, | 298 void SetLevelInfo(GLenum target, |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 private: | 1066 private: |
1066 DecoderTextureState* texture_state_; | 1067 DecoderTextureState* texture_state_; |
1067 base::TimeTicks begin_time_; | 1068 base::TimeTicks begin_time_; |
1068 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); | 1069 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); |
1069 }; | 1070 }; |
1070 | 1071 |
1071 } // namespace gles2 | 1072 } // namespace gles2 |
1072 } // namespace gpu | 1073 } // namespace gpu |
1073 | 1074 |
1074 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 1075 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
OLD | NEW |