| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 213 |
| 214 void setContentsNeedsDisplay(); | 214 void setContentsNeedsDisplay(); |
| 215 | 215 |
| 216 // Set that the position/size of the contents (image or video). | 216 // Set that the position/size of the contents (image or video). |
| 217 IntRect contentsRect() const { return m_contentsRect; } | 217 IntRect contentsRect() const { return m_contentsRect; } |
| 218 void setContentsRect(const IntRect&); | 218 void setContentsRect(const IntRect&); |
| 219 | 219 |
| 220 // Return true if the animation is handled by the compositing system. If thi
s returns | 220 // Return true if the animation is handled by the compositing system. If thi
s returns |
| 221 // false, the animation will be run by AnimationController. | 221 // false, the animation will be run by AnimationController. |
| 222 // These methods handle both transitions and keyframe animations. | 222 // These methods handle both transitions and keyframe animations. |
| 223 bool addAnimation(WebKit::WebAnimation*); | 223 bool addAnimation(PassOwnPtr<WebKit::WebAnimation>); |
| 224 void pauseAnimation(int animationId, double /*timeOffset*/); | 224 void pauseAnimation(int animationId, double /*timeOffset*/); |
| 225 void removeAnimation(int animationId); | 225 void removeAnimation(int animationId); |
| 226 | 226 |
| 227 void suspendAnimations(double time); | 227 void suspendAnimations(double time); |
| 228 void resumeAnimations(); | 228 void resumeAnimations(); |
| 229 | 229 |
| 230 // Layer contents | 230 // Layer contents |
| 231 void setContentsToImage(Image*); | 231 void setContentsToImage(Image*); |
| 232 void setContentsToNinePatch(Image*, const IntRect& aperture); | 232 void setContentsToNinePatch(Image*, const IntRect& aperture); |
| 233 bool shouldDirectlyCompositeImage(Image*) const { return true; } | 233 bool shouldDirectlyCompositeImage(Image*) const { return true; } |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 | 411 |
| 412 | 412 |
| 413 } // namespace WebCore | 413 } // namespace WebCore |
| 414 | 414 |
| 415 #ifndef NDEBUG | 415 #ifndef NDEBUG |
| 416 // Outside the WebCore namespace for ease of invocation from gdb. | 416 // Outside the WebCore namespace for ease of invocation from gdb. |
| 417 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 417 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
| 418 #endif | 418 #endif |
| 419 | 419 |
| 420 #endif // GraphicsLayer_h | 420 #endif // GraphicsLayer_h |
| OLD | NEW |