| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 // Called by the view in response to OnSwapCompositorFrame. | 430 // Called by the view in response to OnSwapCompositorFrame. |
| 431 static void SendSwapCompositorFrameAck( | 431 static void SendSwapCompositorFrameAck( |
| 432 int32 route_id, int renderer_host_id, const cc::CompositorFrameAck& ack); | 432 int32 route_id, int renderer_host_id, const cc::CompositorFrameAck& ack); |
| 433 | 433 |
| 434 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 434 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
| 435 // platforms that support deferred GPU process descheduling. This does | 435 // platforms that support deferred GPU process descheduling. This does |
| 436 // nothing if the compositor thread is enabled. | 436 // nothing if the compositor thread is enabled. |
| 437 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 437 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
| 438 void AcknowledgeSwapBuffersToRenderer(); | 438 void AcknowledgeSwapBuffersToRenderer(); |
| 439 | 439 |
| 440 bool is_threaded_compositing_enabled() const { |
| 441 return is_threaded_compositing_enabled_; |
| 442 } |
| 443 |
| 440 #if defined(USE_AURA) | 444 #if defined(USE_AURA) |
| 441 // Called by the view when the parent changes. If a parent isn't available, | 445 // Called by the view when the parent changes. If a parent isn't available, |
| 442 // NULL is used. | 446 // NULL is used. |
| 443 void ParentChanged(gfx::NativeViewId new_parent); | 447 void ParentChanged(gfx::NativeViewId new_parent); |
| 444 #endif | 448 #endif |
| 445 | 449 |
| 446 // Signals that the compositing surface was updated, e.g. after a lost context | 450 // Signals that the compositing surface was updated, e.g. after a lost context |
| 447 // event. | 451 // event. |
| 448 void CompositingSurfaceUpdated(); | 452 void CompositingSurfaceUpdated(); |
| 449 | 453 |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 int64 last_input_number_; | 934 int64 last_input_number_; |
| 931 | 935 |
| 932 BrowserRenderingStats rendering_stats_; | 936 BrowserRenderingStats rendering_stats_; |
| 933 | 937 |
| 934 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 938 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 935 }; | 939 }; |
| 936 | 940 |
| 937 } // namespace content | 941 } // namespace content |
| 938 | 942 |
| 939 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 943 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |