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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 void SetSurfaceIdNamespace(uint32_t surface_id_namespace); | 92 void SetSurfaceIdNamespace(uint32_t surface_id_namespace); |
93 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | 93 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); |
94 cc::ManagedMemoryPolicy GetGpuMemoryPolicy( | 94 cc::ManagedMemoryPolicy GetGpuMemoryPolicy( |
95 const cc::ManagedMemoryPolicy& policy); | 95 const cc::ManagedMemoryPolicy& policy); |
96 void SetPaintedDeviceScaleFactor(float device_scale); | 96 void SetPaintedDeviceScaleFactor(float device_scale); |
97 | 97 |
98 // WebLayerTreeView implementation. | 98 // WebLayerTreeView implementation. |
99 void setRootLayer(const blink::WebLayer& layer) override; | 99 void setRootLayer(const blink::WebLayer& layer) override; |
100 void clearRootLayer() override; | 100 void clearRootLayer() override; |
101 void attachCompositorAnimationTimeline( | 101 void attachCompositorAnimationTimeline( |
102 blink::WebCompositorAnimationTimeline* compositor_timeline) override; | 102 cc::AnimationTimeline* compositor_timeline) override; |
103 void detachCompositorAnimationTimeline( | 103 void detachCompositorAnimationTimeline( |
104 blink::WebCompositorAnimationTimeline* compositor_timeline) override; | 104 cc::AnimationTimeline* compositor_timeline) override; |
105 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 105 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
106 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 106 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
107 const blink::WebFloatPoint& point) const; | 107 const blink::WebFloatPoint& point) const; |
108 void setDeviceScaleFactor(float device_scale) override; | 108 void setDeviceScaleFactor(float device_scale) override; |
109 void setBackgroundColor(blink::WebColor color) override; | 109 void setBackgroundColor(blink::WebColor color) override; |
110 void setHasTransparentBackground(bool transparent) override; | 110 void setHasTransparentBackground(bool transparent) override; |
111 void setVisible(bool visible) override; | 111 void setVisible(bool visible) override; |
112 void setPageScaleFactorAndLimits(float page_scale_factor, | 112 void setPageScaleFactorAndLimits(float page_scale_factor, |
113 float minimum, | 113 float minimum, |
114 float maximum) override; | 114 float maximum) override; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 215 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
216 | 216 |
217 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 217 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
218 | 218 |
219 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 219 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
220 }; | 220 }; |
221 | 221 |
222 } // namespace content | 222 } // namespace content |
223 | 223 |
224 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 224 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |