OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual ~RenderWidgetCompositor(); | 44 virtual ~RenderWidgetCompositor(); |
45 | 45 |
46 const base::WeakPtr<cc::InputHandler>& GetInputHandler(); | 46 const base::WeakPtr<cc::InputHandler>& GetInputHandler(); |
47 void SetSuppressScheduleComposite(bool suppress); | 47 void SetSuppressScheduleComposite(bool suppress); |
48 bool BeginMainFrameRequested() const; | 48 bool BeginMainFrameRequested() const; |
49 void SetNeedsDisplayOnAllLayers(); | 49 void SetNeedsDisplayOnAllLayers(); |
50 void SetRasterizeOnlyVisibleContent(); | 50 void SetRasterizeOnlyVisibleContent(); |
51 void UpdateTopControlsState(cc::TopControlsState constraints, | 51 void UpdateTopControlsState(cc::TopControlsState constraints, |
52 cc::TopControlsState current, | 52 cc::TopControlsState current, |
53 bool animate); | 53 bool animate); |
54 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 54 void SetTopControlsLayoutHeight(float top_controls_layout_height); |
55 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 55 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
56 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. | 56 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. |
57 // Redraw will be forced after the next commit | 57 // Redraw will be forced after the next commit |
58 void SetNeedsForcedRedraw(); | 58 void SetNeedsForcedRedraw(); |
59 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped | 59 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped |
60 // LatencyInfoSwapPromiseMonitor. During the life time of the | 60 // LatencyInfoSwapPromiseMonitor. During the life time of the |
61 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() | 61 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() |
62 // is called on LayerTreeHost, the original latency info will be turned | 62 // is called on LayerTreeHost, the original latency info will be turned |
63 // into a LatencyInfoSwapPromise. | 63 // into a LatencyInfoSwapPromise. |
64 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 64 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 bool threaded_; | 155 bool threaded_; |
156 bool suppress_schedule_composite_; | 156 bool suppress_schedule_composite_; |
157 RenderWidget* widget_; | 157 RenderWidget* widget_; |
158 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 158 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
159 }; | 159 }; |
160 | 160 |
161 } // namespace content | 161 } // namespace content |
162 | 162 |
163 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 163 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |