OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DRIVER_H_ | 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ | 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 void DestroyDecoder(); | 130 void DestroyDecoder(); |
131 | 131 |
132 // Callbacks: | 132 // Callbacks: |
133 void OnUpdateVSyncParameters(const base::TimeTicks timebase, | 133 void OnUpdateVSyncParameters(const base::TimeTicks timebase, |
134 const base::TimeDelta interval); | 134 const base::TimeDelta interval); |
135 void OnFenceSyncRelease(uint64_t release); | 135 void OnFenceSyncRelease(uint64_t release); |
136 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, | 136 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, |
137 gpu::CommandBufferId command_buffer_id, | 137 gpu::CommandBufferId command_buffer_id, |
138 uint64_t release); | 138 uint64_t release); |
| 139 void OnDescheduleUntilFinished(); |
| 140 void OnRescheduleAfterFinished(); |
139 void OnParseError(); | 141 void OnParseError(); |
140 void OnContextLost(uint32_t reason); | 142 void OnContextLost(uint32_t reason); |
141 void OnGpuCompletedSwapBuffers(gfx::SwapResult result); | 143 void OnGpuCompletedSwapBuffers(gfx::SwapResult result); |
142 | 144 |
143 const gpu::CommandBufferNamespace command_buffer_namespace_; | 145 const gpu::CommandBufferNamespace command_buffer_namespace_; |
144 const gpu::CommandBufferId command_buffer_id_; | 146 const gpu::CommandBufferId command_buffer_id_; |
145 gfx::AcceleratedWidget widget_; | 147 gfx::AcceleratedWidget widget_; |
146 Client* client_; // NOT OWNED. | 148 Client* client_; // NOT OWNED. |
147 std::unique_ptr<gpu::CommandBufferService> command_buffer_; | 149 std::unique_ptr<gpu::CommandBufferService> command_buffer_; |
148 std::unique_ptr<gpu::gles2::GLES2Decoder> decoder_; | 150 std::unique_ptr<gpu::gles2::GLES2Decoder> decoder_; |
(...skipping 12 matching lines...) Expand all Loading... |
161 base::TimeTicks last_idle_time_; | 163 base::TimeTicks last_idle_time_; |
162 | 164 |
163 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; | 165 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; |
164 | 166 |
165 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); | 167 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); |
166 }; | 168 }; |
167 | 169 |
168 } // namespace mus | 170 } // namespace mus |
169 | 171 |
170 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ | 172 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
OLD | NEW |