Chromium Code Reviews| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 | 112 |
| 113 // WebLayerTreeView implementation. | 113 // WebLayerTreeView implementation. |
| 114 cc::FrameSinkId getFrameSinkId() override; | |
|
Fady Samuel
2017/01/19 04:05:43
Return a const cc::FrameSinkId& instead?
xlai (Olivia)
2017/01/19 16:43:56
Can't do that. This function is overriding another
| |
| 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; |
| 122 void setBackgroundColor(blink::WebColor color) override; | 123 void setBackgroundColor(blink::WebColor color) override; |
| 123 void setHasTransparentBackground(bool transparent) override; | 124 void setHasTransparentBackground(bool transparent) override; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 234 RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 235 RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
| 235 | 236 |
| 236 cc::FrameSinkId frame_sink_id_; | 237 cc::FrameSinkId frame_sink_id_; |
| 237 | 238 |
| 238 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 239 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace content | 242 } // namespace content |
| 242 | 243 |
| 243 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 244 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |