| 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 registerPinchViewportLayers( |
| 91 const WebKit::WebLayer* innerViewportClipLayer, |
| 92 const WebKit::WebLayer* pageScaleLayer, |
| 93 const WebKit::WebLayer* innerViewportScrollLayer, |
| 94 const WebKit::WebLayer* outerViewportScrollLayer) OVERRIDE; |
| 95 virtual void clearPinchViewportLayers() OVERRIDE; |
| 90 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} | 96 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} |
| 91 virtual void setShowFPSCounter(bool show); | 97 virtual void setShowFPSCounter(bool show); |
| 92 virtual void setShowPaintRects(bool show); | 98 virtual void setShowPaintRects(bool show); |
| 93 virtual void setShowDebugBorders(bool show); | 99 virtual void setShowDebugBorders(bool show); |
| 94 virtual void setContinuousPaintingEnabled(bool enabled); | 100 virtual void setContinuousPaintingEnabled(bool enabled); |
| 95 virtual void setShowScrollBottleneckRects(bool show); | 101 virtual void setShowScrollBottleneckRects(bool show); |
| 96 | 102 |
| 97 // cc::LayerTreeHostClient implementation. | 103 // cc::LayerTreeHostClient implementation. |
| 98 virtual void WillBeginFrame() OVERRIDE; | 104 virtual void WillBeginFrame() OVERRIDE; |
| 99 virtual void DidBeginFrame() OVERRIDE; | 105 virtual void DidBeginFrame() OVERRIDE; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 121 | 127 |
| 122 bool threaded_; | 128 bool threaded_; |
| 123 bool suppress_schedule_composite_; | 129 bool suppress_schedule_composite_; |
| 124 RenderWidget* widget_; | 130 RenderWidget* widget_; |
| 125 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 131 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 126 }; | 132 }; |
| 127 | 133 |
| 128 } // namespace content | 134 } // namespace content |
| 129 | 135 |
| 130 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 136 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |