| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // base::TimeTicks::HighResNow. Using the non-high res timer will result in | 388 // base::TimeTicks::HighResNow. Using the non-high res timer will result in |
| 389 // incorrect synchronization across processes. | 389 // incorrect synchronization across processes. |
| 390 virtual void UpdateVSyncParameters(base::TimeTicks timebase, | 390 virtual void UpdateVSyncParameters(base::TimeTicks timebase, |
| 391 base::TimeDelta interval); | 391 base::TimeDelta interval); |
| 392 | 392 |
| 393 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or | 393 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or |
| 394 // AcceleratedSurfacePostSubBuffer. | 394 // AcceleratedSurfacePostSubBuffer. |
| 395 static void AcknowledgeBufferPresent( | 395 static void AcknowledgeBufferPresent( |
| 396 int32 route_id, | 396 int32 route_id, |
| 397 int gpu_host_id, | 397 int gpu_host_id, |
| 398 bool presented, | 398 uint64 surface_handle, |
| 399 uint32 sync_point); | 399 uint32 sync_point); |
| 400 | 400 |
| 401 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 401 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
| 402 // platforms that support deferred GPU process descheduling. This does | 402 // platforms that support deferred GPU process descheduling. This does |
| 403 // nothing if the compositor thread is enabled. | 403 // nothing if the compositor thread is enabled. |
| 404 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 404 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
| 405 void AcknowledgeSwapBuffersToRenderer(); | 405 void AcknowledgeSwapBuffersToRenderer(); |
| 406 | 406 |
| 407 #if defined(USE_AURA) | 407 #if defined(USE_AURA) |
| 408 // Called by the view when the parent changes. If a parent isn't available, | 408 // Called by the view when the parent changes. If a parent isn't available, |
| 409 // NULL is used. | 409 // NULL is used. |
| 410 void ParentChanged(gfx::NativeViewId new_parent); | 410 void ParentChanged(gfx::NativeViewId new_parent); |
| 411 | |
| 412 // Called by the view in response to visibility changes: | |
| 413 // 1. After the front surface is guarenteed to no longer be in use by the ui | |
| 414 // (protected false), | |
| 415 // 2. When the ui expects to have a valid front surface (protected true). | |
| 416 static void SendFrontSurfaceIsProtected(bool is_protected, | |
| 417 uint32 protection_state_id, | |
| 418 int32 route_id, | |
| 419 int gpu_host_id); | |
| 420 #endif | 411 #endif |
| 421 | 412 |
| 422 // Signals that the compositing surface was updated, e.g. after a lost context | 413 // Signals that the compositing surface was updated, e.g. after a lost context |
| 423 // event. | 414 // event. |
| 424 void CompositingSurfaceUpdated(); | 415 void CompositingSurfaceUpdated(); |
| 425 | 416 |
| 426 void set_allow_privileged_mouse_lock(bool allow) { | 417 void set_allow_privileged_mouse_lock(bool allow) { |
| 427 allow_privileged_mouse_lock_ = allow; | 418 allow_privileged_mouse_lock_ = allow; |
| 428 } | 419 } |
| 429 | 420 |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 #if defined(OS_WIN) | 870 #if defined(OS_WIN) |
| 880 std::list<HWND> dummy_windows_for_activation_; | 871 std::list<HWND> dummy_windows_for_activation_; |
| 881 #endif | 872 #endif |
| 882 | 873 |
| 883 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 874 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 884 }; | 875 }; |
| 885 | 876 |
| 886 } // namespace content | 877 } // namespace content |
| 887 | 878 |
| 888 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 879 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |