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 28 matching lines...) Expand all Loading... | |
39 // Attempt to construct and initialize a compositor instance for the widget | 39 // Attempt to construct and initialize a compositor instance for the widget |
40 // with the given settings. Returns NULL if initialization fails. | 40 // with the given settings. Returns NULL if initialization fails. |
41 static scoped_ptr<RenderWidgetCompositor> Create(RenderWidget* widget, | 41 static scoped_ptr<RenderWidgetCompositor> Create(RenderWidget* widget, |
42 bool threaded); | 42 bool threaded); |
43 | 43 |
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 UpdateAnimations(base::TimeTicks time); | |
mithro-old
2014/08/11 07:33:34
Why is this removed totally?
Sami
2014/08/11 17:51:27
I couldn't find any callers for it.
| |
50 void SetNeedsDisplayOnAllLayers(); | 49 void SetNeedsDisplayOnAllLayers(); |
51 void SetRasterizeOnlyVisibleContent(); | 50 void SetRasterizeOnlyVisibleContent(); |
52 void UpdateTopControlsState(cc::TopControlsState constraints, | 51 void UpdateTopControlsState(cc::TopControlsState constraints, |
53 cc::TopControlsState current, | 52 cc::TopControlsState current, |
54 bool animate); | 53 bool animate); |
55 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 54 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
56 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 55 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
57 // 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. |
58 // Redraw will be forced after the next commit | 57 // Redraw will be forced after the next commit |
59 void SetNeedsForcedRedraw(); | 58 void SetNeedsForcedRedraw(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 virtual void clearSelection() OVERRIDE; | 121 virtual void clearSelection() OVERRIDE; |
123 virtual void setShowFPSCounter(bool show); | 122 virtual void setShowFPSCounter(bool show); |
124 virtual void setShowPaintRects(bool show); | 123 virtual void setShowPaintRects(bool show); |
125 virtual void setShowDebugBorders(bool show); | 124 virtual void setShowDebugBorders(bool show); |
126 virtual void setContinuousPaintingEnabled(bool enabled); | 125 virtual void setContinuousPaintingEnabled(bool enabled); |
127 virtual void setShowScrollBottleneckRects(bool show); | 126 virtual void setShowScrollBottleneckRects(bool show); |
128 | 127 |
129 // cc::LayerTreeHostClient implementation. | 128 // cc::LayerTreeHostClient implementation. |
130 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; | 129 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; |
131 virtual void DidBeginMainFrame() OVERRIDE; | 130 virtual void DidBeginMainFrame() OVERRIDE; |
132 virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE; | 131 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE; |
133 virtual void Layout() OVERRIDE; | 132 virtual void Layout() OVERRIDE; |
134 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, | 133 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, |
135 float page_scale) OVERRIDE; | 134 float page_scale) OVERRIDE; |
136 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 135 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
137 OVERRIDE; | 136 OVERRIDE; |
138 virtual void DidInitializeOutputSurface() OVERRIDE; | 137 virtual void DidInitializeOutputSurface() OVERRIDE; |
139 virtual void WillCommit() OVERRIDE; | 138 virtual void WillCommit() OVERRIDE; |
140 virtual void DidCommit() OVERRIDE; | 139 virtual void DidCommit() OVERRIDE; |
141 virtual void DidCommitAndDrawFrame() OVERRIDE; | 140 virtual void DidCommitAndDrawFrame() OVERRIDE; |
142 virtual void DidCompleteSwapBuffers() OVERRIDE; | 141 virtual void DidCompleteSwapBuffers() OVERRIDE; |
(...skipping 12 matching lines...) Expand all Loading... | |
155 | 154 |
156 bool threaded_; | 155 bool threaded_; |
157 bool suppress_schedule_composite_; | 156 bool suppress_schedule_composite_; |
158 RenderWidget* widget_; | 157 RenderWidget* widget_; |
159 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 158 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
160 }; | 159 }; |
161 | 160 |
162 } // namespace content | 161 } // namespace content |
163 | 162 |
164 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 163 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |