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 COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ | 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 mojo::ScopedHandle memory_handle, | 60 mojo::ScopedHandle memory_handle, |
61 int32_t type, | 61 int32_t type, |
62 mojo::SizePtr size, | 62 mojo::SizePtr size, |
63 int32_t format, | 63 int32_t format, |
64 int32_t internal_format) override; | 64 int32_t internal_format) override; |
65 void DestroyImage(int32_t id) override; | 65 void DestroyImage(int32_t id) override; |
66 void CreateStreamTexture( | 66 void CreateStreamTexture( |
67 uint32_t client_texture_id, | 67 uint32_t client_texture_id, |
68 const mojom::CommandBuffer::CreateStreamTextureCallback& callback | 68 const mojom::CommandBuffer::CreateStreamTextureCallback& callback |
69 ) override; | 69 ) override; |
70 void ProduceFrontBuffer(const gpu::Mailbox& mailbox) override; | 70 void TakeFrontBuffer(const gpu::Mailbox& mailbox) override; |
| 71 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, bool is_lost) override; |
71 void SignalQuery(uint32_t query, uint32_t signal_id) override; | 72 void SignalQuery(uint32_t query, uint32_t signal_id) override; |
72 void SignalSyncToken(const gpu::SyncToken& sync_token, | 73 void SignalSyncToken(const gpu::SyncToken& sync_token, |
73 uint32_t signal_id) override; | 74 uint32_t signal_id) override; |
74 void WaitForGetOffsetInRange( | 75 void WaitForGetOffsetInRange( |
75 int32_t start, int32_t end, | 76 int32_t start, int32_t end, |
76 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback | 77 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback |
77 ) override; | 78 ) override; |
78 void WaitForTokenInRange( | 79 void WaitForTokenInRange( |
79 int32_t start, int32_t end, | 80 int32_t start, int32_t end, |
80 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback | 81 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 std::unique_ptr<CommandBufferDriver> driver_; | 116 std::unique_ptr<CommandBufferDriver> driver_; |
116 std::unique_ptr<mojo::Binding<CommandBuffer>> binding_; | 117 std::unique_ptr<mojo::Binding<CommandBuffer>> binding_; |
117 mojom::CommandBufferClientPtr client_; | 118 mojom::CommandBufferClientPtr client_; |
118 | 119 |
119 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); | 120 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); |
120 }; | 121 }; |
121 | 122 |
122 } // namespace mus | 123 } // namespace mus |
123 | 124 |
124 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ | 125 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |