| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 void setNeedsDisplay(); | 184 void setNeedsDisplay(); |
| 185 // Mark the given rect (in layer coords) as needing display. Never goes deep
. | 185 // Mark the given rect (in layer coords) as needing display. Never goes deep
. |
| 186 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason); | 186 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason); |
| 187 | 187 |
| 188 void setContentsNeedsDisplay(); | 188 void setContentsNeedsDisplay(); |
| 189 | 189 |
| 190 // Set that the position/size of the contents (image or video). | 190 // Set that the position/size of the contents (image or video). |
| 191 void setContentsRect(const IntRect&); | 191 void setContentsRect(const IntRect&); |
| 192 | 192 |
| 193 // If this layer may be affected by a worker animation, then it must have |
| 194 // the property registered via this call. |
| 195 void addAnimatedProperty(const String&); |
| 196 |
| 197 // Clears any properties added via |addAnimatedProperty|. |
| 198 void clearAnimatedProperties(); |
| 199 |
| 193 // Return true if the animation is handled by the compositing system. If thi
s returns | 200 // Return true if the animation is handled by the compositing system. If thi
s returns |
| 194 // false, the animation will be run by AnimationController. | 201 // false, the animation will be run by AnimationController. |
| 195 // These methods handle both transitions and keyframe animations. | 202 // These methods handle both transitions and keyframe animations. |
| 196 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); | 203 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); |
| 197 void pauseAnimation(int animationId, double /*timeOffset*/); | 204 void pauseAnimation(int animationId, double /*timeOffset*/); |
| 198 void removeAnimation(int animationId); | 205 void removeAnimation(int animationId); |
| 199 | 206 |
| 200 // Layer contents | 207 // Layer contents |
| 201 void setContentsToImage(Image*); | 208 void setContentsToImage(Image*); |
| 202 void setContentsToNinePatch(Image*, const IntRect& aperture); | 209 void setContentsToNinePatch(Image*, const IntRect& aperture); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 }; | 351 }; |
| 345 | 352 |
| 346 } // namespace blink | 353 } // namespace blink |
| 347 | 354 |
| 348 #ifndef NDEBUG | 355 #ifndef NDEBUG |
| 349 // Outside the WebCore namespace for ease of invocation from gdb. | 356 // Outside the WebCore namespace for ease of invocation from gdb. |
| 350 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 357 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 351 #endif | 358 #endif |
| 352 | 359 |
| 353 #endif // GraphicsLayer_h | 360 #endif // GraphicsLayer_h |
| OLD | NEW |