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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 UpdateAnimations(base::TimeTicks time); | 49 void UpdateAnimations(base::TimeTicks time); |
50 void SetNeedsDisplayOnAllLayers(); | 50 void SetNeedsDisplayOnAllLayers(); |
51 void SetRasterizeOnlyVisibleContent(); | 51 void SetRasterizeOnlyVisibleContent(); |
52 void UpdateTopControlsState(cc::TopControlsState constraints, | 52 void UpdateTopControlsState(cc::TopControlsState constraints, |
53 cc::TopControlsState current, | 53 cc::TopControlsState current, |
54 bool animate); | 54 bool animate); |
55 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 55 void SetTopControlsLayoutHeight(float top_controls_layout_height); |
56 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 56 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
57 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. | 57 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. |
58 // Redraw will be forced after the next commit | 58 // Redraw will be forced after the next commit |
59 void SetNeedsForcedRedraw(); | 59 void SetNeedsForcedRedraw(); |
60 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped | 60 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped |
61 // LatencyInfoSwapPromiseMonitor. During the life time of the | 61 // LatencyInfoSwapPromiseMonitor. During the life time of the |
62 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() | 62 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() |
63 // is called on LayerTreeHost, the original latency info will be turned | 63 // is called on LayerTreeHost, the original latency info will be turned |
64 // into a LatencyInfoSwapPromise. | 64 // into a LatencyInfoSwapPromise. |
65 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 65 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 bool threaded_; | 156 bool threaded_; |
157 bool suppress_schedule_composite_; | 157 bool suppress_schedule_composite_; |
158 RenderWidget* widget_; | 158 RenderWidget* widget_; |
159 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 159 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
160 }; | 160 }; |
161 | 161 |
162 } // namespace content | 162 } // namespace content |
163 | 163 |
164 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 164 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |