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

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: add GetSupportedProfile to all platforms Created 5 years, 9 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
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 29 matching lines...) Expand all
40 bool Initialize(media::VideoCodecProfile profile, Client* client) override; 40 bool Initialize(media::VideoCodecProfile profile, Client* client) override;
41 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 41 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
42 void AssignPictureBuffers( 42 void AssignPictureBuffers(
43 const std::vector<media::PictureBuffer>& buffers) override; 43 const std::vector<media::PictureBuffer>& buffers) override;
44 void ReusePictureBuffer(int32 picture_buffer_id) override; 44 void ReusePictureBuffer(int32 picture_buffer_id) override;
45 void Flush() override; 45 void Flush() override;
46 void Reset() override; 46 void Reset() override;
47 void Destroy() override; 47 void Destroy() override;
48 bool CanDecodeOnIOThread() override; 48 bool CanDecodeOnIOThread() override;
49 49
50 static std::vector<media::VideoDecodeAccelerator::SupportedProfile>
51 GetSupportedProfiles();
52
50 private: 53 private:
51 enum State { 54 enum State {
52 NO_ERROR, 55 NO_ERROR,
53 ERROR, 56 ERROR,
54 }; 57 };
55 58
56 static const base::TimeDelta kDecodePollDelay; 59 static const base::TimeDelta kDecodePollDelay;
57 60
58 ~AndroidVideoDecodeAccelerator() override; 61 ~AndroidVideoDecodeAccelerator() override;
59 62
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 165
163 // WeakPtrFactory for posting tasks back to |this|. 166 // WeakPtrFactory for posting tasks back to |this|.
164 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 167 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
165 168
166 friend class AndroidVideoDecodeAcceleratorTest; 169 friend class AndroidVideoDecodeAcceleratorTest;
167 }; 170 };
168 171
169 } // namespace content 172 } // namespace content
170 173
171 #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