| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ | 5 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ |
| 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ | 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 8 #include <map> | 11 #include <map> |
| 9 #include <vector> | 12 #include <vector> |
| 10 | 13 |
| 11 #include "base/macros.h" | 14 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 13 #include "components/mus/public/interfaces/command_buffer.mojom.h" | 16 #include "components/mus/public/interfaces/command_buffer.mojom.h" |
| 14 #include "gpu/command_buffer/client/gpu_control.h" | 17 #include "gpu/command_buffer/client/gpu_control.h" |
| 15 #include "gpu/command_buffer/common/command_buffer.h" | 18 #include "gpu/command_buffer/common/command_buffer.h" |
| 16 #include "gpu/command_buffer/common/command_buffer_shared.h" | 19 #include "gpu/command_buffer/common/command_buffer_shared.h" |
| 17 #include "mojo/public/cpp/bindings/binding.h" | 20 #include "mojo/public/cpp/bindings/binding.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 gpu::Capabilities GetCapabilities() override; | 61 gpu::Capabilities GetCapabilities() override; |
| 59 int32_t CreateImage(ClientBuffer buffer, | 62 int32_t CreateImage(ClientBuffer buffer, |
| 60 size_t width, | 63 size_t width, |
| 61 size_t height, | 64 size_t height, |
| 62 unsigned internalformat) override; | 65 unsigned internalformat) override; |
| 63 void DestroyImage(int32_t id) override; | 66 void DestroyImage(int32_t id) override; |
| 64 int32_t CreateGpuMemoryBufferImage(size_t width, | 67 int32_t CreateGpuMemoryBufferImage(size_t width, |
| 65 size_t height, | 68 size_t height, |
| 66 unsigned internalformat, | 69 unsigned internalformat, |
| 67 unsigned usage) override; | 70 unsigned usage) override; |
| 68 uint32 InsertSyncPoint() override; | 71 uint32_t InsertSyncPoint() override; |
| 69 uint32 InsertFutureSyncPoint() override; | 72 uint32_t InsertFutureSyncPoint() override; |
| 70 void RetireSyncPoint(uint32 sync_point) override; | 73 void RetireSyncPoint(uint32_t sync_point) override; |
| 71 void SignalSyncPoint(uint32 sync_point, | 74 void SignalSyncPoint(uint32_t sync_point, |
| 72 const base::Closure& callback) override; | 75 const base::Closure& callback) override; |
| 73 void SignalQuery(uint32 query, const base::Closure& callback) override; | 76 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
| 74 void SetLock(base::Lock*) override; | 77 void SetLock(base::Lock*) override; |
| 75 bool IsGpuChannelLost() override; | 78 bool IsGpuChannelLost() override; |
| 76 gpu::CommandBufferNamespace GetNamespaceID() const override; | 79 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 77 uint64_t GetCommandBufferID() const override; | 80 uint64_t GetCommandBufferID() const override; |
| 78 int32_t GetExtraCommandBufferData() const override; | 81 int32_t GetExtraCommandBufferData() const override; |
| 79 uint64_t GenerateFenceSyncRelease() override; | 82 uint64_t GenerateFenceSyncRelease() override; |
| 80 bool IsFenceSyncRelease(uint64_t release) override; | 83 bool IsFenceSyncRelease(uint64_t release) override; |
| 81 bool IsFenceSyncFlushed(uint64_t release) override; | 84 bool IsFenceSyncFlushed(uint64_t release) override; |
| 82 bool IsFenceSyncFlushReceived(uint64_t release) override; | 85 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| 83 void SignalSyncToken(const gpu::SyncToken& sync_token, | 86 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 111 | 114 |
| 112 uint64_t next_fence_sync_release_; | 115 uint64_t next_fence_sync_release_; |
| 113 uint64_t flushed_fence_sync_release_; | 116 uint64_t flushed_fence_sync_release_; |
| 114 | 117 |
| 115 const MojoAsyncWaiter* async_waiter_; | 118 const MojoAsyncWaiter* async_waiter_; |
| 116 }; | 119 }; |
| 117 | 120 |
| 118 } // gles2 | 121 } // gles2 |
| 119 | 122 |
| 120 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ | 123 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ |
| OLD | NEW |