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