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

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

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments 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 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::SingleThreadTaskRunner>& io_task_runner); 41 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
42 ~V4L2SliceVideoDecodeAccelerator() override; 42 ~V4L2SliceVideoDecodeAccelerator() override;
43 43
44 // media::VideoDecodeAccelerator implementation. 44 // media::VideoDecodeAccelerator implementation.
45 bool Initialize(media::VideoCodecProfile profile, 45 bool Initialize(const Config& config, Client* client) override;
46 VideoDecodeAccelerator::Client* client) override;
47 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 46 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
48 void AssignPictureBuffers( 47 void AssignPictureBuffers(
49 const std::vector<media::PictureBuffer>& buffers) override; 48 const std::vector<media::PictureBuffer>& buffers) override;
50 void ReusePictureBuffer(int32 picture_buffer_id) override; 49 void ReusePictureBuffer(int32 picture_buffer_id) override;
51 void Flush() override; 50 void Flush() override;
52 void Reset() override; 51 void Reset() override;
53 void Destroy() override; 52 void Destroy() override;
54 bool CanDecodeOnIOThread() override; 53 bool CanDecodeOnIOThread() override;
55 54
56 static media::VideoDecodeAccelerator::SupportedProfiles 55 static media::VideoDecodeAccelerator::SupportedProfiles
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 387
389 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator); 388 DISALLOW_COPY_AND_ASSIGN(V4L2SliceVideoDecodeAccelerator);
390 }; 389 };
391 390
392 class V4L2H264Picture; 391 class V4L2H264Picture;
393 class V4L2VP8Picture; 392 class V4L2VP8Picture;
394 393
395 } // namespace content 394 } // namespace content
396 395
397 #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