| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void NotifyInputThrottledUntilCommit(); | 96 void NotifyInputThrottledUntilCommit(); |
| 97 const cc::Layer* GetRootLayer() const; | 97 const cc::Layer* GetRootLayer() const; |
| 98 int ScheduleMicroBenchmark( | 98 int ScheduleMicroBenchmark( |
| 99 const std::string& name, | 99 const std::string& name, |
| 100 std::unique_ptr<base::Value> value, | 100 std::unique_ptr<base::Value> value, |
| 101 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); | 101 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); |
| 102 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); | 102 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); |
| 103 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); | 103 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); |
| 104 void SetPaintedDeviceScaleFactor(float device_scale); | 104 void SetPaintedDeviceScaleFactor(float device_scale); |
| 105 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); | 105 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); |
| 106 void SetIsForOopif(bool is_for_oopif); | |
| 107 | 106 |
| 108 // WebLayerTreeView implementation. | 107 // WebLayerTreeView implementation. |
| 109 void setRootLayer(const blink::WebLayer& layer) override; | 108 void setRootLayer(const blink::WebLayer& layer) override; |
| 110 void clearRootLayer() override; | 109 void clearRootLayer() override; |
| 111 cc::AnimationHost* compositorAnimationHost() override; | 110 cc::AnimationHost* compositorAnimationHost() override; |
| 112 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 111 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
| 113 blink::WebSize getViewportSize() const override; | 112 blink::WebSize getViewportSize() const override; |
| 114 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 113 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
| 115 const blink::WebFloatPoint& point) const; | 114 const blink::WebFloatPoint& point) const; |
| 116 void setDeviceScaleFactor(float device_scale) override; | 115 void setDeviceScaleFactor(float device_scale) override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 141 const blink::WebLayer* outerViewportScrollLayer) override; | 140 const blink::WebLayer* outerViewportScrollLayer) override; |
| 142 void clearViewportLayers() override; | 141 void clearViewportLayers() override; |
| 143 void registerSelection(const blink::WebSelection& selection) override; | 142 void registerSelection(const blink::WebSelection& selection) override; |
| 144 void clearSelection() override; | 143 void clearSelection() override; |
| 145 void setMutatorClient( | 144 void setMutatorClient( |
| 146 std::unique_ptr<blink::WebCompositorMutatorClient>) override; | 145 std::unique_ptr<blink::WebCompositorMutatorClient>) override; |
| 147 void forceRecalculateRasterScales() override; | 146 void forceRecalculateRasterScales() override; |
| 148 void setEventListenerProperties( | 147 void setEventListenerProperties( |
| 149 blink::WebEventListenerClass eventClass, | 148 blink::WebEventListenerClass eventClass, |
| 150 blink::WebEventListenerProperties properties) override; | 149 blink::WebEventListenerProperties properties) override; |
| 151 void updateTouchRectsForSubframeIfNecessary() override; | |
| 152 blink::WebEventListenerProperties eventListenerProperties( | 150 blink::WebEventListenerProperties eventListenerProperties( |
| 153 blink::WebEventListenerClass eventClass) const override; | 151 blink::WebEventListenerClass eventClass) const override; |
| 154 void setHaveScrollEventHandlers(bool) override; | 152 void setHaveScrollEventHandlers(bool) override; |
| 155 bool haveScrollEventHandlers() const override; | 153 bool haveScrollEventHandlers() const override; |
| 156 int layerTreeId() const override; | 154 int layerTreeId() const override; |
| 157 void setShowFPSCounter(bool show) override; | 155 void setShowFPSCounter(bool show) override; |
| 158 void setShowPaintRects(bool show) override; | 156 void setShowPaintRects(bool show) override; |
| 159 void setShowDebugBorders(bool show) override; | 157 void setShowDebugBorders(bool show) override; |
| 160 void setShowScrollBottleneckRects(bool show) override; | 158 void setShowScrollBottleneckRects(bool show) override; |
| 161 | 159 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 bool CompositeIsSynchronous() const; | 211 bool CompositeIsSynchronous() const; |
| 214 void SynchronouslyComposite(); | 212 void SynchronouslyComposite(); |
| 215 | 213 |
| 216 int num_failed_recreate_attempts_; | 214 int num_failed_recreate_attempts_; |
| 217 RenderWidgetCompositorDelegate* const delegate_; | 215 RenderWidgetCompositorDelegate* const delegate_; |
| 218 CompositorDependencies* const compositor_deps_; | 216 CompositorDependencies* const compositor_deps_; |
| 219 const bool threaded_; | 217 const bool threaded_; |
| 220 std::unique_ptr<cc::AnimationHost> animation_host_; | 218 std::unique_ptr<cc::AnimationHost> animation_host_; |
| 221 std::unique_ptr<cc::LayerTreeHost> layer_tree_host_; | 219 std::unique_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 222 bool never_visible_; | 220 bool never_visible_; |
| 223 bool is_for_oopif_; | |
| 224 | 221 |
| 225 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 222 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 226 | 223 |
| 227 cc::FrameSinkId frame_sink_id_; | 224 cc::FrameSinkId frame_sink_id_; |
| 228 | 225 |
| 229 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 226 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 230 }; | 227 }; |
| 231 | 228 |
| 232 } // namespace content | 229 } // namespace content |
| 233 | 230 |
| 234 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 231 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |