OLD | NEW |
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_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 gpu::Capabilities GetCapabilities() override; | 109 gpu::Capabilities GetCapabilities() override; |
110 int32_t CreateImage(ClientBuffer buffer, | 110 int32_t CreateImage(ClientBuffer buffer, |
111 size_t width, | 111 size_t width, |
112 size_t height, | 112 size_t height, |
113 unsigned internal_format) override; | 113 unsigned internal_format) override; |
114 void DestroyImage(int32_t id) override; | 114 void DestroyImage(int32_t id) override; |
115 int32_t CreateGpuMemoryBufferImage(size_t width, | 115 int32_t CreateGpuMemoryBufferImage(size_t width, |
116 size_t height, | 116 size_t height, |
117 unsigned internal_format, | 117 unsigned internal_format, |
118 unsigned usage) override; | 118 unsigned usage) override; |
119 uint32_t InsertSyncPoint() override; | |
120 uint32_t InsertFutureSyncPoint() override; | |
121 void RetireSyncPoint(uint32_t sync_point) override; | |
122 void SignalSyncPoint(uint32_t sync_point, | |
123 const base::Closure& callback) override; | |
124 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 119 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
125 void SetLock(base::Lock* lock) override; | 120 void SetLock(base::Lock* lock) override; |
126 bool IsGpuChannelLost() override; | 121 bool IsGpuChannelLost() override; |
127 void EnsureWorkVisible() override; | 122 void EnsureWorkVisible() override; |
128 gpu::CommandBufferNamespace GetNamespaceID() const override; | 123 gpu::CommandBufferNamespace GetNamespaceID() const override; |
129 uint64_t GetCommandBufferID() const override; | 124 uint64_t GetCommandBufferID() const override; |
130 int32_t GetExtraCommandBufferData() const override; | 125 int32_t GetExtraCommandBufferData() const override; |
131 uint64_t GenerateFenceSyncRelease() override; | 126 uint64_t GenerateFenceSyncRelease() override; |
132 bool IsFenceSyncRelease(uint64_t release) override; | 127 bool IsFenceSyncRelease(uint64_t release) override; |
133 bool IsFenceSyncFlushed(uint64_t release) override; | 128 bool IsFenceSyncFlushed(uint64_t release) override; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 265 |
271 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 266 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
272 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 267 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
273 | 268 |
274 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 269 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
275 }; | 270 }; |
276 | 271 |
277 } // namespace content | 272 } // namespace content |
278 | 273 |
279 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 274 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |