OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Size of the decoded frame. | 111 // Size of the decoded frame. |
112 // TODO(sandersd): visible_rect. | 112 // TODO(sandersd): visible_rect. |
113 gfx::Size coded_size; | 113 gfx::Size coded_size; |
114 | 114 |
115 // VideoToolbox decoded image, if decoding was successful. | 115 // VideoToolbox decoded image, if decoding was successful. |
116 base::ScopedCFTypeRef<CVImageBufferRef> image; | 116 base::ScopedCFTypeRef<CVImageBufferRef> image; |
117 }; | 117 }; |
118 | 118 |
119 struct Task { | 119 struct Task { |
120 Task(TaskType type); | 120 Task(TaskType type); |
| 121 Task(const Task& other); |
121 ~Task(); | 122 ~Task(); |
122 | 123 |
123 TaskType type; | 124 TaskType type; |
124 linked_ptr<Frame> frame; | 125 linked_ptr<Frame> frame; |
125 }; | 126 }; |
126 | 127 |
127 struct PictureInfo { | 128 struct PictureInfo { |
128 PictureInfo(uint32_t client_texture_id, uint32_t service_texture_id); | 129 PictureInfo(uint32_t client_texture_id, uint32_t service_texture_id); |
129 ~PictureInfo(); | 130 ~PictureInfo(); |
130 | 131 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // Declared last to ensure that all weak pointers are invalidated before | 269 // Declared last to ensure that all weak pointers are invalidated before |
269 // other destructors run. | 270 // other destructors run. |
270 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; | 271 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; |
271 | 272 |
272 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); | 273 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); |
273 }; | 274 }; |
274 | 275 |
275 } // namespace content | 276 } // namespace content |
276 | 277 |
277 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 278 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |