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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 1541353002: Add offset support to BitstreamBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase over crrev.com/1645873002 Created 4 years, 10 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 CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void SetTextureCleared(const media::Picture& picture); 106 void SetTextureCleared(const media::Picture& picture);
107 107
108 // Helper for replying to the creation request. 108 // Helper for replying to the creation request.
109 void SendCreateDecoderReply(IPC::Message* message, bool succeeded); 109 void SendCreateDecoderReply(IPC::Message* message, bool succeeded);
110 110
111 // Helper to bind |image| to the texture specified by |client_texture_id|. 111 // Helper to bind |image| to the texture specified by |client_texture_id|.
112 void BindImage(uint32_t client_texture_id, 112 void BindImage(uint32_t client_texture_id,
113 uint32_t texture_target, 113 uint32_t texture_target,
114 scoped_refptr<gl::GLImage> image); 114 scoped_refptr<gl::GLImage> image);
115 115
116 // Helper function to call NotifyError in the |child_task_runner_| thread.
117 void CallOrPostNotifyError(media::VideoDecodeAccelerator::Error error);
118
116 // Route ID to communicate with the host. 119 // Route ID to communicate with the host.
117 const int32_t host_route_id_; 120 const int32_t host_route_id_;
118 121
119 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is 122 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is
120 // registered as a DestuctionObserver of |stub_| and will self-delete when 123 // registered as a DestuctionObserver of |stub_| and will self-delete when
121 // |stub_| is destroyed. 124 // |stub_| is destroyed.
122 GpuCommandBufferStub* const stub_; 125 GpuCommandBufferStub* const stub_;
123 126
124 // The underlying VideoDecodeAccelerator. 127 // The underlying VideoDecodeAccelerator.
125 scoped_ptr<media::VideoDecodeAccelerator> video_decode_accelerator_; 128 scoped_ptr<media::VideoDecodeAccelerator> video_decode_accelerator_;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 160
158 // A map from picture buffer ID to TextureRef that have not been cleared. 161 // A map from picture buffer ID to TextureRef that have not been cleared.
159 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_; 162 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_;
160 163
161 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 164 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
162 }; 165 };
163 166
164 } // namespace content 167 } // namespace content
165 168
166 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 169 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698