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

Side by Side Diff: gpu/ipc/client/command_buffer_proxy_impl.h

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 5 #ifndef GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // CommandBufferProxyImpl implementation. 169 // CommandBufferProxyImpl implementation.
170 gpu::error::Error GetLastError() override; 170 gpu::error::Error GetLastError() override;
171 171
172 int32_t route_id() const { return route_id_; } 172 int32_t route_id() const { return route_id_; }
173 173
174 const scoped_refptr<GpuChannelHost>& channel() const { return channel_; } 174 const scoped_refptr<GpuChannelHost>& channel() const { return channel_; }
175 175
176 base::SharedMemoryHandle GetSharedStateHandle() const { 176 base::SharedMemoryHandle GetSharedStateHandle() const {
177 return shared_state_shm_->handle(); 177 return shared_state_shm_->handle();
178 } 178 }
179 uint32_t CreateStreamTexture(uint32_t texture_id); 179 uint32_t CreateStreamTexture(int32_t image_id);
180 180
181 private: 181 private:
182 typedef std::map<int32_t, scoped_refptr<gpu::Buffer>> TransferBufferMap; 182 typedef std::map<int32_t, scoped_refptr<gpu::Buffer>> TransferBufferMap;
183 typedef base::hash_map<uint32_t, base::Closure> SignalTaskMap; 183 typedef base::hash_map<uint32_t, base::Closure> SignalTaskMap;
184 184
185 CommandBufferProxyImpl(int channel_id, int32_t route_id, int32_t stream_id); 185 CommandBufferProxyImpl(int channel_id, int32_t route_id, int32_t stream_id);
186 bool Initialize(scoped_refptr<GpuChannelHost> channel, 186 bool Initialize(scoped_refptr<GpuChannelHost> channel,
187 const GPUCreateCommandBufferConfig& config, 187 const GPUCreateCommandBufferConfig& config,
188 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 188 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
189 189
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 base::WeakPtr<CommandBufferProxyImpl> weak_this_; 302 base::WeakPtr<CommandBufferProxyImpl> weak_this_;
303 scoped_refptr<base::SequencedTaskRunner> callback_thread_; 303 scoped_refptr<base::SequencedTaskRunner> callback_thread_;
304 304
305 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 305 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
306 }; 306 };
307 307
308 } // namespace gpu 308 } // namespace gpu
309 309
310 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 310 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/stream_texture_factory.cc ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698