| 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 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 uint32 InsertSyncPoint() override; | 65 uint32 InsertSyncPoint() override; |
| 66 uint32 InsertFutureSyncPoint() override; | 66 uint32 InsertFutureSyncPoint() override; |
| 67 void RetireSyncPoint(uint32 sync_point) override; | 67 void RetireSyncPoint(uint32 sync_point) override; |
| 68 void SignalSyncPoint(uint32 sync_point, | 68 void SignalSyncPoint(uint32 sync_point, |
| 69 const base::Closure& callback) override; | 69 const base::Closure& callback) override; |
| 70 void SignalQuery(uint32 query, const base::Closure& callback) override; | 70 void SignalQuery(uint32 query, const base::Closure& callback) override; |
| 71 void SetSurfaceVisible(bool visible) override; | 71 void SetSurfaceVisible(bool visible) override; |
| 72 uint32 CreateStreamTexture(uint32 texture_id) override; | 72 uint32 CreateStreamTexture(uint32 texture_id) 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; |
| 76 uint64_t GetCommandBufferID() const override; |
| 75 | 77 |
| 76 private: | 78 private: |
| 77 class SyncClientImpl; | 79 class SyncClientImpl; |
| 78 class SyncPointClientImpl; | 80 class SyncPointClientImpl; |
| 79 | 81 |
| 80 // mojo::CommandBufferLostContextObserver implementation: | 82 // mojo::CommandBufferLostContextObserver implementation: |
| 81 void DidLoseContext(int32_t lost_reason) override; | 83 void DidLoseContext(int32_t lost_reason) override; |
| 82 | 84 |
| 83 void TryUpdateState(); | 85 void TryUpdateState(); |
| 84 void MakeProgressAndUpdateState(); | 86 void MakeProgressAndUpdateState(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 100 | 102 |
| 101 // Image IDs are allocated in sequence. | 103 // Image IDs are allocated in sequence. |
| 102 int next_image_id_; | 104 int next_image_id_; |
| 103 | 105 |
| 104 const MojoAsyncWaiter* async_waiter_; | 106 const MojoAsyncWaiter* async_waiter_; |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // gles2 | 109 } // gles2 |
| 108 | 110 |
| 109 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ | 111 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ |
| OLD | NEW |