| 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 23 matching lines...) Expand all Loading... |
| 34 struct ViewHostMsg_UpdateRect_Params; | 34 struct ViewHostMsg_UpdateRect_Params; |
| 35 struct ViewHostMsg_TextInputState_Params; | 35 struct ViewHostMsg_TextInputState_Params; |
| 36 struct ViewHostMsg_BeginSmoothScroll_Params; | 36 struct ViewHostMsg_BeginSmoothScroll_Params; |
| 37 | 37 |
| 38 namespace base { | 38 namespace base { |
| 39 class TimeTicks; | 39 class TimeTicks; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace cc { | 42 namespace cc { |
| 43 class CompositorFrame; | 43 class CompositorFrame; |
| 44 class CompositorFrameAck; |
| 44 } | 45 } |
| 45 | 46 |
| 46 namespace ui { | 47 namespace ui { |
| 47 class KeyEvent; | 48 class KeyEvent; |
| 48 class Range; | 49 class Range; |
| 49 } | 50 } |
| 50 | 51 |
| 51 namespace WebKit { | 52 namespace WebKit { |
| 52 class WebInputEvent; | 53 class WebInputEvent; |
| 53 class WebMouseEvent; | 54 class WebMouseEvent; |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 virtual void UpdateVSyncParameters(base::TimeTicks timebase, | 382 virtual void UpdateVSyncParameters(base::TimeTicks timebase, |
| 382 base::TimeDelta interval); | 383 base::TimeDelta interval); |
| 383 | 384 |
| 384 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or | 385 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or |
| 385 // AcceleratedSurfacePostSubBuffer. | 386 // AcceleratedSurfacePostSubBuffer. |
| 386 static void AcknowledgeBufferPresent( | 387 static void AcknowledgeBufferPresent( |
| 387 int32 route_id, | 388 int32 route_id, |
| 388 int gpu_host_id, | 389 int gpu_host_id, |
| 389 const AcceleratedSurfaceMsg_BufferPresented_Params& params); | 390 const AcceleratedSurfaceMsg_BufferPresented_Params& params); |
| 390 | 391 |
| 392 // Called by the view in response to OnSwapCompositorFrame. |
| 393 static void SendSwapCompositorFrameAck( |
| 394 int32 route_id, int renderer_host_id, const cc::CompositorFrameAck& ack); |
| 395 |
| 391 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 396 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
| 392 // platforms that support deferred GPU process descheduling. This does | 397 // platforms that support deferred GPU process descheduling. This does |
| 393 // nothing if the compositor thread is enabled. | 398 // nothing if the compositor thread is enabled. |
| 394 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 399 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
| 395 void AcknowledgeSwapBuffersToRenderer(); | 400 void AcknowledgeSwapBuffersToRenderer(); |
| 396 | 401 |
| 397 #if defined(USE_AURA) | 402 #if defined(USE_AURA) |
| 398 // Called by the view when the parent changes. If a parent isn't available, | 403 // Called by the view when the parent changes. If a parent isn't available, |
| 399 // NULL is used. | 404 // NULL is used. |
| 400 void ParentChanged(gfx::NativeViewId new_parent); | 405 void ParentChanged(gfx::NativeViewId new_parent); |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 #if defined(OS_WIN) | 847 #if defined(OS_WIN) |
| 843 std::list<HWND> dummy_windows_for_activation_; | 848 std::list<HWND> dummy_windows_for_activation_; |
| 844 #endif | 849 #endif |
| 845 | 850 |
| 846 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 847 }; | 852 }; |
| 848 | 853 |
| 849 } // namespace content | 854 } // namespace content |
| 850 | 855 |
| 851 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |