| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; | 89 void SignalQuery(uint32_t query_id, const base::Closure& callback) override; |
| 90 void SetLock(base::Lock*) override; | 90 void SetLock(base::Lock*) override; |
| 91 bool IsGpuChannelLost() 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; |
| 100 void SignalSyncToken(const gpu::SyncToken& sync_token, | 99 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| 101 const base::Closure& callback) override; | 100 const base::Closure& callback) override; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // This weak factory will be invalidated in the client thread, so all weak | 171 // This weak factory will be invalidated in the client thread, so all weak |
| 173 // pointers have to be dereferenced in the client thread too. | 172 // pointers have to be dereferenced in the client thread too. |
| 174 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 173 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
| 175 | 174 |
| 176 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 175 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
| 177 }; | 176 }; |
| 178 | 177 |
| 179 } // namespace mus | 178 } // namespace mus |
| 180 | 179 |
| 181 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 180 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
| OLD | NEW |