| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 // Some GraphicsLayers paint only the foreground or the background content | 183 // Some GraphicsLayers paint only the foreground or the background content |
| 184 void setPaintingPhase(GraphicsLayerPaintingPhase); | 184 void setPaintingPhase(GraphicsLayerPaintingPhase); |
| 185 | 185 |
| 186 void setNeedsDisplay(); | 186 void setNeedsDisplay(); |
| 187 // Mark the given rect (in layer coords) as needing display. Never goes deep
. | 187 // Mark the given rect (in layer coords) as needing display. Never goes deep
. |
| 188 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason); | 188 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason); |
| 189 | 189 |
| 190 void setContentsNeedsDisplay(); | 190 void setContentsNeedsDisplay(); |
| 191 | 191 |
| 192 // If |visualRect| is not nullptr, it contains all pixels within the Graphic
sLayer which might be painted into by | 192 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation
Reason); |
| 193 // the display item client, in coordinate space of the GraphicsLayer. | |
| 194 // |visualRect| can be nullptr if we know it's unchanged and PaintController
has cached the previous value. | |
| 195 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation
Reason, const IntRect* visualRect); | |
| 196 | 193 |
| 197 // Set that the position/size of the contents (image or video). | 194 // Set that the position/size of the contents (image or video). |
| 198 void setContentsRect(const IntRect&); | 195 void setContentsRect(const IntRect&); |
| 199 | 196 |
| 200 // Return true if the animation is handled by the compositing system. If thi
s returns | 197 // Return true if the animation is handled by the compositing system. If thi
s returns |
| 201 // false, the animation will be run by AnimationController. | 198 // false, the animation will be run by AnimationController. |
| 202 // These methods handle both transitions and keyframe animations. | 199 // These methods handle both transitions and keyframe animations. |
| 203 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); | 200 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); |
| 204 void pauseAnimation(int animationId, double /*timeOffset*/); | 201 void pauseAnimation(int animationId, double /*timeOffset*/); |
| 205 void removeAnimation(int animationId); | 202 void removeAnimation(int animationId); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 }; | 383 }; |
| 387 | 384 |
| 388 } // namespace blink | 385 } // namespace blink |
| 389 | 386 |
| 390 #ifndef NDEBUG | 387 #ifndef NDEBUG |
| 391 // Outside the blink namespace for ease of invocation from gdb. | 388 // Outside the blink namespace for ease of invocation from gdb. |
| 392 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 389 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 393 #endif | 390 #endif |
| 394 | 391 |
| 395 #endif // GraphicsLayer_h | 392 #endif // GraphicsLayer_h |
| OLD | NEW |