Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: content/renderer/media/gpu/rtc_video_decoder.h

Issue 2881553002: Add |texture_target_| and |pixel_format_| to media::PictureBuffer (Closed)
Patch Set: removed IPC changes Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/media/gpu/rtc_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_MEDIA_GPU_RTC_VIDEO_DECODER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_DECODER_H_
6 #define CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_DECODER_H_ 6 #define CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 uint32_t vda_error_counter_; 223 uint32_t vda_error_counter_;
224 224
225 // The video codec type, as reported by WebRTC. 225 // The video codec type, as reported by WebRTC.
226 const webrtc::VideoCodecType video_codec_type_; 226 const webrtc::VideoCodecType video_codec_type_;
227 227
228 // The size of the incoming video frames. 228 // The size of the incoming video frames.
229 gfx::Size frame_size_; 229 gfx::Size frame_size_;
230 230
231 media::GpuVideoAcceleratorFactories* const factories_; 231 media::GpuVideoAcceleratorFactories* const factories_;
232 232
233 // The texture target used for decoded pictures.
234 uint32_t decoder_texture_target_;
235
236 // The format of the decoded pictures.
237 media::VideoPixelFormat pixel_format_;
238
239 // Metadata of the buffers that have been sent for decode. 233 // Metadata of the buffers that have been sent for decode.
240 std::list<BufferData> input_buffer_data_; 234 std::list<BufferData> input_buffer_data_;
241 235
242 // A map from bitstream buffer IDs to bitstream buffers that are being 236 // A map from bitstream buffer IDs to bitstream buffers that are being
243 // processed by VDA. 237 // processed by VDA.
244 std::map<int32_t, std::unique_ptr<base::SharedMemory>> 238 std::map<int32_t, std::unique_ptr<base::SharedMemory>>
245 bitstream_buffers_in_decoder_; 239 bitstream_buffers_in_decoder_;
246 240
247 // A map from picture buffer IDs to texture-backed picture buffers. 241 // A map from picture buffer IDs to texture-backed picture buffers.
248 std::map<int32_t, media::PictureBuffer> assigned_picture_buffers_; 242 std::map<int32_t, media::PictureBuffer> assigned_picture_buffers_;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // Must be destroyed, or invalidated, on the media thread. 295 // Must be destroyed, or invalidated, on the media thread.
302 // NOTE: Weak pointers must be invalidated before all other member variables. 296 // NOTE: Weak pointers must be invalidated before all other member variables.
303 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; 297 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_;
304 298
305 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); 299 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder);
306 }; 300 };
307 301
308 } // namespace content 302 } // namespace content
309 303
310 #endif // CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_DECODER_H_ 304 #endif // CONTENT_RENDERER_MEDIA_GPU_RTC_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/gpu/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698