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

Side by Side Diff: content/common/gpu/media/android_video_decode_accelerator.h

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // happens when we're starting up or re-configuring mid-stream. Any 82 // happens when we're starting up or re-configuring mid-stream. Any
83 // previously provided codec should no longer be referenced. 83 // previously provided codec should no longer be referenced.
84 // For convenience, a container of PictureBuffers is provided in case 84 // For convenience, a container of PictureBuffers is provided in case
85 // per-image cleanup is needed. 85 // per-image cleanup is needed.
86 virtual void CodecChanged(media::VideoCodecBridge* codec, 86 virtual void CodecChanged(media::VideoCodecBridge* codec,
87 const OutputBufferMap& buffer_map) = 0; 87 const OutputBufferMap& buffer_map) = 0;
88 }; 88 };
89 89
90 AndroidVideoDecodeAccelerator( 90 AndroidVideoDecodeAccelerator(
91 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder, 91 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder,
92 const base::Callback<bool(void)>& make_context_current, 92 const base::Callback<bool(void)>& make_context_current);
93 scoped_ptr<BackingStrategy> strategy);
94 93
95 ~AndroidVideoDecodeAccelerator() override; 94 ~AndroidVideoDecodeAccelerator() override;
96 95
97 // media::VideoDecodeAccelerator implementation: 96 // media::VideoDecodeAccelerator implementation:
98 bool Initialize(media::VideoCodecProfile profile, Client* client) override; 97 bool Initialize(media::VideoCodecProfile profile, Client* client) override;
99 void SetCdm(int cdm_id) override; 98 void SetCdm(int cdm_id) override;
100 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 99 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
101 void AssignPictureBuffers( 100 void AssignPictureBuffers(
102 const std::vector<media::PictureBuffer>& buffers) override; 101 const std::vector<media::PictureBuffer>& buffers) override;
103 void ReusePictureBuffer(int32 picture_buffer_id) override; 102 void ReusePictureBuffer(int32 picture_buffer_id) override;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 234
236 // WeakPtrFactory for posting tasks back to |this|. 235 // WeakPtrFactory for posting tasks back to |this|.
237 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 236 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
238 237
239 friend class AndroidVideoDecodeAcceleratorTest; 238 friend class AndroidVideoDecodeAcceleratorTest;
240 }; 239 };
241 240
242 } // namespace content 241 } // namespace content
243 242
244 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 243 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698