| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void NotifyInputThrottledUntilCommit(); | 106 void NotifyInputThrottledUntilCommit(); |
| 107 const cc::Layer* GetRootLayer() const; | 107 const cc::Layer* GetRootLayer() const; |
| 108 int ScheduleMicroBenchmark( | 108 int ScheduleMicroBenchmark( |
| 109 const std::string& name, | 109 const std::string& name, |
| 110 std::unique_ptr<base::Value> value, | 110 std::unique_ptr<base::Value> value, |
| 111 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); | 111 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); |
| 112 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); | 112 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); |
| 113 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); | 113 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); |
| 114 void SetPaintedDeviceScaleFactor(float device_scale); | 114 void SetPaintedDeviceScaleFactor(float device_scale); |
| 115 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); | 115 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); |
| 116 void SetIsForOopif(bool is_for_oopif); |
| 116 | 117 |
| 117 // WebLayerTreeView implementation. | 118 // WebLayerTreeView implementation. |
| 118 void setRootLayer(const blink::WebLayer& layer) override; | 119 void setRootLayer(const blink::WebLayer& layer) override; |
| 119 void clearRootLayer() override; | 120 void clearRootLayer() override; |
| 120 cc::AnimationHost* compositorAnimationHost() override; | 121 cc::AnimationHost* compositorAnimationHost() override; |
| 121 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 122 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
| 122 blink::WebSize getViewportSize() const override; | 123 blink::WebSize getViewportSize() const override; |
| 123 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 124 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
| 124 const blink::WebFloatPoint& point) const; | 125 const blink::WebFloatPoint& point) const; |
| 125 void setDeviceScaleFactor(float device_scale) override; | 126 void setDeviceScaleFactor(float device_scale) override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 150 const blink::WebLayer* outerViewportScrollLayer) override; | 151 const blink::WebLayer* outerViewportScrollLayer) override; |
| 151 void clearViewportLayers() override; | 152 void clearViewportLayers() override; |
| 152 void registerSelection(const blink::WebSelection& selection) override; | 153 void registerSelection(const blink::WebSelection& selection) override; |
| 153 void clearSelection() override; | 154 void clearSelection() override; |
| 154 void setMutatorClient( | 155 void setMutatorClient( |
| 155 std::unique_ptr<blink::WebCompositorMutatorClient>) override; | 156 std::unique_ptr<blink::WebCompositorMutatorClient>) override; |
| 156 void forceRecalculateRasterScales() override; | 157 void forceRecalculateRasterScales() override; |
| 157 void setEventListenerProperties( | 158 void setEventListenerProperties( |
| 158 blink::WebEventListenerClass eventClass, | 159 blink::WebEventListenerClass eventClass, |
| 159 blink::WebEventListenerProperties properties) override; | 160 blink::WebEventListenerProperties properties) override; |
| 161 void updateTouchRectsForSubframeIfNecessary() override; |
| 160 blink::WebEventListenerProperties eventListenerProperties( | 162 blink::WebEventListenerProperties eventListenerProperties( |
| 161 blink::WebEventListenerClass eventClass) const override; | 163 blink::WebEventListenerClass eventClass) const override; |
| 162 void setHaveScrollEventHandlers(bool) override; | 164 void setHaveScrollEventHandlers(bool) override; |
| 163 bool haveScrollEventHandlers() const override; | 165 bool haveScrollEventHandlers() const override; |
| 164 int layerTreeId() const override; | 166 int layerTreeId() const override; |
| 165 void setShowFPSCounter(bool show) override; | 167 void setShowFPSCounter(bool show) override; |
| 166 void setShowPaintRects(bool show) override; | 168 void setShowPaintRects(bool show) override; |
| 167 void setShowDebugBorders(bool show) override; | 169 void setShowDebugBorders(bool show) override; |
| 168 void setShowScrollBottleneckRects(bool show) override; | 170 void setShowScrollBottleneckRects(bool show) override; |
| 169 | 171 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 bool CompositeIsSynchronous() const; | 222 bool CompositeIsSynchronous() const; |
| 221 void SynchronouslyComposite(); | 223 void SynchronouslyComposite(); |
| 222 | 224 |
| 223 int num_failed_recreate_attempts_; | 225 int num_failed_recreate_attempts_; |
| 224 RenderWidgetCompositorDelegate* const delegate_; | 226 RenderWidgetCompositorDelegate* const delegate_; |
| 225 CompositorDependencies* const compositor_deps_; | 227 CompositorDependencies* const compositor_deps_; |
| 226 const bool threaded_; | 228 const bool threaded_; |
| 227 std::unique_ptr<cc::AnimationHost> animation_host_; | 229 std::unique_ptr<cc::AnimationHost> animation_host_; |
| 228 std::unique_ptr<cc::LayerTreeHost> layer_tree_host_; | 230 std::unique_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 229 bool never_visible_; | 231 bool never_visible_; |
| 232 bool is_for_oopif_; |
| 230 | 233 |
| 231 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 234 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 232 | 235 |
| 233 cc::FrameSinkId frame_sink_id_; | 236 cc::FrameSinkId frame_sink_id_; |
| 234 | 237 |
| 235 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 238 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 236 }; | 239 }; |
| 237 | 240 |
| 238 } // namespace content | 241 } // namespace content |
| 239 | 242 |
| 240 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 243 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |