| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); | 103 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); |
| 104 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); | 104 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); |
| 105 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); | 105 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); |
| 106 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | 106 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); |
| 107 void SetPaintedDeviceScaleFactor(float device_scale); | 107 void SetPaintedDeviceScaleFactor(float device_scale); |
| 108 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); | 108 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); |
| 109 | 109 |
| 110 // WebLayerTreeView implementation. | 110 // WebLayerTreeView implementation. |
| 111 void setRootLayer(const blink::WebLayer& layer) override; | 111 void setRootLayer(const blink::WebLayer& layer) override; |
| 112 void clearRootLayer() override; | 112 void clearRootLayer() override; |
| 113 void attachCompositorAnimationTimeline( | 113 cc::AnimationHost* compositorAnimationHost() override; |
| 114 cc::AnimationTimeline* compositor_timeline) override; | |
| 115 void detachCompositorAnimationTimeline( | |
| 116 cc::AnimationTimeline* compositor_timeline) override; | |
| 117 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 114 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
| 118 blink::WebSize getViewportSize() const override; | 115 blink::WebSize getViewportSize() const override; |
| 119 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 116 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
| 120 const blink::WebFloatPoint& point) const; | 117 const blink::WebFloatPoint& point) const; |
| 121 void setDeviceScaleFactor(float device_scale) override; | 118 void setDeviceScaleFactor(float device_scale) override; |
| 122 void setBackgroundColor(blink::WebColor color) override; | 119 void setBackgroundColor(blink::WebColor color) override; |
| 123 void setHasTransparentBackground(bool transparent) override; | 120 void setHasTransparentBackground(bool transparent) override; |
| 124 void setVisible(bool visible) override; | 121 void setVisible(bool visible) override; |
| 125 void setPageScaleFactorAndLimits(float page_scale_factor, | 122 void setPageScaleFactorAndLimits(float page_scale_factor, |
| 126 float minimum, | 123 float minimum, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 229 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 233 | 230 |
| 234 RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 231 RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
| 235 | 232 |
| 236 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 233 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 237 }; | 234 }; |
| 238 | 235 |
| 239 } // namespace content | 236 } // namespace content |
| 240 | 237 |
| 241 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 238 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |