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

Side by Side Diff: content/common/gpu/media/v4l2_slice_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: address patch set 13 review comments 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <linux/videodev2.h> 8 #include <linux/videodev2.h>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 V4L2SliceVideoDecodeAccelerator( 35 V4L2SliceVideoDecodeAccelerator(
36 const scoped_refptr<V4L2Device>& device, 36 const scoped_refptr<V4L2Device>& device,
37 EGLDisplay egl_display, 37 EGLDisplay egl_display,
38 EGLContext egl_context, 38 EGLContext egl_context,
39 const base::WeakPtr<Client>& io_client_, 39 const base::WeakPtr<Client>& io_client_,
40 const base::Callback<bool(void)>& make_context_current, 40 const base::Callback<bool(void)>& make_context_current,
41 const scoped_refptr<base::MessageLoopProxy>& io_message_loop_proxy); 41 const scoped_refptr<base::MessageLoopProxy>& io_message_loop_proxy);
42 ~V4L2SliceVideoDecodeAccelerator() override; 42 ~V4L2SliceVideoDecodeAccelerator() override;
43 43
44 // media::VideoDecodeAccelerator implementation. 44 // media::VideoDecodeAccelerator implementation.
45 static std::vector<media::VideoDecodeAccelerator::SupportedProfile>
46 GetSupportedProfiles();
wuchengli 2015/03/18 08:02:37 This function is not in media::VideoDecodeAccelera
henryhsu 2015/03/18 11:06:09 Done.
45 bool Initialize(media::VideoCodecProfile profile, 47 bool Initialize(media::VideoCodecProfile profile,
46 VideoDecodeAccelerator::Client* client) override; 48 VideoDecodeAccelerator::Client* client) override;
47 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 49 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
48 void AssignPictureBuffers( 50 void AssignPictureBuffers(
49 const std::vector<media::PictureBuffer>& buffers) override; 51 const std::vector<media::PictureBuffer>& buffers) override;
50 void ReusePictureBuffer(int32 picture_buffer_id) override; 52 void ReusePictureBuffer(int32 picture_buffer_id) override;
51 void Flush() override; 53 void Flush() override;
52 void Reset() override; 54 void Reset() override;
53 void Destroy() override; 55 void Destroy() override;
54 bool CanDecodeOnIOThread() override; 56 bool CanDecodeOnIOThread() override;
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 387
386 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); 388 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator);
387 }; 389 };
388 390
389 class V4L2H264Picture; 391 class V4L2H264Picture;
390 class V4L2VP8Picture; 392 class V4L2VP8Picture;
391 393
392 } // namespace content 394 } // namespace content
393 395
394 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_ 396 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_SLICE_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698