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> |
| 9 #include <stdint.h> |
| 10 |
8 #include <map> | 11 #include <map> |
9 | 12 |
10 #include "base/macros.h" | 13 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
12 #include "components/mus/gles2/gpu_state.h" | 15 #include "components/mus/gles2/gpu_state.h" |
13 #include "gpu/command_buffer/client/gpu_control.h" | 16 #include "gpu/command_buffer/client/gpu_control.h" |
14 #include "gpu/command_buffer/common/command_buffer.h" | 17 #include "gpu/command_buffer/common/command_buffer.h" |
15 #include "ui/gfx/geometry/size.h" | 18 #include "ui/gfx/geometry/size.h" |
16 #include "ui/gfx/gpu_memory_buffer.h" | 19 #include "ui/gfx/gpu_memory_buffer.h" |
17 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 gpu::Capabilities GetCapabilities() override; | 59 gpu::Capabilities GetCapabilities() override; |
57 int32_t CreateImage(ClientBuffer buffer, | 60 int32_t CreateImage(ClientBuffer buffer, |
58 size_t width, | 61 size_t width, |
59 size_t height, | 62 size_t height, |
60 unsigned internalformat) override; | 63 unsigned internalformat) override; |
61 void DestroyImage(int32_t id) override; | 64 void DestroyImage(int32_t id) override; |
62 int32_t CreateGpuMemoryBufferImage(size_t width, | 65 int32_t CreateGpuMemoryBufferImage(size_t width, |
63 size_t height, | 66 size_t height, |
64 unsigned internalformat, | 67 unsigned internalformat, |
65 unsigned usage) override; | 68 unsigned usage) override; |
66 uint32 InsertSyncPoint() override; | 69 uint32_t InsertSyncPoint() override; |
67 uint32 InsertFutureSyncPoint() override; | 70 uint32_t InsertFutureSyncPoint() override; |
68 void RetireSyncPoint(uint32 sync_point) override; | 71 void RetireSyncPoint(uint32_t sync_point) override; |
69 void SignalSyncPoint(uint32 sync_point, | 72 void SignalSyncPoint(uint32_t sync_point, |
70 const base::Closure& callback) override; | 73 const base::Closure& callback) override; |
71 void SignalQuery(uint32 query, const base::Closure& callback) override; | 74 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
72 void SetLock(base::Lock*) override; | 75 void SetLock(base::Lock*) override; |
73 bool IsGpuChannelLost() override; | 76 bool IsGpuChannelLost() override; |
74 gpu::CommandBufferNamespace GetNamespaceID() const override; | 77 gpu::CommandBufferNamespace GetNamespaceID() const override; |
75 uint64_t GetCommandBufferID() const override; | 78 uint64_t GetCommandBufferID() const override; |
76 int32_t GetExtraCommandBufferData() const override; | 79 int32_t GetExtraCommandBufferData() const override; |
77 uint64_t GenerateFenceSyncRelease() override; | 80 uint64_t GenerateFenceSyncRelease() override; |
78 bool IsFenceSyncRelease(uint64_t release) override; | 81 bool IsFenceSyncRelease(uint64_t release) override; |
79 bool IsFenceSyncFlushed(uint64_t release) override; | 82 bool IsFenceSyncFlushed(uint64_t release) override; |
80 bool IsFenceSyncFlushReceived(uint64_t release) override; | 83 bool IsFenceSyncFlushReceived(uint64_t release) override; |
81 void SignalSyncToken(const gpu::SyncToken& sync_token, | 84 void SignalSyncToken(const gpu::SyncToken& sync_token, |
(...skipping 28 matching lines...) Expand all Loading... |
110 uint64_t next_fence_sync_release_; | 113 uint64_t next_fence_sync_release_; |
111 | 114 |
112 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 115 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
113 | 116 |
114 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 117 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
115 }; | 118 }; |
116 | 119 |
117 } // namespace mus | 120 } // namespace mus |
118 | 121 |
119 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 122 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
OLD | NEW |