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 "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 bool DestroyImageOnGpuThread(int32_t id); | 87 bool DestroyImageOnGpuThread(int32_t id); |
88 | 88 |
89 void BindToRequest(mojo::InterfaceRequest<CommandBuffer> request); | 89 void BindToRequest(mojo::InterfaceRequest<CommandBuffer> request); |
90 | 90 |
91 void OnConnectionError(); | 91 void OnConnectionError(); |
92 bool DeleteOnGpuThread(); | 92 bool DeleteOnGpuThread(); |
93 | 93 |
94 scoped_refptr<GpuState> gpu_state_; | 94 scoped_refptr<GpuState> gpu_state_; |
95 scoped_ptr<CommandBufferDriver> driver_; | 95 scoped_ptr<CommandBufferDriver> driver_; |
96 scoped_ptr<mojo::Binding<CommandBuffer>> binding_; | 96 scoped_ptr<mojo::Binding<CommandBuffer>> binding_; |
97 std::deque<uint32_t> sync_points_; | |
98 CommandBufferImplObserver* observer_; | 97 CommandBufferImplObserver* observer_; |
99 mojom::CommandBufferLostContextObserverPtr loss_observer_; | 98 mojom::CommandBufferLostContextObserverPtr loss_observer_; |
100 | 99 |
101 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); | 100 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); |
102 }; | 101 }; |
103 | 102 |
104 } // namespace mus | 103 } // namespace mus |
105 | 104 |
106 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ | 105 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |