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

Side by Side Diff: cc/blink/web_layer_impl.h

Issue 1534813004: Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years 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
« no previous file with comments | « cc/blink/web_compositor_animation_player_impl.cc ('k') | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_BLINK_WEB_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 blink::WebColor backgroundColor() const override; 102 blink::WebColor backgroundColor() const override;
103 void setFilters(const blink::WebFilterOperations& filters) override; 103 void setFilters(const blink::WebFilterOperations& filters) override;
104 void setBackgroundFilters(const blink::WebFilterOperations& filters) override; 104 void setBackgroundFilters(const blink::WebFilterOperations& filters) override;
105 void setAnimationDelegate( 105 void setAnimationDelegate(
106 blink::WebCompositorAnimationDelegate* delegate) override; 106 blink::WebCompositorAnimationDelegate* delegate) override;
107 bool addAnimation(blink::WebCompositorAnimation* animation) override; 107 bool addAnimation(blink::WebCompositorAnimation* animation) override;
108 void removeAnimation(int animation_id) override; 108 void removeAnimation(int animation_id) override;
109 void removeAnimation(int animation_id, 109 void removeAnimation(int animation_id,
110 blink::WebCompositorAnimation::TargetProperty) override; 110 blink::WebCompositorAnimation::TargetProperty) override;
111 void pauseAnimation(int animation_id, double time_offset) override; 111 void pauseAnimation(int animation_id, double time_offset) override;
112 void abortAnimation(int animation_id) override;
112 bool hasActiveAnimation() override; 113 bool hasActiveAnimation() override;
113 void setForceRenderSurface(bool force) override; 114 void setForceRenderSurface(bool force) override;
114 void setScrollPositionDouble(blink::WebDoublePoint position) override; 115 void setScrollPositionDouble(blink::WebDoublePoint position) override;
115 blink::WebDoublePoint scrollPositionDouble() const override; 116 blink::WebDoublePoint scrollPositionDouble() const override;
116 void setScrollCompensationAdjustment(blink::WebDoublePoint position) override; 117 void setScrollCompensationAdjustment(blink::WebDoublePoint position) override;
117 void setScrollClipLayer(blink::WebLayer* clip_layer) override; 118 void setScrollClipLayer(blink::WebLayer* clip_layer) override;
118 bool scrollable() const override; 119 bool scrollable() const override;
119 void setUserScrollable(bool horizontal, bool vertical) override; 120 void setUserScrollable(bool horizontal, bool vertical) override;
120 bool userScrollableHorizontal() const override; 121 bool userScrollableHorizontal() const override;
121 bool userScrollableVertical() const override; 122 bool userScrollableVertical() const override;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 163
163 private: 164 private:
164 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 165 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 167 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
167 }; 168 };
168 169
169 } // namespace cc_blink 170 } // namespace cc_blink
170 171
171 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ 172 #endif // CC_BLINK_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/web_compositor_animation_player_impl.cc ('k') | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698