| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 void setContentsNeedsDisplay(); | 219 void setContentsNeedsDisplay(); |
| 220 | 220 |
| 221 // Set that the position/size of the contents (image or video). | 221 // Set that the position/size of the contents (image or video). |
| 222 IntRect contentsRect() const { return m_contentsRect; } | 222 IntRect contentsRect() const { return m_contentsRect; } |
| 223 void setContentsRect(const IntRect&); | 223 void setContentsRect(const IntRect&); |
| 224 | 224 |
| 225 // Return true if the animation is handled by the compositing system. If thi
s returns | 225 // Return true if the animation is handled by the compositing system. If thi
s returns |
| 226 // false, the animation will be run by AnimationController. | 226 // false, the animation will be run by AnimationController. |
| 227 // These methods handle both transitions and keyframe animations. | 227 // These methods handle both transitions and keyframe animations. |
| 228 bool addAnimation(WebKit::WebAnimation*); | 228 bool addAnimation(PassOwnPtr<WebKit::WebAnimation>); |
| 229 void pauseAnimation(int animationId, double /*timeOffset*/); | 229 void pauseAnimation(int animationId, double /*timeOffset*/); |
| 230 void removeAnimation(int animationId); | 230 void removeAnimation(int animationId); |
| 231 | 231 |
| 232 void suspendAnimations(double time); | 232 void suspendAnimations(double time); |
| 233 void resumeAnimations(); | 233 void resumeAnimations(); |
| 234 | 234 |
| 235 // Layer contents | 235 // Layer contents |
| 236 void setContentsToImage(Image*); | 236 void setContentsToImage(Image*); |
| 237 void setContentsToNinePatch(Image*, const IntRect& aperture); | 237 void setContentsToNinePatch(Image*, const IntRect& aperture); |
| 238 bool shouldDirectlyCompositeImage(Image*) const { return true; } | 238 bool shouldDirectlyCompositeImage(Image*) const { return true; } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 420 |
| 421 | 421 |
| 422 } // namespace WebCore | 422 } // namespace WebCore |
| 423 | 423 |
| 424 #ifndef NDEBUG | 424 #ifndef NDEBUG |
| 425 // Outside the WebCore namespace for ease of invocation from gdb. | 425 // Outside the WebCore namespace for ease of invocation from gdb. |
| 426 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 426 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
| 427 #endif | 427 #endif |
| 428 | 428 |
| 429 #endif // GraphicsLayer_h | 429 #endif // GraphicsLayer_h |
| OLD | NEW |