| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual void setShowPaintRects(bool show); | 112 virtual void setShowPaintRects(bool show); |
| 113 virtual void setShowDebugBorders(bool show); | 113 virtual void setShowDebugBorders(bool show); |
| 114 virtual void setContinuousPaintingEnabled(bool enabled); | 114 virtual void setContinuousPaintingEnabled(bool enabled); |
| 115 virtual void setShowScrollBottleneckRects(bool show); | 115 virtual void setShowScrollBottleneckRects(bool show); |
| 116 | 116 |
| 117 // cc::LayerTreeHostClient implementation. | 117 // cc::LayerTreeHostClient implementation. |
| 118 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; | 118 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; |
| 119 virtual void DidBeginMainFrame() OVERRIDE; | 119 virtual void DidBeginMainFrame() OVERRIDE; |
| 120 virtual void Animate(double frame_begin_time) OVERRIDE; | 120 virtual void Animate(double frame_begin_time) OVERRIDE; |
| 121 virtual void Layout() OVERRIDE; | 121 virtual void Layout() OVERRIDE; |
| 122 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 122 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, |
| 123 float page_scale) OVERRIDE; | 123 float page_scale) OVERRIDE; |
| 124 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 124 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 125 OVERRIDE; | 125 OVERRIDE; |
| 126 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; | 126 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; |
| 127 virtual void WillCommit() OVERRIDE; | 127 virtual void WillCommit() OVERRIDE; |
| 128 virtual void DidCommit() OVERRIDE; | 128 virtual void DidCommit() OVERRIDE; |
| 129 virtual void DidCommitAndDrawFrame() OVERRIDE; | 129 virtual void DidCommitAndDrawFrame() OVERRIDE; |
| 130 virtual void DidCompleteSwapBuffers() OVERRIDE; | 130 virtual void DidCompleteSwapBuffers() OVERRIDE; |
| 131 virtual scoped_refptr<cc::ContextProvider> | 131 virtual scoped_refptr<cc::ContextProvider> |
| 132 OffscreenContextProvider() OVERRIDE; | 132 OffscreenContextProvider() OVERRIDE; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 145 | 145 |
| 146 bool threaded_; | 146 bool threaded_; |
| 147 bool suppress_schedule_composite_; | 147 bool suppress_schedule_composite_; |
| 148 RenderWidget* widget_; | 148 RenderWidget* widget_; |
| 149 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 149 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace content | 152 } // namespace content |
| 153 | 153 |
| 154 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 154 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |