| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 namespace blink { | 58 namespace blink { |
| 59 | 59 |
| 60 class FloatRect; | 60 class FloatRect; |
| 61 class GraphicsLayerFactory; | 61 class GraphicsLayerFactory; |
| 62 class GraphicsLayerFactoryChromium; | 62 class GraphicsLayerFactoryChromium; |
| 63 class Image; | 63 class Image; |
| 64 class LinkHighlight; | 64 class LinkHighlight; |
| 65 class JSONObject; | 65 class JSONObject; |
| 66 class PaintController; | 66 class PaintController; |
| 67 class ScrollableArea; | 67 class ScrollableArea; |
| 68 class WebCompositorAnimation; | 68 class CompositorAnimation; |
| 69 class WebLayer; | 69 class WebLayer; |
| 70 | 70 |
| 71 typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector; | 71 typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector; |
| 72 | 72 |
| 73 // GraphicsLayer is an abstraction for a rendering surface with backing store, | 73 // GraphicsLayer is an abstraction for a rendering surface with backing store, |
| 74 // which may have associated transformation and animations. | 74 // which may have associated transformation and animations. |
| 75 | 75 |
| 76 class PLATFORM_EXPORT GraphicsLayer : public WebCompositorAnimationDelegate, pub
lic WebLayerScrollClient, public cc::LayerClient, public DisplayItemClient { | 76 class PLATFORM_EXPORT GraphicsLayer : public WebCompositorAnimationDelegate, pub
lic WebLayerScrollClient, public cc::LayerClient, public DisplayItemClient { |
| 77 WTF_MAKE_NONCOPYABLE(GraphicsLayer); USING_FAST_MALLOC(GraphicsLayer); | 77 WTF_MAKE_NONCOPYABLE(GraphicsLayer); USING_FAST_MALLOC(GraphicsLayer); |
| 78 public: | 78 public: |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void setContentsNeedsDisplay(); | 189 void setContentsNeedsDisplay(); |
| 190 | 190 |
| 191 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation
Reason); | 191 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation
Reason); |
| 192 | 192 |
| 193 // Set that the position/size of the contents (image or video). | 193 // Set that the position/size of the contents (image or video). |
| 194 void setContentsRect(const IntRect&); | 194 void setContentsRect(const IntRect&); |
| 195 | 195 |
| 196 // Return true if the animation is handled by the compositing system. If thi
s returns | 196 // Return true if the animation is handled by the compositing system. If thi
s returns |
| 197 // false, the animation will be run by AnimationController. | 197 // false, the animation will be run by AnimationController. |
| 198 // These methods handle both transitions and keyframe animations. | 198 // These methods handle both transitions and keyframe animations. |
| 199 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); | 199 bool addAnimation(PassOwnPtr<CompositorAnimation>); |
| 200 void pauseAnimation(int animationId, double /*timeOffset*/); | 200 void pauseAnimation(int animationId, double /*timeOffset*/); |
| 201 void removeAnimation(int animationId); | 201 void removeAnimation(int animationId); |
| 202 void abortAnimation(int animationId); | 202 void abortAnimation(int animationId); |
| 203 | 203 |
| 204 // Layer contents | 204 // Layer contents |
| 205 void setContentsToImage(Image*, RespectImageOrientationEnum = DoNotRespectIm
ageOrientation); | 205 void setContentsToImage(Image*, RespectImageOrientationEnum = DoNotRespectIm
ageOrientation); |
| 206 void setContentsToPlatformLayer(WebLayer* layer) { setContentsTo(layer); } | 206 void setContentsToPlatformLayer(WebLayer* layer) { setContentsTo(layer); } |
| 207 bool hasContentsLayer() const { return m_contentsLayer; } | 207 bool hasContentsLayer() const { return m_contentsLayer; } |
| 208 | 208 |
| 209 // For hosting this GraphicsLayer in a native layer hierarchy. | 209 // For hosting this GraphicsLayer in a native layer hierarchy. |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 }; | 381 }; |
| 382 | 382 |
| 383 } // namespace blink | 383 } // namespace blink |
| 384 | 384 |
| 385 #ifndef NDEBUG | 385 #ifndef NDEBUG |
| 386 // Outside the blink namespace for ease of invocation from gdb. | 386 // Outside the blink namespace for ease of invocation from gdb. |
| 387 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 387 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 388 #endif | 388 #endif |
| 389 | 389 |
| 390 #endif // GraphicsLayer_h | 390 #endif // GraphicsLayer_h |
| OLD | NEW |