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

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

Issue 1974163003: Expose GpuMemoryBufferId through glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. 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
« no previous file with comments | « gpu/gles2_conform_support/egl/context.cc ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 gpu::Capabilities GetCapabilities() override; 116 gpu::Capabilities GetCapabilities() override;
117 int32_t CreateImage(ClientBuffer buffer, 117 int32_t CreateImage(ClientBuffer buffer,
118 size_t width, 118 size_t width,
119 size_t height, 119 size_t height,
120 unsigned internal_format) override; 120 unsigned internal_format) override;
121 void DestroyImage(int32_t id) override; 121 void DestroyImage(int32_t id) override;
122 int32_t CreateGpuMemoryBufferImage(size_t width, 122 int32_t CreateGpuMemoryBufferImage(size_t width,
123 size_t height, 123 size_t height,
124 unsigned internal_format, 124 unsigned internal_format,
125 unsigned usage) override; 125 unsigned usage) override;
126 int32_t GetImageGpuMemoryBufferId(unsigned image_id) override;
126 void SignalQuery(uint32_t query, const base::Closure& callback) override; 127 void SignalQuery(uint32_t query, const base::Closure& callback) override;
127 void SetLock(base::Lock* lock) override; 128 void SetLock(base::Lock* lock) override;
128 void EnsureWorkVisible() override; 129 void EnsureWorkVisible() override;
129 gpu::CommandBufferNamespace GetNamespaceID() const override; 130 gpu::CommandBufferNamespace GetNamespaceID() const override;
130 gpu::CommandBufferId GetCommandBufferID() const override; 131 gpu::CommandBufferId GetCommandBufferID() const override;
131 int32_t GetExtraCommandBufferData() const override; 132 int32_t GetExtraCommandBufferData() const override;
132 uint64_t GenerateFenceSyncRelease() override; 133 uint64_t GenerateFenceSyncRelease() override;
133 bool IsFenceSyncRelease(uint64_t release) override; 134 bool IsFenceSyncRelease(uint64_t release) override;
134 bool IsFenceSyncFlushed(uint64_t release) override; 135 bool IsFenceSyncFlushed(uint64_t release) override;
135 bool IsFenceSyncFlushReceived(uint64_t release) override; 136 bool IsFenceSyncFlushReceived(uint64_t release) override;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 uint32_t next_signal_id_; 289 uint32_t next_signal_id_;
289 SignalTaskMap signal_tasks_; 290 SignalTaskMap signal_tasks_;
290 291
291 gpu::Capabilities capabilities_; 292 gpu::Capabilities capabilities_;
292 293
293 std::vector<ui::LatencyInfo> latency_info_; 294 std::vector<ui::LatencyInfo> latency_info_;
294 295
295 SwapBuffersCompletionCallback swap_buffers_completion_callback_; 296 SwapBuffersCompletionCallback swap_buffers_completion_callback_;
296 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; 297 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_;
297 298
299 // A map from image id to GpuMemoryBuffer id.
300 std::map<int32_t, int32_t> image_gmb_ids_map_;
301
298 base::WeakPtr<CommandBufferProxyImpl> weak_this_; 302 base::WeakPtr<CommandBufferProxyImpl> weak_this_;
299 scoped_refptr<base::SequencedTaskRunner> callback_thread_; 303 scoped_refptr<base::SequencedTaskRunner> callback_thread_;
300 304
301 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 305 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
302 }; 306 };
303 307
304 } // namespace gpu 308 } // namespace gpu
305 309
306 #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 | « gpu/gles2_conform_support/egl/context.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