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

Side by Side Diff: third_party/WebKit/public/platform/WebLayer.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 | « third_party/WebKit/public/platform/WebCompositorAnimationPlayer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // Removes all animations with the given id. 154 // Removes all animations with the given id.
155 virtual void removeAnimation(int animationId) = 0; 155 virtual void removeAnimation(int animationId) = 0;
156 156
157 // Removes all animations with the given id targeting the given property. 157 // Removes all animations with the given id targeting the given property.
158 virtual void removeAnimation(int animationId, WebCompositorAnimation::Target Property) = 0; 158 virtual void removeAnimation(int animationId, WebCompositorAnimation::Target Property) = 0;
159 159
160 // Pauses all animations with the given id. 160 // Pauses all animations with the given id.
161 virtual void pauseAnimation(int animationId, double timeOffset) = 0; 161 virtual void pauseAnimation(int animationId, double timeOffset) = 0;
162 162
163 // Aborts all animations with the given id. Different from removeAnimation
164 // in that aborting an animation stops it from affecting both the pending
165 // and active tree.
166 virtual void abortAnimation(int animationId) = 0;
167
163 // Returns true if this layer has any active animations - useful for tests. 168 // Returns true if this layer has any active animations - useful for tests.
164 virtual bool hasActiveAnimation() = 0; 169 virtual bool hasActiveAnimation() = 0;
165 170
166 // If a scroll parent is set, this layer will inherit its parent's scroll 171 // If a scroll parent is set, this layer will inherit its parent's scroll
167 // delta and offset even though it will not be a descendant of the scroll 172 // delta and offset even though it will not be a descendant of the scroll
168 // in the layer hierarchy. 173 // in the layer hierarchy.
169 virtual void setScrollParent(WebLayer*) = 0; 174 virtual void setScrollParent(WebLayer*) = 0;
170 175
171 // A layer will not respect any clips established by layers between it and 176 // A layer will not respect any clips established by layers between it and
172 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. 177 // its nearest clipping ancestor. Note, the clip parent must be an ancestor.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 virtual void setElementId(uint64_t) = 0; 256 virtual void setElementId(uint64_t) = 0;
252 virtual uint64_t elementId() const = 0; 257 virtual uint64_t elementId() const = 0;
253 258
254 virtual void setCompositorMutableProperties(uint32_t) = 0; 259 virtual void setCompositorMutableProperties(uint32_t) = 0;
255 virtual uint32_t compositorMutableProperties() const = 0; 260 virtual uint32_t compositorMutableProperties() const = 0;
256 }; 261 };
257 262
258 } // namespace blink 263 } // namespace blink
259 264
260 #endif // WebLayer_h 265 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebCompositorAnimationPlayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698