| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const WebKit::WebLayer* outerViewportScrollLayer) OVERRIDE; | 103 const WebKit::WebLayer* outerViewportScrollLayer) OVERRIDE; |
| 104 virtual void clearViewportLayers() OVERRIDE; | 104 virtual void clearViewportLayers() OVERRIDE; |
| 105 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} | 105 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} |
| 106 virtual void setShowFPSCounter(bool show); | 106 virtual void setShowFPSCounter(bool show); |
| 107 virtual void setShowPaintRects(bool show); | 107 virtual void setShowPaintRects(bool show); |
| 108 virtual void setShowDebugBorders(bool show); | 108 virtual void setShowDebugBorders(bool show); |
| 109 virtual void setContinuousPaintingEnabled(bool enabled); | 109 virtual void setContinuousPaintingEnabled(bool enabled); |
| 110 virtual void setShowScrollBottleneckRects(bool show); | 110 virtual void setShowScrollBottleneckRects(bool show); |
| 111 | 111 |
| 112 // cc::LayerTreeHostClient implementation. | 112 // cc::LayerTreeHostClient implementation. |
| 113 virtual void WillBeginMainFrame() OVERRIDE; | 113 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; |
| 114 virtual void DidBeginMainFrame() OVERRIDE; | 114 virtual void DidBeginMainFrame() OVERRIDE; |
| 115 virtual void Animate(double frame_begin_time) OVERRIDE; | 115 virtual void Animate(double frame_begin_time) OVERRIDE; |
| 116 virtual void Layout() OVERRIDE; | 116 virtual void Layout() OVERRIDE; |
| 117 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 117 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, |
| 118 float page_scale) OVERRIDE; | 118 float page_scale) OVERRIDE; |
| 119 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 119 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 120 OVERRIDE; | 120 OVERRIDE; |
| 121 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; | 121 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; |
| 122 virtual void WillCommit() OVERRIDE; | 122 virtual void WillCommit() OVERRIDE; |
| 123 virtual void DidCommit() OVERRIDE; | 123 virtual void DidCommit() OVERRIDE; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 135 | 135 |
| 136 bool threaded_; | 136 bool threaded_; |
| 137 bool suppress_schedule_composite_; | 137 bool suppress_schedule_composite_; |
| 138 RenderWidget* widget_; | 138 RenderWidget* widget_; |
| 139 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 139 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace content | 142 } // namespace content |
| 143 | 143 |
| 144 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 144 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |