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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // platforms that support deferred GPU process descheduling. This does | 397 // platforms that support deferred GPU process descheduling. This does |
398 // nothing if the compositor thread is enabled. | 398 // nothing if the compositor thread is enabled. |
399 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 399 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
400 void AcknowledgeSwapBuffersToRenderer(); | 400 void AcknowledgeSwapBuffersToRenderer(); |
401 | 401 |
402 #if defined(USE_AURA) | 402 #if defined(USE_AURA) |
403 // Called by the view when the parent changes. If a parent isn't available, | 403 // Called by the view when the parent changes. If a parent isn't available, |
404 // NULL is used. | 404 // NULL is used. |
405 void ParentChanged(gfx::NativeViewId new_parent); | 405 void ParentChanged(gfx::NativeViewId new_parent); |
406 #endif | 406 #endif |
| 407 void SwapCompositorFrameAck(const cc::CompositorFrameAck& ack); |
407 | 408 |
408 // Signals that the compositing surface was updated, e.g. after a lost context | 409 // Signals that the compositing surface was updated, e.g. after a lost context |
409 // event. | 410 // event. |
410 void CompositingSurfaceUpdated(); | 411 void CompositingSurfaceUpdated(); |
411 | 412 |
412 void set_allow_privileged_mouse_lock(bool allow) { | 413 void set_allow_privileged_mouse_lock(bool allow) { |
413 allow_privileged_mouse_lock_ = allow; | 414 allow_privileged_mouse_lock_ = allow; |
414 } | 415 } |
415 | 416 |
416 // Resets state variables related to tracking pending size and painting. | 417 // Resets state variables related to tracking pending size and painting. |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 #if defined(OS_WIN) | 851 #if defined(OS_WIN) |
851 std::list<HWND> dummy_windows_for_activation_; | 852 std::list<HWND> dummy_windows_for_activation_; |
852 #endif | 853 #endif |
853 | 854 |
854 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 855 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
855 }; | 856 }; |
856 | 857 |
857 } // namespace content | 858 } // namespace content |
858 | 859 |
859 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 860 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |