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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 virtual void setShowDebugBorders(bool show); | 125 virtual void setShowDebugBorders(bool show); |
126 virtual void setContinuousPaintingEnabled(bool enabled); | 126 virtual void setContinuousPaintingEnabled(bool enabled); |
127 virtual void setShowScrollBottleneckRects(bool show); | 127 virtual void setShowScrollBottleneckRects(bool show); |
128 virtual void setTopControlsContentOffset(float); | 128 virtual void setTopControlsContentOffset(float); |
129 | 129 |
130 // cc::LayerTreeHostClient implementation. | 130 // cc::LayerTreeHostClient implementation. |
131 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; | 131 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; |
132 virtual void DidBeginMainFrame() OVERRIDE; | 132 virtual void DidBeginMainFrame() OVERRIDE; |
133 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE; | 133 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE; |
134 virtual void Layout() OVERRIDE; | 134 virtual void Layout() OVERRIDE; |
| 135 virtual void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, |
| 136 const gfx::Vector2d& outer_delta, |
| 137 float page_scale, |
| 138 float top_controls_delta) OVERRIDE; |
135 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 139 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
136 float page_scale, | 140 float page_scale, |
137 float top_controls_delta) OVERRIDE; | 141 float top_controls_delta) OVERRIDE; |
138 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 142 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
139 OVERRIDE; | 143 OVERRIDE; |
140 virtual void DidInitializeOutputSurface() OVERRIDE; | 144 virtual void DidInitializeOutputSurface() OVERRIDE; |
141 virtual void WillCommit() OVERRIDE; | 145 virtual void WillCommit() OVERRIDE; |
142 virtual void DidCommit() OVERRIDE; | 146 virtual void DidCommit() OVERRIDE; |
143 virtual void DidCommitAndDrawFrame() OVERRIDE; | 147 virtual void DidCommitAndDrawFrame() OVERRIDE; |
144 virtual void DidCompleteSwapBuffers() OVERRIDE; | 148 virtual void DidCompleteSwapBuffers() OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
160 | 164 |
161 bool send_v8_idle_notification_after_commit_; | 165 bool send_v8_idle_notification_after_commit_; |
162 base::TimeTicks begin_main_frame_time_; | 166 base::TimeTicks begin_main_frame_time_; |
163 // The time interval between BeginMainFrame calls, provided by the scheduler. | 167 // The time interval between BeginMainFrame calls, provided by the scheduler. |
164 base::TimeDelta begin_main_frame_interval_; | 168 base::TimeDelta begin_main_frame_interval_; |
165 }; | 169 }; |
166 | 170 |
167 } // namespace content | 171 } // namespace content |
168 | 172 |
169 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 173 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |