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 void Animate(base::TimeTicks time); | 44 void Animate(base::TimeTicks time); |
45 void Composite(base::TimeTicks frame_begin_time); | 45 void Composite(base::TimeTicks frame_begin_time); |
46 void SetNeedsDisplayOnAllLayers(); | 46 void SetNeedsDisplayOnAllLayers(); |
47 void SetRasterizeOnlyVisibleContent(); | 47 void SetRasterizeOnlyVisibleContent(); |
48 void GetRenderingStats(cc::RenderingStats* stats); | 48 void GetRenderingStats(cc::RenderingStats* stats); |
49 void UpdateTopControlsState(cc::TopControlsState constraints, | 49 void UpdateTopControlsState(cc::TopControlsState constraints, |
50 cc::TopControlsState current, | 50 cc::TopControlsState current, |
51 bool animate); | 51 bool animate); |
52 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 52 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
53 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 53 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 54 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. |
| 55 // Redraw will be forced after the next commit |
| 56 void SetNeedsForcedRedraw(); |
54 void SetLatencyInfo(const ui::LatencyInfo& latency_info); | 57 void SetLatencyInfo(const ui::LatencyInfo& latency_info); |
55 int GetLayerTreeId() const; | 58 int GetLayerTreeId() const; |
56 void NotifyInputThrottledUntilCommit(); | 59 void NotifyInputThrottledUntilCommit(); |
57 const cc::Layer* GetRootLayer() const; | 60 const cc::Layer* GetRootLayer() const; |
58 bool ScheduleMicroBenchmark( | 61 bool ScheduleMicroBenchmark( |
59 const std::string& name, | 62 const std::string& name, |
60 const base::Callback<void(scoped_ptr<base::Value>)>& callback); | 63 const base::Callback<void(scoped_ptr<base::Value>)>& callback); |
61 | 64 |
62 // WebLayerTreeView implementation. | 65 // WebLayerTreeView implementation. |
63 virtual void setSurfaceReady(); | 66 virtual void setSurfaceReady(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 131 |
129 bool threaded_; | 132 bool threaded_; |
130 bool suppress_schedule_composite_; | 133 bool suppress_schedule_composite_; |
131 RenderWidget* widget_; | 134 RenderWidget* widget_; |
132 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 135 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
133 }; | 136 }; |
134 | 137 |
135 } // namespace content | 138 } // namespace content |
136 | 139 |
137 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 140 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |