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

Side by Side Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.h

Issue 1816203003: Add an additional VDA::Flush() mode to return all allocated buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 void OnChannelError() override; 37 void OnChannelError() override;
38 bool OnMessageReceived(const IPC::Message& message) override; 38 bool OnMessageReceived(const IPC::Message& message) override;
39 39
40 // media::VideoDecodeAccelerator implementation. 40 // media::VideoDecodeAccelerator implementation.
41 bool Initialize(const Config& config, Client* client) override; 41 bool Initialize(const Config& config, Client* client) override;
42 void SetCdm(int cdm_id) override; 42 void SetCdm(int cdm_id) override;
43 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 43 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
44 void AssignPictureBuffers( 44 void AssignPictureBuffers(
45 const std::vector<media::PictureBuffer>& buffers) override; 45 const std::vector<media::PictureBuffer>& buffers) override;
46 void ReusePictureBuffer(int32_t picture_buffer_id) override; 46 void ReusePictureBuffer(int32_t picture_buffer_id) override;
47 void Flush() override; 47 void Flush(bool return_buffers) override;
48 void Reset() override; 48 void Reset() override;
49 void Destroy() override; 49 void Destroy() override;
50 50
51 // CommandBufferProxyImpl::DeletionObserver implemetnation. 51 // CommandBufferProxyImpl::DeletionObserver implemetnation.
52 void OnWillDeleteImpl() override; 52 void OnWillDeleteImpl() override;
53 53
54 private: 54 private:
55 // Only Destroy() should be deleting |this|. 55 // Only Destroy() should be deleting |this|.
56 ~GpuVideoDecodeAcceleratorHost() override; 56 ~GpuVideoDecodeAcceleratorHost() override;
57 57
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // WeakPtr factory for posting tasks back to itself. 99 // WeakPtr factory for posting tasks back to itself.
100 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 100 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 102 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
103 }; 103 };
104 104
105 } // namespace content 105 } // namespace content
106 106
107 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 107 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698