| 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 COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 6 #define COMPONENTS_MUS_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 gpu::Capabilities GetCapabilities() override; | 76 gpu::Capabilities GetCapabilities() override; |
| 77 int32_t CreateImage(ClientBuffer buffer, | 77 int32_t CreateImage(ClientBuffer buffer, |
| 78 size_t width, | 78 size_t width, |
| 79 size_t height, | 79 size_t height, |
| 80 unsigned internalformat) override; | 80 unsigned internalformat) override; |
| 81 void DestroyImage(int32_t id) override; | 81 void DestroyImage(int32_t id) override; |
| 82 int32_t CreateGpuMemoryBufferImage(size_t width, | 82 int32_t CreateGpuMemoryBufferImage(size_t width, |
| 83 size_t height, | 83 size_t height, |
| 84 unsigned internal_format, | 84 unsigned internal_format, |
| 85 unsigned usage) override; | 85 unsigned usage) override; |
| 86 uint32_t InsertSyncPoint() override; | |
| 87 uint32_t InsertFutureSyncPoint() override; | |
| 88 void RetireSyncPoint(uint32_t sync_point) override; | |
| 89 void SignalSyncPoint(uint32_t sync_point, | |
| 90 const base::Closure& callback) override; | |
| 91 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; | 86 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; |
| 92 void SetLock(base::Lock*) override; | 87 void SetLock(base::Lock*) override; |
| 93 bool IsGpuChannelLost() override; | 88 bool IsGpuChannelLost() override; |
| 94 void EnsureWorkVisible() override; | 89 void EnsureWorkVisible() override; |
| 95 gpu::CommandBufferNamespace GetNamespaceID() const override; | 90 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 96 uint64_t GetCommandBufferID() const override; | 91 uint64_t GetCommandBufferID() const override; |
| 97 int32_t GetExtraCommandBufferData() const override; | 92 int32_t GetExtraCommandBufferData() const override; |
| 98 uint64_t GenerateFenceSyncRelease() override; | 93 uint64_t GenerateFenceSyncRelease() override; |
| 99 bool IsFenceSyncRelease(uint64_t release) override; | 94 bool IsFenceSyncRelease(uint64_t release) override; |
| 100 bool IsFenceSyncFlushed(uint64_t release) override; | 95 bool IsFenceSyncFlushed(uint64_t release) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // This weak factory will be invalidated in the client thread, so all weak | 159 // This weak factory will be invalidated in the client thread, so all weak |
| 165 // pointers have to be dereferenced in the client thread too. | 160 // pointers have to be dereferenced in the client thread too. |
| 166 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 161 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
| 167 | 162 |
| 168 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 163 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
| 169 }; | 164 }; |
| 170 | 165 |
| 171 } // namespace mus | 166 } // namespace mus |
| 172 | 167 |
| 173 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 168 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| OLD | NEW |