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