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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void setContentsNeedsDisplay(); | 188 void setContentsNeedsDisplay(); |
189 | 189 |
190 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation
Reason); | 190 void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidation
Reason); |
191 | 191 |
192 // Set that the position/size of the contents (image or video). | 192 // Set that the position/size of the contents (image or video). |
193 void setContentsRect(const IntRect&); | 193 void setContentsRect(const IntRect&); |
194 | 194 |
195 // Return true if the animation is handled by the compositing system. If thi
s returns | 195 // Return true if the animation is handled by the compositing system. If thi
s returns |
196 // false, the animation will be run by AnimationController. | 196 // false, the animation will be run by AnimationController. |
197 // These methods handle both transitions and keyframe animations. | 197 // These methods handle both transitions and keyframe animations. |
198 bool addAnimation(PassOwnPtr<WebCompositorAnimation>); | 198 bool addAnimation(PassOwnPtr<CompositorAnimation>); |
199 void pauseAnimation(int animationId, double /*timeOffset*/); | 199 void pauseAnimation(int animationId, double /*timeOffset*/); |
200 void removeAnimation(int animationId); | 200 void removeAnimation(int animationId); |
201 void abortAnimation(int animationId); | 201 void abortAnimation(int animationId); |
202 | 202 |
203 // Layer contents | 203 // Layer contents |
204 void setContentsToImage(Image*, RespectImageOrientationEnum = DoNotRespectIm
ageOrientation); | 204 void setContentsToImage(Image*, RespectImageOrientationEnum = DoNotRespectIm
ageOrientation); |
205 void setContentsToPlatformLayer(WebLayer* layer) { setContentsTo(layer); } | 205 void setContentsToPlatformLayer(WebLayer* layer) { setContentsTo(layer); } |
206 bool hasContentsLayer() const { return m_contentsLayer; } | 206 bool hasContentsLayer() const { return m_contentsLayer; } |
207 | 207 |
208 // For hosting this GraphicsLayer in a native layer hierarchy. | 208 // For hosting this GraphicsLayer in a native layer hierarchy. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 }; | 380 }; |
381 | 381 |
382 } // namespace blink | 382 } // namespace blink |
383 | 383 |
384 #ifndef NDEBUG | 384 #ifndef NDEBUG |
385 // Outside the blink namespace for ease of invocation from gdb. | 385 // Outside the blink namespace for ease of invocation from gdb. |
386 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 386 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
387 #endif | 387 #endif |
388 | 388 |
389 #endif // GraphicsLayer_h | 389 #endif // GraphicsLayer_h |
OLD | NEW |