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 "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Poll the command buffer to execute work. | 105 // Poll the command buffer to execute work. |
106 void PollWork(); | 106 void PollWork(); |
107 void PerformWork(); | 107 void PerformWork(); |
108 | 108 |
109 void DestroyDecoder(); | 109 void DestroyDecoder(); |
110 | 110 |
111 // Callbacks: | 111 // Callbacks: |
112 void OnUpdateVSyncParameters(const base::TimeTicks timebase, | 112 void OnUpdateVSyncParameters(const base::TimeTicks timebase, |
113 const base::TimeDelta interval); | 113 const base::TimeDelta interval); |
114 bool OnWaitSyncPoint(uint32_t sync_point); | |
115 void OnFenceSyncRelease(uint64_t release); | 114 void OnFenceSyncRelease(uint64_t release); |
116 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, | 115 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, |
117 uint64_t command_buffer_id, | 116 uint64_t command_buffer_id, |
118 uint64_t release); | 117 uint64_t release); |
119 void OnParseError(); | 118 void OnParseError(); |
120 void OnContextLost(uint32_t reason); | 119 void OnContextLost(uint32_t reason); |
121 | 120 |
122 const gpu::CommandBufferNamespace command_buffer_namespace_; | 121 const gpu::CommandBufferNamespace command_buffer_namespace_; |
123 const uint64_t command_buffer_id_; | 122 const uint64_t command_buffer_id_; |
124 gfx::AcceleratedWidget widget_; | 123 gfx::AcceleratedWidget widget_; |
(...skipping 15 matching lines...) Expand all Loading... |
140 base::TimeTicks last_idle_time_; | 139 base::TimeTicks last_idle_time_; |
141 | 140 |
142 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; | 141 base::WeakPtrFactory<CommandBufferDriver> weak_factory_; |
143 | 142 |
144 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); | 143 DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver); |
145 }; | 144 }; |
146 | 145 |
147 } // namespace mus | 146 } // namespace mus |
148 | 147 |
149 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ | 148 #endif // COMPONENTS_GLES2_COMMAND_BUFFER_DRIVER_H_ |
OLD | NEW |