| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 441 |
| 442 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or | 442 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or |
| 443 // AcceleratedSurfacePostSubBuffer. | 443 // AcceleratedSurfacePostSubBuffer. |
| 444 static void AcknowledgeBufferPresent( | 444 static void AcknowledgeBufferPresent( |
| 445 int32 route_id, | 445 int32 route_id, |
| 446 int gpu_host_id, | 446 int gpu_host_id, |
| 447 const AcceleratedSurfaceMsg_BufferPresented_Params& params); | 447 const AcceleratedSurfaceMsg_BufferPresented_Params& params); |
| 448 | 448 |
| 449 // Called by the view in response to OnSwapCompositorFrame. | 449 // Called by the view in response to OnSwapCompositorFrame. |
| 450 static void SendSwapCompositorFrameAck( | 450 static void SendSwapCompositorFrameAck( |
| 451 int32 route_id, int renderer_host_id, const cc::CompositorFrameAck& ack); | 451 int32 route_id, |
| 452 uint32 output_surface_id, |
| 453 int renderer_host_id, |
| 454 const cc::CompositorFrameAck& ack); |
| 452 | 455 |
| 453 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 456 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
| 454 // platforms that support deferred GPU process descheduling. This does | 457 // platforms that support deferred GPU process descheduling. This does |
| 455 // nothing if the compositor thread is enabled. | 458 // nothing if the compositor thread is enabled. |
| 456 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 459 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
| 457 void AcknowledgeSwapBuffersToRenderer(); | 460 void AcknowledgeSwapBuffersToRenderer(); |
| 458 | 461 |
| 459 bool is_threaded_compositing_enabled() const { | 462 bool is_threaded_compositing_enabled() const { |
| 460 return is_threaded_compositing_enabled_; | 463 return is_threaded_compositing_enabled_; |
| 461 } | 464 } |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 int64 last_input_number_; | 961 int64 last_input_number_; |
| 959 | 962 |
| 960 BrowserRenderingStats rendering_stats_; | 963 BrowserRenderingStats rendering_stats_; |
| 961 | 964 |
| 962 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 965 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 963 }; | 966 }; |
| 964 | 967 |
| 965 } // namespace content | 968 } // namespace content |
| 966 | 969 |
| 967 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 970 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |