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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 GLenum type; | 293 GLenum type; |
294 scoped_refptr<gl::GLImage> image; | 294 scoped_refptr<gl::GLImage> image; |
295 scoped_refptr<GLStreamTextureImage> stream_texture_image; | 295 scoped_refptr<GLStreamTextureImage> stream_texture_image; |
296 ImageState image_state; | 296 ImageState image_state; |
297 uint32_t estimated_size; | 297 uint32_t estimated_size; |
298 bool internal_workaround; | 298 bool internal_workaround; |
299 }; | 299 }; |
300 | 300 |
301 struct FaceInfo { | 301 struct FaceInfo { |
302 FaceInfo(); | 302 FaceInfo(); |
| 303 FaceInfo(const FaceInfo& other); |
303 ~FaceInfo(); | 304 ~FaceInfo(); |
304 | 305 |
305 // This is relative to base_level and max_level of a texture. | 306 // This is relative to base_level and max_level of a texture. |
306 GLsizei num_mip_levels; | 307 GLsizei num_mip_levels; |
307 // This contains slots for all levels starting at 0. | 308 // This contains slots for all levels starting at 0. |
308 std::vector<LevelInfo> level_infos; | 309 std::vector<LevelInfo> level_infos; |
309 }; | 310 }; |
310 | 311 |
311 // Helper for SetLevel*Image. |stream_texture_image| may be null. | 312 // Helper for SetLevel*Image. |stream_texture_image| may be null. |
312 void SetLevelImageInternal(GLenum target, | 313 void SetLevelImageInternal(GLenum target, |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 private: | 1099 private: |
1099 DecoderTextureState* texture_state_; | 1100 DecoderTextureState* texture_state_; |
1100 base::TimeTicks begin_time_; | 1101 base::TimeTicks begin_time_; |
1101 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); | 1102 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); |
1102 }; | 1103 }; |
1103 | 1104 |
1104 } // namespace gles2 | 1105 } // namespace gles2 |
1105 } // namespace gpu | 1106 } // namespace gpu |
1106 | 1107 |
1107 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 1108 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
OLD | NEW |