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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "cc/debug/rendering_stats.h" | 10 #include "cc/debug/rendering_stats.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 float new_page_scale, | 80 float new_page_scale, |
81 double duration_sec); | 81 double duration_sec); |
82 virtual void setNeedsAnimate(); | 82 virtual void setNeedsAnimate(); |
83 virtual void setNeedsRedraw(); | 83 virtual void setNeedsRedraw(); |
84 virtual bool commitRequested() const; | 84 virtual bool commitRequested() const; |
85 virtual void didStopFlinging(); | 85 virtual void didStopFlinging(); |
86 virtual bool compositeAndReadback(void *pixels, const WebKit::WebRect& rect); | 86 virtual bool compositeAndReadback(void *pixels, const WebKit::WebRect& rect); |
87 virtual void finishAllRendering(); | 87 virtual void finishAllRendering(); |
88 virtual void setDeferCommits(bool defer_commits); | 88 virtual void setDeferCommits(bool defer_commits); |
89 virtual void registerForAnimations(WebKit::WebLayer* layer); | 89 virtual void registerForAnimations(WebKit::WebLayer* layer); |
90 virtual void registerViewportLayers( | |
91 const WebKit::WebLayer* pageScaleLayer, | |
92 const WebKit::WebLayer* innerViewportScrollLayer, | |
93 const WebKit::WebLayer* outerViewportScrollLayer) OVERRIDE; | |
94 virtual void clearViewportLayers() OVERRIDE; | |
95 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} | 90 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} |
96 virtual void setShowFPSCounter(bool show); | 91 virtual void setShowFPSCounter(bool show); |
97 virtual void setShowPaintRects(bool show); | 92 virtual void setShowPaintRects(bool show); |
98 virtual void setShowDebugBorders(bool show); | 93 virtual void setShowDebugBorders(bool show); |
99 virtual void setContinuousPaintingEnabled(bool enabled); | 94 virtual void setContinuousPaintingEnabled(bool enabled); |
100 virtual void setShowScrollBottleneckRects(bool show); | 95 virtual void setShowScrollBottleneckRects(bool show); |
101 | 96 |
102 // cc::LayerTreeHostClient implementation. | 97 // cc::LayerTreeHostClient implementation. |
103 virtual void WillBeginFrame() OVERRIDE; | 98 virtual void WillBeginFrame() OVERRIDE; |
104 virtual void DidBeginFrame() OVERRIDE; | 99 virtual void DidBeginFrame() OVERRIDE; |
(...skipping 21 matching lines...) Expand all Loading... |
126 | 121 |
127 bool threaded_; | 122 bool threaded_; |
128 bool suppress_schedule_composite_; | 123 bool suppress_schedule_composite_; |
129 RenderWidget* widget_; | 124 RenderWidget* widget_; |
130 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 125 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
131 }; | 126 }; |
132 | 127 |
133 } // namespace content | 128 } // namespace content |
134 | 129 |
135 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 130 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |