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

Side by Side Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.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
« no previous file with comments | « no previous file | content/common/gpu/client/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 17 matching lines...) Expand all
28 // |this| is guaranteed not to outlive |channel| and |impl|. (See comments 28 // |this| is guaranteed not to outlive |channel| and |impl|. (See comments
29 // for |channel_| and |impl_|.) 29 // for |channel_| and |impl_|.)
30 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel, 30 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel,
31 CommandBufferProxyImpl* impl); 31 CommandBufferProxyImpl* impl);
32 32
33 // IPC::Listener implementation. 33 // IPC::Listener implementation.
34 void OnChannelError() override; 34 void OnChannelError() override;
35 bool OnMessageReceived(const IPC::Message& message) override; 35 bool OnMessageReceived(const IPC::Message& message) override;
36 36
37 // media::VideoDecodeAccelerator implementation. 37 // media::VideoDecodeAccelerator implementation.
38 bool Initialize(media::VideoCodecProfile profile, Client* client) override; 38 bool Initialize(const Config& config, Client* client) override;
39 void SetCdm(int cdm_id) override; 39 void SetCdm(int cdm_id) override;
40 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 40 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
41 void AssignPictureBuffers( 41 void AssignPictureBuffers(
42 const std::vector<media::PictureBuffer>& buffers) override; 42 const std::vector<media::PictureBuffer>& buffers) override;
43 void ReusePictureBuffer(int32 picture_buffer_id) override; 43 void ReusePictureBuffer(int32 picture_buffer_id) override;
44 void Flush() override; 44 void Flush() override;
45 void Reset() override; 45 void Reset() override;
46 void Destroy() override; 46 void Destroy() override;
47 47
48 // CommandBufferProxyImpl::DeletionObserver implemetnation. 48 // CommandBufferProxyImpl::DeletionObserver implemetnation.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // WeakPtr factory for posting tasks back to itself. 95 // WeakPtr factory for posting tasks back to itself.
96 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 96 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 98 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
99 }; 99 };
100 100
101 } // namespace content 101 } // namespace content
102 102
103 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 103 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698