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 GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 void DidCreateAcceleratedSurfaceChildWindow( | 135 void DidCreateAcceleratedSurfaceChildWindow( |
136 SurfaceHandle parent_window, | 136 SurfaceHandle parent_window, |
137 SurfaceHandle child_window) override; | 137 SurfaceHandle child_window) override; |
138 #endif | 138 #endif |
139 void DidSwapBuffersComplete(SwapBuffersCompleteParams params) override; | 139 void DidSwapBuffersComplete(SwapBuffersCompleteParams params) override; |
140 const gles2::FeatureInfo* GetFeatureInfo() const override; | 140 const gles2::FeatureInfo* GetFeatureInfo() const override; |
141 void SetLatencyInfoCallback(const LatencyInfoCallback& callback) override; | 141 void SetLatencyInfoCallback(const LatencyInfoCallback& callback) override; |
142 void UpdateVSyncParameters(base::TimeTicks timebase, | 142 void UpdateVSyncParameters(base::TimeTicks timebase, |
143 base::TimeDelta interval) override; | 143 base::TimeDelta interval) override; |
144 | 144 |
| 145 void AddFilter(IPC::MessageFilter* message_filter) override; |
| 146 int32_t GetRouteID() const override; |
| 147 |
145 using SwapBuffersCompletionCallback = base::Callback<void( | 148 using SwapBuffersCompletionCallback = base::Callback<void( |
146 const std::vector<ui::LatencyInfo>& latency_info, | 149 const std::vector<ui::LatencyInfo>& latency_info, |
147 gfx::SwapResult result, | 150 gfx::SwapResult result, |
148 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; | 151 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; |
149 void SetSwapBuffersCompletionCallback( | 152 void SetSwapBuffersCompletionCallback( |
150 const SwapBuffersCompletionCallback& callback); | 153 const SwapBuffersCompletionCallback& callback); |
151 | 154 |
152 using UpdateVSyncParametersCallback = | 155 using UpdateVSyncParametersCallback = |
153 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; | 156 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; |
154 void SetUpdateVSyncParametersCallback( | 157 void SetUpdateVSyncParametersCallback( |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 331 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
329 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; | 332 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; |
330 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 333 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
331 | 334 |
332 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 335 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
333 }; | 336 }; |
334 | 337 |
335 } // namespace gpu | 338 } // namespace gpu |
336 | 339 |
337 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 340 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |