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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
115 void startPageScaleAnimation(const blink::WebPoint& destination, | 115 void startPageScaleAnimation(const blink::WebPoint& destination, |
116 bool use_anchor, | 116 bool use_anchor, |
117 float new_page_scale, | 117 float new_page_scale, |
118 double duration_sec) override; | 118 double duration_sec) override; |
| 119 bool hasPendingPageScaleAnimation() const override; |
119 void heuristicsForGpuRasterizationUpdated(bool matches_heuristics) override; | 120 void heuristicsForGpuRasterizationUpdated(bool matches_heuristics) override; |
120 void setNeedsAnimate() override; | 121 void setNeedsAnimate() override; |
121 void setNeedsBeginFrame() override; | 122 void setNeedsBeginFrame() override; |
122 void setNeedsCompositorUpdate() override; | 123 void setNeedsCompositorUpdate() override; |
123 void didStopFlinging() override; | 124 void didStopFlinging() override; |
124 void layoutAndPaintAsync( | 125 void layoutAndPaintAsync( |
125 blink::WebLayoutAndPaintAsyncCallback* callback) override; | 126 blink::WebLayoutAndPaintAsyncCallback* callback) override; |
126 void compositeAndReadbackAsync( | 127 void compositeAndReadbackAsync( |
127 blink::WebCompositeAndReadbackAsyncCallback* callback) override; | 128 blink::WebCompositeAndReadbackAsyncCallback* callback) override; |
128 void setDeferCommits(bool defer_commits) override; | 129 void setDeferCommits(bool defer_commits) override; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 216 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
216 | 217 |
217 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 218 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
218 | 219 |
219 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 220 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
220 }; | 221 }; |
221 | 222 |
222 } // namespace content | 223 } // namespace content |
223 | 224 |
224 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 225 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |