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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 void BeginMainFrameNotExpectedSoon() override; | 140 void BeginMainFrameNotExpectedSoon() override; |
141 void Layout() override; | 141 void Layout() override; |
142 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 142 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
143 const gfx::Vector2dF& outer_delta, | 143 const gfx::Vector2dF& outer_delta, |
144 const gfx::Vector2dF& elastic_overscroll_delta, | 144 const gfx::Vector2dF& elastic_overscroll_delta, |
145 float page_scale, | 145 float page_scale, |
146 float top_controls_delta) override; | 146 float top_controls_delta) override; |
147 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 147 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
148 float page_scale, | 148 float page_scale, |
149 float top_controls_delta) override; | 149 float top_controls_delta) override; |
| 150 void RecordCompositeTimings( |
| 151 cc::FrameTimingTracker::CompositeTimingSet* composites) override; |
| 152 void RecordRenderTimings( |
| 153 cc::FrameTimingTracker::MainFrameTimingSet* renders) override; |
150 void RequestNewOutputSurface() override; | 154 void RequestNewOutputSurface() override; |
151 void DidInitializeOutputSurface() override; | 155 void DidInitializeOutputSurface() override; |
152 void DidFailToInitializeOutputSurface() override; | 156 void DidFailToInitializeOutputSurface() override; |
153 void WillCommit() override; | 157 void WillCommit() override; |
154 void DidCommit() override; | 158 void DidCommit() override; |
155 void DidCommitAndDrawFrame() override; | 159 void DidCommitAndDrawFrame() override; |
156 void DidCompleteSwapBuffers() override; | 160 void DidCompleteSwapBuffers() override; |
157 void DidCompletePageScaleAnimation() override; | 161 void DidCompletePageScaleAnimation() override; |
158 void RateLimitSharedMainThreadContext() override; | 162 void RateLimitSharedMainThreadContext() override; |
159 | 163 |
(...skipping 26 matching lines...) Expand all Loading... |
186 | 190 |
187 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 191 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
188 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 192 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
189 | 193 |
190 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 194 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
191 }; | 195 }; |
192 | 196 |
193 } // namespace content | 197 } // namespace content |
194 | 198 |
195 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 199 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |