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