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

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: 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_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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ~GpuVideoDecodeAccelerator() override; 91 ~GpuVideoDecodeAccelerator() override;
92 92
93 // Handlers for IPC messages. 93 // Handlers for IPC messages.
94 void OnDecode(const BitstreamBuffer& bitstream_buffer); 94 void OnDecode(const BitstreamBuffer& bitstream_buffer);
95 void OnAssignPictureBuffers( 95 void OnAssignPictureBuffers(
96 const std::vector<int32_t>& buffer_ids, 96 const std::vector<int32_t>& buffer_ids,
97 const std::vector<PictureBuffer::TextureIds>& texture_ids); 97 const std::vector<PictureBuffer::TextureIds>& texture_ids);
98 void OnReusePictureBuffer(int32_t picture_buffer_id); 98 void OnReusePictureBuffer(int32_t picture_buffer_id);
99 void OnFlush(); 99 void OnFlush();
100 void OnReset(); 100 void OnReset();
101 void OnSetSurface(int32_t surface_id); 101 void OnSetSurface(
102 int32_t surface_id,
103 const base::Optional<base::UnguessableToken>& routing_token);
102 void OnDestroy(); 104 void OnDestroy();
103 105
104 // Called on IO thread when |filter_| has been removed. 106 // Called on IO thread when |filter_| has been removed.
105 void OnFilterRemoved(); 107 void OnFilterRemoved();
106 108
107 // Sets the texture to cleared. 109 // Sets the texture to cleared.
108 void SetTextureCleared(const Picture& picture); 110 void SetTextureCleared(const Picture& picture);
109 111
110 // Route ID to communicate with the host. 112 // Route ID to communicate with the host.
111 const int32_t host_route_id_; 113 const int32_t host_route_id_;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // cleared. 170 // cleared.
169 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> 171 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>>
170 uncleared_textures_; 172 uncleared_textures_;
171 173
172 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 174 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
173 }; 175 };
174 176
175 } // namespace media 177 } // namespace media
176 178
177 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 179 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/ipc/common/media_messages.h ('k') | media/gpu/ipc/service/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698