| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 float new_page_scale, | 106 float new_page_scale, |
| 107 double duration_sec); | 107 double duration_sec); |
| 108 virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristics); | 108 virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristics); |
| 109 virtual void setNeedsAnimate(); | 109 virtual void setNeedsAnimate(); |
| 110 virtual bool commitRequested() const; | 110 virtual bool commitRequested() const; |
| 111 virtual void didStopFlinging(); | 111 virtual void didStopFlinging(); |
| 112 virtual void compositeAndReadbackAsync( | 112 virtual void compositeAndReadbackAsync( |
| 113 blink::WebCompositeAndReadbackAsyncCallback* callback); | 113 blink::WebCompositeAndReadbackAsyncCallback* callback); |
| 114 virtual void finishAllRendering(); | 114 virtual void finishAllRendering(); |
| 115 virtual void setDeferCommits(bool defer_commits); | 115 virtual void setDeferCommits(bool defer_commits); |
| 116 virtual void registerForAnimations(blink::WebLayer* layer); | |
| 117 virtual void registerViewportLayers( | 116 virtual void registerViewportLayers( |
| 118 const blink::WebLayer* overscrollElasticityLayer, | 117 const blink::WebLayer* overscrollElasticityLayer, |
| 119 const blink::WebLayer* pageScaleLayer, | 118 const blink::WebLayer* pageScaleLayer, |
| 120 const blink::WebLayer* innerViewportScrollLayer, | 119 const blink::WebLayer* innerViewportScrollLayer, |
| 121 const blink::WebLayer* outerViewportScrollLayer) override; | 120 const blink::WebLayer* outerViewportScrollLayer) override; |
| 122 virtual void clearViewportLayers() override; | 121 virtual void clearViewportLayers() override; |
| 123 virtual void registerSelection(const blink::WebSelection& selection) override; | 122 virtual void registerSelection(const blink::WebSelection& selection) override; |
| 124 virtual void clearSelection() override; | 123 virtual void clearSelection() override; |
| 125 virtual int layerTreeId() const; | 124 virtual int layerTreeId() const; |
| 126 virtual void setShowFPSCounter(bool show); | 125 virtual void setShowFPSCounter(bool show); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 182 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 184 | 183 |
| 185 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 184 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
| 186 | 185 |
| 187 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 186 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 188 }; | 187 }; |
| 189 | 188 |
| 190 } // namespace content | 189 } // namespace content |
| 191 | 190 |
| 192 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 191 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |