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

Side by Side Diff: content/common/gpu/media/vt_video_decode_accelerator_mac.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_VT_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 23 matching lines...) Expand all
34 // interface for Mac OS X (currently limited to 10.9+). 34 // interface for Mac OS X (currently limited to 10.9+).
35 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator { 35 class VTVideoDecodeAccelerator : public media::VideoDecodeAccelerator {
36 public: 36 public:
37 explicit VTVideoDecodeAccelerator( 37 explicit VTVideoDecodeAccelerator(
38 const base::Callback<bool(void)>& make_context_current, 38 const base::Callback<bool(void)>& make_context_current,
39 const base::Callback<void(uint32, uint32, scoped_refptr<gl::GLImage>)>& 39 const base::Callback<void(uint32, uint32, scoped_refptr<gl::GLImage>)>&
40 bind_image); 40 bind_image);
41 ~VTVideoDecodeAccelerator() override; 41 ~VTVideoDecodeAccelerator() override;
42 42
43 // VideoDecodeAccelerator implementation. 43 // VideoDecodeAccelerator implementation.
44 bool Initialize(media::VideoCodecProfile profile, Client* client) override; 44 bool Initialize(const Config& config, Client* client) override;
45 void Decode(const media::BitstreamBuffer& bitstream) override; 45 void Decode(const media::BitstreamBuffer& bitstream) override;
46 void AssignPictureBuffers( 46 void AssignPictureBuffers(
47 const std::vector<media::PictureBuffer>& pictures) override; 47 const std::vector<media::PictureBuffer>& pictures) override;
48 void ReusePictureBuffer(int32_t picture_id) override; 48 void ReusePictureBuffer(int32_t picture_id) override;
49 void Flush() override; 49 void Flush() override;
50 void Reset() override; 50 void Reset() override;
51 void Destroy() override; 51 void Destroy() override;
52 bool CanDecodeOnIOThread() override; 52 bool CanDecodeOnIOThread() override;
53 53
54 // Called by OutputThunk() when VideoToolbox finishes decoding a frame. 54 // Called by OutputThunk() when VideoToolbox finishes decoding a frame.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // Declared last to ensure that all weak pointers are invalidated before 261 // Declared last to ensure that all weak pointers are invalidated before
262 // other destructors run. 262 // other destructors run.
263 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; 263 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_;
264 264
265 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); 265 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator);
266 }; 266 };
267 267
268 } // namespace content 268 } // namespace content
269 269
270 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ 270 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698