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

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: dispatch GetSupportedResolution to each vda 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 30 matching lines...) Expand all
41 Client* client) override; 41 Client* client) override;
42 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 42 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
43 virtual void AssignPictureBuffers( 43 virtual void AssignPictureBuffers(
44 const std::vector<media::PictureBuffer>& buffers) override; 44 const std::vector<media::PictureBuffer>& buffers) override;
45 virtual void ReusePictureBuffer(int32 picture_buffer_id) override; 45 virtual void ReusePictureBuffer(int32 picture_buffer_id) override;
46 virtual void Flush() override; 46 virtual void Flush() override;
47 virtual void Reset() override; 47 virtual void Reset() override;
48 virtual void Destroy() override; 48 virtual void Destroy() override;
49 virtual bool CanDecodeOnIOThread() override; 49 virtual bool CanDecodeOnIOThread() override;
50 50
51 // Get the minimum and maximum supported decode resolution.
52 static media::VideoDecodeAccelerator::SupportedResolution
53 GetSupportedResolution();
54
51 private: 55 private:
52 enum State { 56 enum State {
53 NO_ERROR, 57 NO_ERROR,
54 ERROR, 58 ERROR,
55 }; 59 };
56 60
57 static const base::TimeDelta kDecodePollDelay; 61 static const base::TimeDelta kDecodePollDelay;
58 62
59 virtual ~AndroidVideoDecodeAccelerator(); 63 virtual ~AndroidVideoDecodeAccelerator();
60 64
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 167
164 // WeakPtrFactory for posting tasks back to |this|. 168 // WeakPtrFactory for posting tasks back to |this|.
165 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 169 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
166 170
167 friend class AndroidVideoDecodeAcceleratorTest; 171 friend class AndroidVideoDecodeAcceleratorTest;
168 }; 172 };
169 173
170 } // namespace content 174 } // namespace content
171 175
172 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 176 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698