| 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 <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 // base::TimeTicks::HighResNow. Using the non-high res timer will result in | 381 // base::TimeTicks::HighResNow. Using the non-high res timer will result in |
| 382 // incorrect synchronization across processes. | 382 // incorrect synchronization across processes. |
| 383 virtual void UpdateVSyncParameters(base::TimeTicks timebase, | 383 virtual void UpdateVSyncParameters(base::TimeTicks timebase, |
| 384 base::TimeDelta interval); | 384 base::TimeDelta interval); |
| 385 | 385 |
| 386 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or | 386 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or |
| 387 // AcceleratedSurfacePostSubBuffer. | 387 // AcceleratedSurfacePostSubBuffer. |
| 388 static void AcknowledgeBufferPresent( | 388 static void AcknowledgeBufferPresent( |
| 389 int32 route_id, | 389 int32 route_id, |
| 390 int gpu_host_id, | 390 int gpu_host_id, |
| 391 bool presented, |
| 391 uint32 sync_point); | 392 uint32 sync_point); |
| 392 | 393 |
| 393 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 394 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
| 394 // platforms that support deferred GPU process descheduling. This does | 395 // platforms that support deferred GPU process descheduling. This does |
| 395 // nothing if the compositor thread is enabled. | 396 // nothing if the compositor thread is enabled. |
| 396 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 397 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
| 397 void AcknowledgeSwapBuffersToRenderer(); | 398 void AcknowledgeSwapBuffersToRenderer(); |
| 398 | 399 |
| 399 #if defined(USE_AURA) | 400 #if defined(USE_AURA) |
| 400 // Called by the view in response to visibility changes: | 401 // Called by the view in response to visibility changes: |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 bool tick_active_smooth_scroll_gestures_task_posted_; | 831 bool tick_active_smooth_scroll_gestures_task_posted_; |
| 831 | 832 |
| 832 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 833 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 833 | 834 |
| 834 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 835 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 835 }; | 836 }; |
| 836 | 837 |
| 837 } // namespace content | 838 } // namespace content |
| 838 | 839 |
| 839 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 840 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |