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

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

Issue 2881553002: Add |texture_target_| and |pixel_format_| to media::PictureBuffer (Closed)
Patch Set: addressed review comments 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 private: 85 private:
86 class MessageFilter; 86 class MessageFilter;
87 87
88 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. 88 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there.
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 const std::vector<uint32_t>& texture_targets,
97 const std::vector<VideoPixelFormat>& formats,
98 const std::vector<gfx::Size>& sizes);
96 void OnReusePictureBuffer(int32_t picture_buffer_id); 99 void OnReusePictureBuffer(int32_t picture_buffer_id);
97 void OnFlush(); 100 void OnFlush();
98 void OnReset(); 101 void OnReset();
99 void OnSetSurface(int32_t surface_id); 102 void OnSetSurface(int32_t surface_id);
100 void OnDestroy(); 103 void OnDestroy();
101 104
102 // Called on IO thread when |filter_| has been removed. 105 // Called on IO thread when |filter_| has been removed.
103 void OnFilterRemoved(); 106 void OnFilterRemoved();
104 107
105 // Sets the texture to cleared. 108 // Sets the texture to cleared.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // cleared. 166 // cleared.
164 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> 167 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>>
165 uncleared_textures_; 168 uncleared_textures_;
166 169
167 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 170 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
168 }; 171 };
169 172
170 } // namespace media 173 } // namespace media
171 174
172 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 175 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698