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

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

Issue 2461073002: Use MediaCodec.setOutputSurface() for fullscreen transitions on M. (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 ~GpuVideoDecodeAccelerator() override; 87 ~GpuVideoDecodeAccelerator() override;
88 88
89 // Handlers for IPC messages. 89 // Handlers for IPC messages.
90 void OnDecode(const BitstreamBuffer& bitstream_buffer); 90 void OnDecode(const BitstreamBuffer& bitstream_buffer);
91 void OnAssignPictureBuffers( 91 void OnAssignPictureBuffers(
92 const std::vector<int32_t>& buffer_ids, 92 const std::vector<int32_t>& buffer_ids,
93 const std::vector<PictureBuffer::TextureIds>& texture_ids); 93 const std::vector<PictureBuffer::TextureIds>& texture_ids);
94 void OnReusePictureBuffer(int32_t picture_buffer_id); 94 void OnReusePictureBuffer(int32_t picture_buffer_id);
95 void OnFlush(); 95 void OnFlush();
96 void OnReset(); 96 void OnReset();
97 void OnSetSurface(int32_t surface_id);
97 void OnDestroy(); 98 void OnDestroy();
98 99
99 // Called on IO thread when |filter_| has been removed. 100 // Called on IO thread when |filter_| has been removed.
100 void OnFilterRemoved(); 101 void OnFilterRemoved();
101 102
102 // Sets the texture to cleared. 103 // Sets the texture to cleared.
103 void SetTextureCleared(const Picture& picture); 104 void SetTextureCleared(const Picture& picture);
104 105
105 // Route ID to communicate with the host. 106 // Route ID to communicate with the host.
106 const int32_t host_route_id_; 107 const int32_t host_route_id_;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // cleared. 161 // cleared.
161 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> 162 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>>
162 uncleared_textures_; 163 uncleared_textures_;
163 164
164 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 165 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
165 }; 166 };
166 167
167 } // namespace media 168 } // namespace media
168 169
169 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 170 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/ipc/common/media_param_traits_macros.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