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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: edit description Created 6 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 19 matching lines...) Expand all
30 // class. http://developer.android.com/reference/android/media/MediaCodec.html 30 // class. http://developer.android.com/reference/android/media/MediaCodec.html
31 class CONTENT_EXPORT AndroidVideoDecodeAccelerator 31 class CONTENT_EXPORT AndroidVideoDecodeAccelerator
32 : public media::VideoDecodeAccelerator { 32 : public media::VideoDecodeAccelerator {
33 public: 33 public:
34 // Does not take ownership of |client| which must outlive |*this|. 34 // Does not take ownership of |client| which must outlive |*this|.
35 AndroidVideoDecodeAccelerator( 35 AndroidVideoDecodeAccelerator(
36 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder, 36 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder,
37 const base::Callback<bool(void)>& make_context_current); 37 const base::Callback<bool(void)>& make_context_current);
38 38
39 // media::VideoDecodeAccelerator implementation. 39 // media::VideoDecodeAccelerator implementation.
40 static std::vector<media::VideoDecodeAccelerator::SupportedProfile>
41 GetSupportedProfiles();
40 virtual bool Initialize(media::VideoCodecProfile profile, 42 virtual bool Initialize(media::VideoCodecProfile profile,
41 Client* client) override; 43 Client* client) override;
42 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 44 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
43 virtual void AssignPictureBuffers( 45 virtual void AssignPictureBuffers(
44 const std::vector<media::PictureBuffer>& buffers) override; 46 const std::vector<media::PictureBuffer>& buffers) override;
45 virtual void ReusePictureBuffer(int32 picture_buffer_id) override; 47 virtual void ReusePictureBuffer(int32 picture_buffer_id) override;
46 virtual void Flush() override; 48 virtual void Flush() override;
47 virtual void Reset() override; 49 virtual void Reset() override;
48 virtual void Destroy() override; 50 virtual void Destroy() override;
49 virtual bool CanDecodeOnIOThread() override; 51 virtual bool CanDecodeOnIOThread() override;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 165
164 // WeakPtrFactory for posting tasks back to |this|. 166 // WeakPtrFactory for posting tasks back to |this|.
165 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 167 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
166 168
167 friend class AndroidVideoDecodeAcceleratorTest; 169 friend class AndroidVideoDecodeAcceleratorTest;
168 }; 170 };
169 171
170 } // namespace content 172 } // namespace content
171 173
172 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 174 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698