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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // base::TimeTicks::HighResNow. Using the non-high res timer will result in | 386 // base::TimeTicks::HighResNow. Using the non-high res timer will result in |
387 // incorrect synchronization across processes. | 387 // incorrect synchronization across processes. |
388 virtual void UpdateVSyncParameters(base::TimeTicks timebase, | 388 virtual void UpdateVSyncParameters(base::TimeTicks timebase, |
389 base::TimeDelta interval); | 389 base::TimeDelta interval); |
390 | 390 |
391 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or | 391 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or |
392 // AcceleratedSurfacePostSubBuffer. | 392 // AcceleratedSurfacePostSubBuffer. |
393 static void AcknowledgeBufferPresent( | 393 static void AcknowledgeBufferPresent( |
394 int32 route_id, | 394 int32 route_id, |
395 int gpu_host_id, | 395 int gpu_host_id, |
| 396 bool presented, |
396 uint32 sync_point); | 397 uint32 sync_point); |
397 | 398 |
398 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 399 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
399 // platforms that support deferred GPU process descheduling. This does | 400 // platforms that support deferred GPU process descheduling. This does |
400 // nothing if the compositor thread is enabled. | 401 // nothing if the compositor thread is enabled. |
401 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 402 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
402 void AcknowledgeSwapBuffersToRenderer(); | 403 void AcknowledgeSwapBuffersToRenderer(); |
403 | 404 |
404 #if defined(USE_AURA) | 405 #if defined(USE_AURA) |
405 // Called by the view in response to visibility changes: | 406 // Called by the view in response to visibility changes: |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 | 839 |
839 scoped_ptr<TouchEventQueue> touch_event_queue_; | 840 scoped_ptr<TouchEventQueue> touch_event_queue_; |
840 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 841 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
841 | 842 |
842 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 843 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
843 }; | 844 }; |
844 | 845 |
845 } // namespace content | 846 } // namespace content |
846 | 847 |
847 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 848 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |