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