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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 uint32 InsertFutureSyncPoint() override; | 67 uint32 InsertFutureSyncPoint() override; |
68 void RetireSyncPoint(uint32 sync_point) override; | 68 void RetireSyncPoint(uint32 sync_point) override; |
69 void SignalSyncPoint(uint32 sync_point, | 69 void SignalSyncPoint(uint32 sync_point, |
70 const base::Closure& callback) override; | 70 const base::Closure& callback) override; |
71 void SignalQuery(uint32 query, const base::Closure& callback) override; | 71 void SignalQuery(uint32 query, const base::Closure& callback) override; |
72 void SetSurfaceVisible(bool visible) override; | 72 void SetSurfaceVisible(bool visible) override; |
73 void SetLock(base::Lock*) override; | 73 void SetLock(base::Lock*) override; |
74 bool IsGpuChannelLost() override; | 74 bool IsGpuChannelLost() override; |
75 gpu::CommandBufferNamespace GetNamespaceID() const override; | 75 gpu::CommandBufferNamespace GetNamespaceID() const override; |
76 uint64_t GetCommandBufferID() const override; | 76 uint64_t GetCommandBufferID() const override; |
| 77 uint32_t GetExtraCommandBufferData() const override; |
77 uint64_t GenerateFenceSyncRelease() override; | 78 uint64_t GenerateFenceSyncRelease() override; |
78 bool IsFenceSyncRelease(uint64_t release) override; | 79 bool IsFenceSyncRelease(uint64_t release) override; |
79 bool IsFenceSyncFlushed(uint64_t release) override; | 80 bool IsFenceSyncFlushed(uint64_t release) override; |
80 bool IsFenceSyncFlushReceived(uint64_t release) override; | 81 bool IsFenceSyncFlushReceived(uint64_t release) override; |
81 void SignalSyncToken(const gpu::SyncToken& sync_token, | 82 void SignalSyncToken(const gpu::SyncToken& sync_token, |
82 const base::Closure& callback) override; | 83 const base::Closure& callback) override; |
83 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; | 84 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; |
84 | 85 |
85 private: | 86 private: |
86 void PumpCommands(); | 87 void PumpCommands(); |
(...skipping 23 matching lines...) Expand all Loading... |
110 uint64_t next_fence_sync_release_; | 111 uint64_t next_fence_sync_release_; |
111 | 112 |
112 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; | 113 base::WeakPtrFactory<CommandBufferLocal> weak_factory_; |
113 | 114 |
114 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); | 115 DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal); |
115 }; | 116 }; |
116 | 117 |
117 } // namespace mus | 118 } // namespace mus |
118 | 119 |
119 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ | 120 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_H_ |
OLD | NEW |