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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "cc/debug/rendering_stats.h" | 10 #include "cc/debug/rendering_stats.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void Animate(base::TimeTicks time); | 43 void Animate(base::TimeTicks time); |
44 void Composite(base::TimeTicks frame_begin_time); | 44 void Composite(base::TimeTicks frame_begin_time); |
45 void SetNeedsDisplayOnAllLayers(); | 45 void SetNeedsDisplayOnAllLayers(); |
46 void SetRasterizeOnlyVisibleContent(); | 46 void SetRasterizeOnlyVisibleContent(); |
47 void GetRenderingStats(cc::RenderingStats* stats); | 47 void GetRenderingStats(cc::RenderingStats* stats); |
48 void UpdateTopControlsState(cc::TopControlsState constraints, | 48 void UpdateTopControlsState(cc::TopControlsState constraints, |
49 cc::TopControlsState current, | 49 cc::TopControlsState current, |
50 bool animate); | 50 bool animate); |
51 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 51 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
52 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 52 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 53 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. |
| 54 // Redraw will be forced after the next commit |
| 55 void SetNeedsForcedRedraw(); |
53 void SetLatencyInfo(const ui::LatencyInfo& latency_info); | 56 void SetLatencyInfo(const ui::LatencyInfo& latency_info); |
54 int GetLayerTreeId() const; | 57 int GetLayerTreeId() const; |
55 void NotifyInputThrottledUntilCommit(); | 58 void NotifyInputThrottledUntilCommit(); |
56 const cc::Layer* GetRootLayer() const; | 59 const cc::Layer* GetRootLayer() const; |
57 | 60 |
58 // WebLayerTreeView implementation. | 61 // WebLayerTreeView implementation. |
59 virtual void setSurfaceReady(); | 62 virtual void setSurfaceReady(); |
60 virtual void setRootLayer(const WebKit::WebLayer& layer); | 63 virtual void setRootLayer(const WebKit::WebLayer& layer); |
61 virtual void clearRootLayer(); | 64 virtual void clearRootLayer(); |
62 virtual void setViewportSize( | 65 virtual void setViewportSize( |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 127 |
125 bool threaded_; | 128 bool threaded_; |
126 bool suppress_schedule_composite_; | 129 bool suppress_schedule_composite_; |
127 RenderWidget* widget_; | 130 RenderWidget* widget_; |
128 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 131 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
129 }; | 132 }; |
130 | 133 |
131 } // namespace content | 134 } // namespace content |
132 | 135 |
133 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 136 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |