| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 145 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
| 146 float page_scale, | 146 float page_scale, |
| 147 float top_controls_delta) override; | 147 float top_controls_delta) override; |
| 148 void RequestNewOutputSurface() override; | 148 void RequestNewOutputSurface() override; |
| 149 void DidInitializeOutputSurface() override; | 149 void DidInitializeOutputSurface() override; |
| 150 void DidFailToInitializeOutputSurface() override; | 150 void DidFailToInitializeOutputSurface() override; |
| 151 void WillCommit() override; | 151 void WillCommit() override; |
| 152 void DidCommit() override; | 152 void DidCommit() override; |
| 153 void DidCommitAndDrawFrame() override; | 153 void DidCommitAndDrawFrame() override; |
| 154 void DidCompleteSwapBuffers() override; | 154 void DidCompleteSwapBuffers() override; |
| 155 void DidCompletePageScaleAnimation() override; |
| 155 void RateLimitSharedMainThreadContext() override; | 156 void RateLimitSharedMainThreadContext() override; |
| 156 | 157 |
| 157 // cc::LayerTreeHostSingleThreadClient implementation. | 158 // cc::LayerTreeHostSingleThreadClient implementation. |
| 158 void ScheduleAnimation() override; | 159 void ScheduleAnimation() override; |
| 159 void DidPostSwapBuffers() override; | 160 void DidPostSwapBuffers() override; |
| 160 void DidAbortSwapBuffers() override; | 161 void DidAbortSwapBuffers() override; |
| 161 | 162 |
| 162 enum { | 163 enum { |
| 163 OUTPUT_SURFACE_RETRIES_BEFORE_FALLBACK = 4, | 164 OUTPUT_SURFACE_RETRIES_BEFORE_FALLBACK = 4, |
| 164 MAX_OUTPUT_SURFACE_RETRIES = 5, | 165 MAX_OUTPUT_SURFACE_RETRIES = 5, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 184 base::TimeTicks begin_main_frame_time_; | 185 base::TimeTicks begin_main_frame_time_; |
| 185 // The time interval between BeginMainFrame calls, provided by the scheduler. | 186 // The time interval between BeginMainFrame calls, provided by the scheduler. |
| 186 base::TimeDelta begin_main_frame_interval_; | 187 base::TimeDelta begin_main_frame_interval_; |
| 187 | 188 |
| 188 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 189 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 189 }; | 190 }; |
| 190 | 191 |
| 191 } // namespace content | 192 } // namespace content |
| 192 | 193 |
| 193 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 194 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |