OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_H_ | 5 #ifndef SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_H_ |
6 #define SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_H_ | 6 #define SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 gpu::Capabilities GetCapabilities() override; | 79 gpu::Capabilities GetCapabilities() override; |
80 int32_t CreateImage(ClientBuffer buffer, | 80 int32_t CreateImage(ClientBuffer buffer, |
81 size_t width, | 81 size_t width, |
82 size_t height, | 82 size_t height, |
83 unsigned internalformat) override; | 83 unsigned internalformat) override; |
84 void DestroyImage(int32_t id) override; | 84 void DestroyImage(int32_t id) override; |
85 int32_t CreateGpuMemoryBufferImage(size_t width, | 85 int32_t CreateGpuMemoryBufferImage(size_t width, |
86 size_t height, | 86 size_t height, |
87 unsigned internal_format, | 87 unsigned internal_format, |
88 unsigned usage) override; | 88 unsigned usage) override; |
89 int32_t GetImageGpuMemoryBufferId(unsigned image_id) override; | |
90 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; | 89 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; |
91 void SetLock(base::Lock*) override; | 90 void SetLock(base::Lock*) override; |
92 void EnsureWorkVisible() override; | 91 void EnsureWorkVisible() override; |
93 gpu::CommandBufferNamespace GetNamespaceID() const override; | 92 gpu::CommandBufferNamespace GetNamespaceID() const override; |
94 gpu::CommandBufferId GetCommandBufferID() const override; | 93 gpu::CommandBufferId GetCommandBufferID() const override; |
95 int32_t GetExtraCommandBufferData() const override; | 94 int32_t GetExtraCommandBufferData() const override; |
96 uint64_t GenerateFenceSyncRelease() override; | 95 uint64_t GenerateFenceSyncRelease() override; |
97 bool IsFenceSyncRelease(uint64_t release) override; | 96 bool IsFenceSyncRelease(uint64_t release) override; |
98 bool IsFenceSyncFlushed(uint64_t release) override; | 97 bool IsFenceSyncFlushed(uint64_t release) override; |
99 bool IsFenceSyncFlushReceived(uint64_t release) override; | 98 bool IsFenceSyncFlushReceived(uint64_t release) override; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // This weak factory will be invalidated in the client thread, so all weak | 175 // This weak factory will be invalidated in the client thread, so all weak |
177 // pointers have to be dereferenced in the client thread too. | 176 // pointers have to be dereferenced in the client thread too. |
178 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 177 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
179 | 178 |
180 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 179 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
181 }; | 180 }; |
182 | 181 |
183 } // namespace mus | 182 } // namespace mus |
184 | 183 |
185 #endif // SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_H_ | 184 #endif // SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_H_ |
OLD | NEW |