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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void DidCreateAcceleratedSurfaceChildWindow( | 139 void DidCreateAcceleratedSurfaceChildWindow( |
140 SurfaceHandle parent_window, | 140 SurfaceHandle parent_window, |
141 SurfaceHandle child_window) override; | 141 SurfaceHandle child_window) override; |
142 #endif | 142 #endif |
143 void DidSwapBuffersComplete(SwapBuffersCompleteParams params) override; | 143 void DidSwapBuffersComplete(SwapBuffersCompleteParams params) override; |
144 const gles2::FeatureInfo* GetFeatureInfo() const override; | 144 const gles2::FeatureInfo* GetFeatureInfo() const override; |
145 void SetLatencyInfoCallback(const LatencyInfoCallback& callback) override; | 145 void SetLatencyInfoCallback(const LatencyInfoCallback& callback) override; |
146 void UpdateVSyncParameters(base::TimeTicks timebase, | 146 void UpdateVSyncParameters(base::TimeTicks timebase, |
147 base::TimeDelta interval) override; | 147 base::TimeDelta interval) override; |
148 | 148 |
| 149 void AddFilter(IPC::MessageFilter* message_filter) override; |
| 150 int32_t GetRouteID() const override; |
| 151 |
149 using SwapBuffersCompletionCallback = base::Callback<void( | 152 using SwapBuffersCompletionCallback = base::Callback<void( |
150 const std::vector<ui::LatencyInfo>& latency_info, | 153 const std::vector<ui::LatencyInfo>& latency_info, |
151 gfx::SwapResult result, | 154 gfx::SwapResult result, |
152 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; | 155 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; |
153 void SetSwapBuffersCompletionCallback( | 156 void SetSwapBuffersCompletionCallback( |
154 const SwapBuffersCompletionCallback& callback); | 157 const SwapBuffersCompletionCallback& callback); |
155 | 158 |
156 using UpdateVSyncParametersCallback = | 159 using UpdateVSyncParametersCallback = |
157 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; | 160 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; |
158 void SetUpdateVSyncParametersCallback( | 161 void SetUpdateVSyncParametersCallback( |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 336 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
334 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; | 337 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; |
335 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 338 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
336 | 339 |
337 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 340 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
338 }; | 341 }; |
339 | 342 |
340 } // namespace gpu | 343 } // namespace gpu |
341 | 344 |
342 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 345 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
OLD | NEW |