| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 uint32 InsertSyncPoint() override; | 67 uint32 InsertSyncPoint() override; |
| 68 uint32 InsertFutureSyncPoint() override; | 68 uint32 InsertFutureSyncPoint() override; |
| 69 void RetireSyncPoint(uint32 sync_point) override; | 69 void RetireSyncPoint(uint32 sync_point) override; |
| 70 void SignalSyncPoint(uint32 sync_point, | 70 void SignalSyncPoint(uint32 sync_point, |
| 71 const base::Closure& callback) override; | 71 const base::Closure& callback) override; |
| 72 void SignalQuery(uint32 query, const base::Closure& callback) override; | 72 void SignalQuery(uint32 query, const base::Closure& callback) override; |
| 73 void SetSurfaceVisible(bool visible) override; | 73 void SetSurfaceVisible(bool visible) override; |
| 74 uint32 CreateStreamTexture(uint32 texture_id) override; | 74 uint32 CreateStreamTexture(uint32 texture_id) override; |
| 75 void SetLock(base::Lock*) override; | 75 void SetLock(base::Lock*) override; |
| 76 bool IsGpuChannelLost() override; | 76 bool IsGpuChannelLost() override; |
| 77 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 78 uint64_t GetCommandBufferID() const override; |
| 77 | 79 |
| 78 private: | 80 private: |
| 79 class SyncClientImpl; | 81 class SyncClientImpl; |
| 80 class SyncPointClientImpl; | 82 class SyncPointClientImpl; |
| 81 | 83 |
| 82 // mojo::CommandBufferLostContextObserver implementation: | 84 // mojo::CommandBufferLostContextObserver implementation: |
| 83 void DidLoseContext(int32_t lost_reason) override; | 85 void DidLoseContext(int32_t lost_reason) override; |
| 84 | 86 |
| 85 void TryUpdateState(); | 87 void TryUpdateState(); |
| 86 void MakeProgressAndUpdateState(); | 88 void MakeProgressAndUpdateState(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 103 | 105 |
| 104 // Image IDs are allocated in sequence. | 106 // Image IDs are allocated in sequence. |
| 105 int next_image_id_; | 107 int next_image_id_; |
| 106 | 108 |
| 107 const MojoAsyncWaiter* async_waiter_; | 109 const MojoAsyncWaiter* async_waiter_; |
| 108 }; | 110 }; |
| 109 | 111 |
| 110 } // gles2 | 112 } // gles2 |
| 111 | 113 |
| 112 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ | 114 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ |
| OLD | NEW |