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

Side by Side Diff: media/gpu/ipc/service/gpu_video_decode_accelerator.h

Issue 2849043002: Send AndroidOverlay routing token from WMPI to AVDA. (Closed)
Patch Set: merged HaveOverlayInfo and SendOverlayInfo 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_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ~GpuVideoDecodeAccelerator() override; 89 ~GpuVideoDecodeAccelerator() override;
90 90
91 // Handlers for IPC messages. 91 // Handlers for IPC messages.
92 void OnDecode(const BitstreamBuffer& bitstream_buffer); 92 void OnDecode(const BitstreamBuffer& bitstream_buffer);
93 void OnAssignPictureBuffers( 93 void OnAssignPictureBuffers(
94 const std::vector<int32_t>& buffer_ids, 94 const std::vector<int32_t>& buffer_ids,
95 const std::vector<PictureBuffer::TextureIds>& texture_ids); 95 const std::vector<PictureBuffer::TextureIds>& texture_ids);
96 void OnReusePictureBuffer(int32_t picture_buffer_id); 96 void OnReusePictureBuffer(int32_t picture_buffer_id);
97 void OnFlush(); 97 void OnFlush();
98 void OnReset(); 98 void OnReset();
99 void OnSetSurface(int32_t surface_id); 99 void OnSetSurface(
100 int32_t surface_id,
101 const base::Optional<base::UnguessableToken>& routing_token);
100 void OnDestroy(); 102 void OnDestroy();
101 103
102 // Called on IO thread when |filter_| has been removed. 104 // Called on IO thread when |filter_| has been removed.
103 void OnFilterRemoved(); 105 void OnFilterRemoved();
104 106
105 // Sets the texture to cleared. 107 // Sets the texture to cleared.
106 void SetTextureCleared(const Picture& picture); 108 void SetTextureCleared(const Picture& picture);
107 109
108 // Route ID to communicate with the host. 110 // Route ID to communicate with the host.
109 const int32_t host_route_id_; 111 const int32_t host_route_id_;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // cleared. 165 // cleared.
164 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> 166 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>>
165 uncleared_textures_; 167 uncleared_textures_;
166 168
167 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 169 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
168 }; 170 };
169 171
170 } // namespace media 172 } // namespace media
171 173
172 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 174 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698