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

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

Issue 2849043002: Send AndroidOverlay routing token from WMPI to AVDA. (Closed)
Patch Set: rebased Created 3 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 30 matching lines...) Expand all
41 void OnChannelError() override; 41 void OnChannelError() override;
42 bool OnMessageReceived(const IPC::Message& message) override; 42 bool OnMessageReceived(const IPC::Message& message) override;
43 43
44 // VideoDecodeAccelerator implementation. 44 // VideoDecodeAccelerator implementation.
45 bool Initialize(const Config& config, Client* client) override; 45 bool Initialize(const Config& config, Client* client) override;
46 void Decode(const BitstreamBuffer& bitstream_buffer) override; 46 void Decode(const BitstreamBuffer& bitstream_buffer) override;
47 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; 47 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override;
48 void ReusePictureBuffer(int32_t picture_buffer_id) override; 48 void ReusePictureBuffer(int32_t picture_buffer_id) override;
49 void Flush() override; 49 void Flush() override;
50 void Reset() override; 50 void Reset() override;
51 void SetSurface(int32_t surface_id) override; 51 void SetSurface(int32_t surface_id,
52 const base::Optional<base::UnguessableToken>& token) override;
52 void Destroy() override; 53 void Destroy() override;
53 54
54 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. 55 // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation.
55 void OnWillDeleteImpl() override; 56 void OnWillDeleteImpl() override;
56 57
57 private: 58 private:
58 // Only Destroy() should be deleting |this|. 59 // Only Destroy() should be deleting |this|.
59 ~GpuVideoDecodeAcceleratorHost() override; 60 ~GpuVideoDecodeAcceleratorHost() override;
60 61
61 // Notify |client_| of an error. Posts a task to avoid re-entrancy. 62 // Notify |client_| of an error. Posts a task to avoid re-entrancy.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // WeakPtr for posting tasks to ourself. 107 // WeakPtr for posting tasks to ourself.
107 base::WeakPtr<GpuVideoDecodeAcceleratorHost> weak_this_; 108 base::WeakPtr<GpuVideoDecodeAcceleratorHost> weak_this_;
108 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 109 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
109 110
110 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 111 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
111 }; 112 };
112 113
113 } // namespace media 114 } // namespace media
114 115
115 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 116 #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