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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 // Some GraphicsLayers paint only the foreground or the background content | 186 // Some GraphicsLayers paint only the foreground or the background content |
187 void setPaintingPhase(GraphicsLayerPaintingPhase); | 187 void setPaintingPhase(GraphicsLayerPaintingPhase); |
188 | 188 |
189 void setNeedsDisplay(); | 189 void setNeedsDisplay(); |
190 // Mark the given rect (in layer coords) as needing display. Never goes deep
. | 190 // Mark the given rect (in layer coords) as needing display. Never goes deep
. |
191 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason); | 191 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason); |
192 | 192 |
193 void setContentsNeedsDisplay(); | 193 void setContentsNeedsDisplay(); |
194 | 194 |
195 void invalidateDisplayItemClient(const DisplayItemClientWrapper&, PaintInval
idationReason, const IntRect& previousPaintInvalidationRect, const IntRect& newP
aintInvalidationRect); | 195 // If |visualRect| is not nullptr, it contains all pixels within the Graphic
sLayer which might be painted into by |
| 196 // the display item client, in coordinate space of the GraphicsLayer. |
| 197 // |visualRect| can be nullptr if we know it's unchanged and PaintController
has cached the previous value. |
| 198 void invalidateDisplayItemClient(const DisplayItemClientWrapper&, PaintInval
idationReason, const IntRect* visualRect); |
196 | 199 |
197 // Set that the position/size of the contents (image or video). | 200 // Set that the position/size of the contents (image or video). |
198 void setContentsRect(const IntRect&); | 201 void setContentsRect(const IntRect&); |
199 | 202 |
200 // Return true if the animation is handled by the compositing system. If thi
s returns | 203 // Return true if the animation is handled by the compositing system. If thi
s returns |
201 // false, the animation will be run by AnimationController. | 204 // false, the animation will be run by AnimationController. |
202 // These methods handle both transitions and keyframe animations. | 205 // These methods handle both transitions and keyframe animations. |
203 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); | 206 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); |
204 void pauseAnimation(int animationId, double /*timeOffset*/); | 207 void pauseAnimation(int animationId, double /*timeOffset*/); |
205 void removeAnimation(int animationId); | 208 void removeAnimation(int animationId); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 }; | 372 }; |
370 | 373 |
371 } // namespace blink | 374 } // namespace blink |
372 | 375 |
373 #ifndef NDEBUG | 376 #ifndef NDEBUG |
374 // Outside the blink namespace for ease of invocation from gdb. | 377 // Outside the blink namespace for ease of invocation from gdb. |
375 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 378 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
376 #endif | 379 #endif |
377 | 380 |
378 #endif // GraphicsLayer_h | 381 #endif // GraphicsLayer_h |
OLD | NEW |