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 21 matching lines...) Expand all Loading... |
32 #include "platform/geometry/FloatPoint3D.h" | 32 #include "platform/geometry/FloatPoint3D.h" |
33 #include "platform/geometry/FloatSize.h" | 33 #include "platform/geometry/FloatSize.h" |
34 #include "platform/geometry/IntRect.h" | 34 #include "platform/geometry/IntRect.h" |
35 #include "platform/graphics/Color.h" | 35 #include "platform/graphics/Color.h" |
36 #include "platform/graphics/ContentLayerDelegate.h" | 36 #include "platform/graphics/ContentLayerDelegate.h" |
37 #include "platform/graphics/GraphicsLayerClient.h" | 37 #include "platform/graphics/GraphicsLayerClient.h" |
38 #include "platform/graphics/GraphicsLayerDebugInfo.h" | 38 #include "platform/graphics/GraphicsLayerDebugInfo.h" |
39 #include "platform/graphics/PaintInvalidationReason.h" | 39 #include "platform/graphics/PaintInvalidationReason.h" |
40 #include "platform/graphics/filters/FilterOperations.h" | 40 #include "platform/graphics/filters/FilterOperations.h" |
41 #include "platform/graphics/paint/DisplayItemClient.h" | 41 #include "platform/graphics/paint/DisplayItemClient.h" |
| 42 #include "platform/graphics/paint/DisplayItemList.h" |
| 43 #include "platform/graphics/paint/DisplayItemTransformTree.h" |
| 44 #include "platform/graphics/paint/DisplayList.h" |
42 #include "platform/transforms/TransformationMatrix.h" | 45 #include "platform/transforms/TransformationMatrix.h" |
43 #include "public/platform/WebCompositorAnimationDelegate.h" | 46 #include "public/platform/WebCompositorAnimationDelegate.h" |
44 #include "public/platform/WebContentLayer.h" | 47 #include "public/platform/WebContentLayer.h" |
45 #include "public/platform/WebImageLayer.h" | 48 #include "public/platform/WebImageLayer.h" |
46 #include "public/platform/WebLayerClient.h" | 49 #include "public/platform/WebLayerClient.h" |
47 #include "public/platform/WebLayerScrollClient.h" | 50 #include "public/platform/WebLayerScrollClient.h" |
48 #include "public/platform/WebNinePatchLayer.h" | 51 #include "public/platform/WebNinePatchLayer.h" |
49 #include "public/platform/WebScrollBlocksOn.h" | 52 #include "public/platform/WebScrollBlocksOn.h" |
50 #include "third_party/skia/include/core/SkPaint.h" | 53 #include "third_party/skia/include/core/SkPaint.h" |
51 #include "wtf/OwnPtr.h" | 54 #include "wtf/OwnPtr.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 DoubleSize offsetDoubleFromLayoutObject() const { return m_offsetFromLayoutO
bject; } | 144 DoubleSize offsetDoubleFromLayoutObject() const { return m_offsetFromLayoutO
bject; } |
142 void setOffsetDoubleFromLayoutObject(const DoubleSize&, ShouldSetNeedsDispla
y = SetNeedsDisplay); | 145 void setOffsetDoubleFromLayoutObject(const DoubleSize&, ShouldSetNeedsDispla
y = SetNeedsDisplay); |
143 | 146 |
144 // The position of the layer (the location of its top-left corner in its par
ent) | 147 // The position of the layer (the location of its top-left corner in its par
ent) |
145 const FloatPoint& position() const { return m_position; } | 148 const FloatPoint& position() const { return m_position; } |
146 void setPosition(const FloatPoint&); | 149 void setPosition(const FloatPoint&); |
147 | 150 |
148 const FloatPoint3D& transformOrigin() const { return m_transformOrigin; } | 151 const FloatPoint3D& transformOrigin() const { return m_transformOrigin; } |
149 void setTransformOrigin(const FloatPoint3D&); | 152 void setTransformOrigin(const FloatPoint3D&); |
150 | 153 |
| 154 void setTransformTree(PassOwnPtr<const DisplayItemTransformTree>); |
| 155 const DisplayItemTransformTree* transformTree() const override; |
| 156 |
| 157 const DisplayList* displayList() const override; |
| 158 void setDisplayList(PassOwnPtr<DisplayList>); |
| 159 |
151 // The size of the layer. | 160 // The size of the layer. |
152 const FloatSize& size() const { return m_size; } | 161 const FloatSize& size() const { return m_size; } |
153 void setSize(const FloatSize&); | 162 void setSize(const FloatSize&); |
154 | 163 |
155 const TransformationMatrix& transform() const { return m_transform; } | 164 const TransformationMatrix& transform() const { return m_transform; } |
156 void setTransform(const TransformationMatrix&); | 165 void setTransform(const TransformationMatrix&); |
157 void setShouldFlattenTransform(bool); | 166 void setShouldFlattenTransform(bool); |
158 void setRenderingContext(int id); | 167 void setRenderingContext(int id); |
159 void setMasksToBounds(bool); | 168 void setMasksToBounds(bool); |
160 | 169 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 void setScrollableArea(ScrollableArea*, bool isViewport); | 251 void setScrollableArea(ScrollableArea*, bool isViewport); |
243 ScrollableArea* scrollableArea() const { return m_scrollableArea; } | 252 ScrollableArea* scrollableArea() const { return m_scrollableArea; } |
244 | 253 |
245 WebContentLayer* contentLayer() const { return m_layer.get(); } | 254 WebContentLayer* contentLayer() const { return m_layer.get(); } |
246 | 255 |
247 static void registerContentsLayer(WebLayer*); | 256 static void registerContentsLayer(WebLayer*); |
248 static void unregisterContentsLayer(WebLayer*); | 257 static void unregisterContentsLayer(WebLayer*); |
249 | 258 |
250 // GraphicsContextPainter implementation. | 259 // GraphicsContextPainter implementation. |
251 void paint(GraphicsContext&, const IntRect& clip) override; | 260 void paint(GraphicsContext&, const IntRect& clip) override; |
| 261 void paint(GraphicsContext&); |
252 | 262 |
253 // WebCompositorAnimationDelegate implementation. | 263 // WebCompositorAnimationDelegate implementation. |
254 void notifyAnimationStarted(double monotonicTime, int group) override; | 264 void notifyAnimationStarted(double monotonicTime, int group) override; |
255 void notifyAnimationFinished(double monotonicTime, int group) override; | 265 void notifyAnimationFinished(double monotonicTime, int group) override; |
256 | 266 |
257 // WebLayerScrollClient implementation. | 267 // WebLayerScrollClient implementation. |
258 void didScroll() override; | 268 void didScroll() override; |
259 | 269 |
260 DisplayItemList* displayItemList() override; | 270 DisplayItemList* displayItemList() override; |
261 | 271 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 371 |
362 Vector<LinkHighlightClient*> m_linkHighlights; | 372 Vector<LinkHighlightClient*> m_linkHighlights; |
363 | 373 |
364 OwnPtr<ContentLayerDelegate> m_contentLayerDelegate; | 374 OwnPtr<ContentLayerDelegate> m_contentLayerDelegate; |
365 | 375 |
366 ScrollableArea* m_scrollableArea; | 376 ScrollableArea* m_scrollableArea; |
367 GraphicsLayerDebugInfo m_debugInfo; | 377 GraphicsLayerDebugInfo m_debugInfo; |
368 int m_3dRenderingContext; | 378 int m_3dRenderingContext; |
369 | 379 |
370 OwnPtr<DisplayItemList> m_displayItemList; | 380 OwnPtr<DisplayItemList> m_displayItemList; |
| 381 OwnPtr<const DisplayItemTransformTree> m_transformTree; |
| 382 OwnPtr<const DisplayList> m_displayList; |
371 }; | 383 }; |
372 | 384 |
373 } // namespace blink | 385 } // namespace blink |
374 | 386 |
375 #ifndef NDEBUG | 387 #ifndef NDEBUG |
376 // Outside the blink namespace for ease of invocation from gdb. | 388 // Outside the blink namespace for ease of invocation from gdb. |
377 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 389 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
378 #endif | 390 #endif |
379 | 391 |
380 #endif // GraphicsLayer_h | 392 #endif // GraphicsLayer_h |
OLD | NEW |