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

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: fix compile error on mac 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
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.
skobes 2015/12/18 19:05:58 Explain how aborting is different from removing.
ymalik 2015/12/18 19:35:47 Done.
164 virtual void abortAnimation(int animationId) = 0;
165
163 // Returns true if this layer has any active animations - useful for tests. 166 // Returns true if this layer has any active animations - useful for tests.
164 virtual bool hasActiveAnimation() = 0; 167 virtual bool hasActiveAnimation() = 0;
165 168
166 // If a scroll parent is set, this layer will inherit its parent's scroll 169 // 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 170 // delta and offset even though it will not be a descendant of the scroll
168 // in the layer hierarchy. 171 // in the layer hierarchy.
169 virtual void setScrollParent(WebLayer*) = 0; 172 virtual void setScrollParent(WebLayer*) = 0;
170 173
171 // A layer will not respect any clips established by layers between it and 174 // 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. 175 // 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; 254 virtual void setElementId(uint64_t) = 0;
252 virtual uint64_t elementId() const = 0; 255 virtual uint64_t elementId() const = 0;
253 256
254 virtual void setCompositorMutableProperties(uint32_t) = 0; 257 virtual void setCompositorMutableProperties(uint32_t) = 0;
255 virtual uint32_t compositorMutableProperties() const = 0; 258 virtual uint32_t compositorMutableProperties() const = 0;
256 }; 259 };
257 260
258 } // namespace blink 261 } // namespace blink
259 262
260 #endif // WebLayer_h 263 #endif // WebLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698