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 TakeFrontBuffer(const gpu::Mailbox& mailbox) override; | 70 void ProduceFrontBuffer(const gpu::Mailbox& mailbox) override; |
71 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, bool is_lost) override; | |
72 void SignalQuery(uint32_t query, uint32_t signal_id) override; | 71 void SignalQuery(uint32_t query, uint32_t signal_id) override; |
73 void SignalSyncToken(const gpu::SyncToken& sync_token, | 72 void SignalSyncToken(const gpu::SyncToken& sync_token, |
74 uint32_t signal_id) override; | 73 uint32_t signal_id) override; |
75 void WaitForGetOffsetInRange( | 74 void WaitForGetOffsetInRange( |
76 int32_t start, int32_t end, | 75 int32_t start, int32_t end, |
77 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback | 76 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback |
78 ) override; | 77 ) override; |
79 void WaitForTokenInRange( | 78 void WaitForTokenInRange( |
80 int32_t start, int32_t end, | 79 int32_t start, int32_t end, |
81 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback | 80 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 std::unique_ptr<CommandBufferDriver> driver_; | 115 std::unique_ptr<CommandBufferDriver> driver_; |
117 std::unique_ptr<mojo::Binding<CommandBuffer>> binding_; | 116 std::unique_ptr<mojo::Binding<CommandBuffer>> binding_; |
118 mojom::CommandBufferClientPtr client_; | 117 mojom::CommandBufferClientPtr client_; |
119 | 118 |
120 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); | 119 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); |
121 }; | 120 }; |
122 | 121 |
123 } // namespace mus | 122 } // namespace mus |
124 | 123 |
125 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ | 124 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |