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

Side by Side Diff: content/common/gpu/media/vaapi_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: Deleted erroneously added files 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file contains an implementation of VideoDecoderAccelerator 5 // This file contains an implementation of VideoDecoderAccelerator
6 // that utilizes hardware video decoder present on Intel CPUs. 6 // that utilizes hardware video decoder present on Intel CPUs.
7 7
8 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 8 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
9 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 9 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 public: 50 public:
51 class VaapiDecodeSurface; 51 class VaapiDecodeSurface;
52 52
53 VaapiVideoDecodeAccelerator( 53 VaapiVideoDecodeAccelerator(
54 const base::Callback<bool(void)>& make_context_current, 54 const base::Callback<bool(void)>& make_context_current,
55 const base::Callback<void(uint32, uint32, scoped_refptr<gl::GLImage>)>& 55 const base::Callback<void(uint32, uint32, scoped_refptr<gl::GLImage>)>&
56 bind_image); 56 bind_image);
57 ~VaapiVideoDecodeAccelerator() override; 57 ~VaapiVideoDecodeAccelerator() override;
58 58
59 // media::VideoDecodeAccelerator implementation. 59 // media::VideoDecodeAccelerator implementation.
60 bool Initialize(media::VideoCodecProfile profile, Client* client) override; 60 bool Initialize(const media::VideoDecodeAccelerator::InitParams& params,
61 Client* client) override;
61 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 62 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
62 void AssignPictureBuffers( 63 void AssignPictureBuffers(
63 const std::vector<media::PictureBuffer>& buffers) override; 64 const std::vector<media::PictureBuffer>& buffers) override;
64 void ReusePictureBuffer(int32 picture_buffer_id) override; 65 void ReusePictureBuffer(int32 picture_buffer_id) override;
65 void Flush() override; 66 void Flush() override;
66 void Reset() override; 67 void Reset() override;
67 void Destroy() override; 68 void Destroy() override;
68 bool CanDecodeOnIOThread() override; 69 bool CanDecodeOnIOThread() override;
69 70
70 static media::VideoDecodeAccelerator::SupportedProfiles 71 static media::VideoDecodeAccelerator::SupportedProfiles
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 308
308 // The WeakPtrFactory for |weak_this_|. 309 // The WeakPtrFactory for |weak_this_|.
309 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_; 310 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_;
310 311
311 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); 312 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator);
312 }; 313 };
313 314
314 } // namespace content 315 } // namespace content
315 316
316 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ 317 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698