Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: Plumb pseudo touch-event-rects for OOPIFs to compositor. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const cc::Layer* GetRootLayer() const; 102 const cc::Layer* GetRootLayer() const;
103 int ScheduleMicroBenchmark( 103 int ScheduleMicroBenchmark(
104 const std::string& name, 104 const std::string& name,
105 std::unique_ptr<base::Value> value, 105 std::unique_ptr<base::Value> value,
106 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); 106 const base::Callback<void(std::unique_ptr<base::Value>)>& callback);
107 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); 107 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value);
108 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); 108 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id);
109 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); 109 void OnHandleCompositorProto(const std::vector<uint8_t>& proto);
110 void SetPaintedDeviceScaleFactor(float device_scale); 110 void SetPaintedDeviceScaleFactor(float device_scale);
111 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); 111 void SetDeviceColorSpace(const gfx::ColorSpace& color_space);
112 void SetIsForOopif(bool is_for_oopif);
112 113
113 // WebLayerTreeView implementation. 114 // WebLayerTreeView implementation.
114 void setRootLayer(const blink::WebLayer& layer) override; 115 void setRootLayer(const blink::WebLayer& layer) override;
115 void clearRootLayer() override; 116 void clearRootLayer() override;
116 cc::AnimationHost* compositorAnimationHost() override; 117 cc::AnimationHost* compositorAnimationHost() override;
117 void setViewportSize(const blink::WebSize& device_viewport_size) override; 118 void setViewportSize(const blink::WebSize& device_viewport_size) override;
118 blink::WebSize getViewportSize() const override; 119 blink::WebSize getViewportSize() const override;
119 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( 120 virtual blink::WebFloatPoint adjustEventPointForPinchZoom(
120 const blink::WebFloatPoint& point) const; 121 const blink::WebFloatPoint& point) const;
121 void setDeviceScaleFactor(float device_scale) override; 122 void setDeviceScaleFactor(float device_scale) override;
(...skipping 24 matching lines...) Expand all
146 const blink::WebLayer* outerViewportScrollLayer) override; 147 const blink::WebLayer* outerViewportScrollLayer) override;
147 void clearViewportLayers() override; 148 void clearViewportLayers() override;
148 void registerSelection(const blink::WebSelection& selection) override; 149 void registerSelection(const blink::WebSelection& selection) override;
149 void clearSelection() override; 150 void clearSelection() override;
150 void setMutatorClient( 151 void setMutatorClient(
151 std::unique_ptr<blink::WebCompositorMutatorClient>) override; 152 std::unique_ptr<blink::WebCompositorMutatorClient>) override;
152 void forceRecalculateRasterScales() override; 153 void forceRecalculateRasterScales() override;
153 void setEventListenerProperties( 154 void setEventListenerProperties(
154 blink::WebEventListenerClass eventClass, 155 blink::WebEventListenerClass eventClass,
155 blink::WebEventListenerProperties properties) override; 156 blink::WebEventListenerProperties properties) override;
157 void updateTouchRectsForSubframeIfNecessary() override;
156 blink::WebEventListenerProperties eventListenerProperties( 158 blink::WebEventListenerProperties eventListenerProperties(
157 blink::WebEventListenerClass eventClass) const override; 159 blink::WebEventListenerClass eventClass) const override;
158 void setHaveScrollEventHandlers(bool) override; 160 void setHaveScrollEventHandlers(bool) override;
159 bool haveScrollEventHandlers() const override; 161 bool haveScrollEventHandlers() const override;
160 int layerTreeId() const override; 162 int layerTreeId() const override;
161 void setShowFPSCounter(bool show) override; 163 void setShowFPSCounter(bool show) override;
162 void setShowPaintRects(bool show) override; 164 void setShowPaintRects(bool show) override;
163 void setShowDebugBorders(bool show) override; 165 void setShowDebugBorders(bool show) override;
164 void setShowScrollBottleneckRects(bool show) override; 166 void setShowScrollBottleneckRects(bool show) override;
165 167
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 bool CompositeIsSynchronous() const; 223 bool CompositeIsSynchronous() const;
222 void SynchronouslyComposite(); 224 void SynchronouslyComposite();
223 225
224 int num_failed_recreate_attempts_; 226 int num_failed_recreate_attempts_;
225 RenderWidgetCompositorDelegate* const delegate_; 227 RenderWidgetCompositorDelegate* const delegate_;
226 CompositorDependencies* const compositor_deps_; 228 CompositorDependencies* const compositor_deps_;
227 const bool threaded_; 229 const bool threaded_;
228 std::unique_ptr<cc::AnimationHost> animation_host_; 230 std::unique_ptr<cc::AnimationHost> animation_host_;
229 std::unique_ptr<cc::LayerTreeHost> layer_tree_host_; 231 std::unique_ptr<cc::LayerTreeHost> layer_tree_host_;
230 bool never_visible_; 232 bool never_visible_;
233 bool is_for_oopif_;
231 234
232 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 235 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
233 236
234 RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; 237 RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_;
235 238
236 cc::FrameSinkId frame_sink_id_; 239 cc::FrameSinkId frame_sink_id_;
237 240
238 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 241 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
239 }; 242 };
240 243
241 } // namespace content 244 } // namespace content
242 245
243 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 246 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698