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

Side by Side Diff: media/gpu/ipc/client/gpu_video_decode_accelerator_host.h

Issue 1963903002: Remove VideoDecodeAccelerator::SetCdm() and pass the cdm in Initialize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add cdm_id to paramtraits Created 4 years, 7 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 (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 MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 // |this| is guaranteed not to outlive |impl|. (See comments for |impl_|.) 34 // |this| is guaranteed not to outlive |impl|. (See comments for |impl_|.)
35 explicit GpuVideoDecodeAcceleratorHost(gpu::CommandBufferProxyImpl* impl); 35 explicit GpuVideoDecodeAcceleratorHost(gpu::CommandBufferProxyImpl* impl);
36 36
37 // IPC::Listener implementation. 37 // IPC::Listener implementation.
38 void OnChannelError() override; 38 void OnChannelError() override;
39 bool OnMessageReceived(const IPC::Message& message) override; 39 bool OnMessageReceived(const IPC::Message& message) override;
40 40
41 // VideoDecodeAccelerator implementation. 41 // VideoDecodeAccelerator implementation.
42 bool Initialize(const Config& config, Client* client) override; 42 bool Initialize(const Config& config, Client* client) override;
43 void SetCdm(int cdm_id) override;
44 void Decode(const BitstreamBuffer& bitstream_buffer) override; 43 void Decode(const BitstreamBuffer& bitstream_buffer) override;
45 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; 44 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override;
46 void ReusePictureBuffer(int32_t picture_buffer_id) override; 45 void ReusePictureBuffer(int32_t picture_buffer_id) override;
47 void Flush() override; 46 void Flush() override;
48 void Reset() override; 47 void Reset() override;
49 void Destroy() override; 48 void Destroy() override;
50 49
51 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. 50 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation.
52 void OnWillDeleteImpl() override; 51 void OnWillDeleteImpl() override;
53 52
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 95
97 // WeakPtr factory for posting tasks back to itself. 96 // WeakPtr factory for posting tasks back to itself.
98 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 97 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
99 98
100 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 99 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
101 }; 100 };
102 101
103 } // namespace media 102 } // namespace media
104 103
105 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 104 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW
« no previous file with comments | « media/gpu/android_video_decode_accelerator.cc ('k') | media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698