| 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 setDeferCommits(bool defer_commits); | 112 virtual void setDeferCommits(bool defer_commits); |
| 113 virtual void registerForAnimations(blink::WebLayer* layer); | 113 virtual void registerForAnimations(blink::WebLayer* layer); |
| 114 virtual void registerViewportLayers( | 114 virtual void registerViewportLayers( |
| 115 const blink::WebLayer* overscrollElasticityLayer, | 115 const blink::WebLayer* overscrollElasticityLayer, |
| 116 const blink::WebLayer* pageScaleLayer, | 116 const blink::WebLayer* pageScaleLayer, |
| 117 const blink::WebLayer* innerViewportScrollLayer, | 117 const blink::WebLayer* innerViewportScrollLayer, |
| 118 const blink::WebLayer* outerViewportScrollLayer) override; | 118 const blink::WebLayer* outerViewportScrollLayer) override; |
| 119 virtual void clearViewportLayers() override; | 119 virtual void clearViewportLayers() override; |
| 120 virtual void registerSelection(const blink::WebSelection& selection) override; | 120 virtual void registerSelection(const blink::WebSelection& selection) override; |
| 121 virtual void clearSelection() override; | 121 virtual void clearSelection() override; |
| 122 virtual int layerTreeId() const; |
| 122 virtual void setShowFPSCounter(bool show); | 123 virtual void setShowFPSCounter(bool show); |
| 123 virtual void setShowPaintRects(bool show); | 124 virtual void setShowPaintRects(bool show); |
| 124 virtual void setShowDebugBorders(bool show); | 125 virtual void setShowDebugBorders(bool show); |
| 125 virtual void setContinuousPaintingEnabled(bool enabled); | 126 virtual void setContinuousPaintingEnabled(bool enabled); |
| 126 virtual void setShowScrollBottleneckRects(bool show); | 127 virtual void setShowScrollBottleneckRects(bool show); |
| 127 | 128 |
| 128 virtual void updateTopControlsState(blink::WebTopControlsState constraints, | 129 virtual void updateTopControlsState(blink::WebTopControlsState constraints, |
| 129 blink::WebTopControlsState current, | 130 blink::WebTopControlsState current, |
| 130 bool animate); | 131 bool animate); |
| 131 virtual void setTopControlsHeight(float height, bool shrink); | 132 virtual void setTopControlsHeight(float height, bool shrink); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 180 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 180 | 181 |
| 181 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 182 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
| 182 | 183 |
| 183 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 184 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 184 }; | 185 }; |
| 185 | 186 |
| 186 } // namespace content | 187 } // namespace content |
| 187 | 188 |
| 188 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 189 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |