OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
392 // locked. | 392 // locked. |
393 bool GotResponseToLockMouseRequest(bool allowed); | 393 bool GotResponseToLockMouseRequest(bool allowed); |
394 | 394 |
395 // Tells the RenderWidget about the latest vsync parameters. | 395 // Tells the RenderWidget about the latest vsync parameters. |
396 // Note: Make sure the timebase was obtained using | 396 // Note: Make sure the timebase was obtained using |
397 // base::TimeTicks::HighResNow. Using the non-high res timer will result in | 397 // base::TimeTicks::HighResNow. Using the non-high res timer will result in |
398 // incorrect synchronization across processes. | 398 // incorrect synchronization across processes. |
399 virtual void UpdateVSyncParameters(base::TimeTicks timebase, | 399 virtual void UpdateVSyncParameters(base::TimeTicks timebase, |
400 base::TimeDelta interval); | 400 base::TimeDelta interval); |
401 | 401 |
402 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or | |
403 // AcceleratedSurfacePostSubBuffer. | |
404 static void AcknowledgeBufferPresent( | |
danakj
2014/09/19 19:06:29
this looks a bit unrelated to this CL maybe split
Fady Samuel
2014/09/19 20:04:13
Done.
| |
405 int32 route_id, | |
406 int gpu_host_id, | |
407 const AcceleratedSurfaceMsg_BufferPresented_Params& params); | |
408 | |
409 // Called by the view in response to OnSwapCompositorFrame. | 402 // Called by the view in response to OnSwapCompositorFrame. |
410 static void SendSwapCompositorFrameAck( | 403 static void SendSwapCompositorFrameAck( |
411 int32 route_id, | 404 int32 route_id, |
412 uint32 output_surface_id, | 405 uint32 output_surface_id, |
413 int renderer_host_id, | 406 int renderer_host_id, |
414 const cc::CompositorFrameAck& ack); | 407 const cc::CompositorFrameAck& ack); |
415 | 408 |
416 // Called by the view to return resources to the compositor. | 409 // Called by the view to return resources to the compositor. |
417 static void SendReclaimCompositorResources(int32 route_id, | 410 static void SendReclaimCompositorResources(int32 route_id, |
418 uint32 output_surface_id, | 411 uint32 output_surface_id, |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
845 typedef std::map<int, | 838 typedef std::map<int, |
846 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; | 839 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; |
847 PendingSnapshotMap pending_browser_snapshots_; | 840 PendingSnapshotMap pending_browser_snapshots_; |
848 | 841 |
849 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 842 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
850 }; | 843 }; |
851 | 844 |
852 } // namespace content | 845 } // namespace content |
853 | 846 |
854 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 847 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |