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

Side by Side Diff: third_party/WebKit/public/platform/WebLayer.h

Issue 1548883002: Revert of Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
168 // Returns true if this layer has any active animations - useful for tests. 163 // Returns true if this layer has any active animations - useful for tests.
169 virtual bool hasActiveAnimation() = 0; 164 virtual bool hasActiveAnimation() = 0;
170 165
171 // If a scroll parent is set, this layer will inherit its parent's scroll 166 // If a scroll parent is set, this layer will inherit its parent's scroll
172 // delta and offset even though it will not be a descendant of the scroll 167 // delta and offset even though it will not be a descendant of the scroll
173 // in the layer hierarchy. 168 // in the layer hierarchy.
174 virtual void setScrollParent(WebLayer*) = 0; 169 virtual void setScrollParent(WebLayer*) = 0;
175 170
176 // A layer will not respect any clips established by layers between it and 171 // A layer will not respect any clips established by layers between it and
177 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. 172 // its nearest clipping ancestor. Note, the clip parent must be an ancestor.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 virtual void setElementId(uint64_t) = 0; 251 virtual void setElementId(uint64_t) = 0;
257 virtual uint64_t elementId() const = 0; 252 virtual uint64_t elementId() const = 0;
258 253
259 virtual void setCompositorMutableProperties(uint32_t) = 0; 254 virtual void setCompositorMutableProperties(uint32_t) = 0;
260 virtual uint32_t compositorMutableProperties() const = 0; 255 virtual uint32_t compositorMutableProperties() const = 0;
261 }; 256 };
262 257
263 } // namespace blink 258 } // namespace blink
264 259
265 #endif // WebLayer_h 260 #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