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 23 matching lines...) Expand all Loading... |
34 #include "platform/geometry/FloatSize.h" | 34 #include "platform/geometry/FloatSize.h" |
35 #include "platform/geometry/IntRect.h" | 35 #include "platform/geometry/IntRect.h" |
36 #include "platform/graphics/Color.h" | 36 #include "platform/graphics/Color.h" |
37 #include "platform/graphics/CompositorElementId.h" | 37 #include "platform/graphics/CompositorElementId.h" |
38 #include "platform/graphics/ContentLayerDelegate.h" | 38 #include "platform/graphics/ContentLayerDelegate.h" |
39 #include "platform/graphics/GraphicsContext.h" | 39 #include "platform/graphics/GraphicsContext.h" |
40 #include "platform/graphics/GraphicsLayerClient.h" | 40 #include "platform/graphics/GraphicsLayerClient.h" |
41 #include "platform/graphics/GraphicsLayerDebugInfo.h" | 41 #include "platform/graphics/GraphicsLayerDebugInfo.h" |
42 #include "platform/graphics/ImageOrientation.h" | 42 #include "platform/graphics/ImageOrientation.h" |
43 #include "platform/graphics/PaintInvalidationReason.h" | 43 #include "platform/graphics/PaintInvalidationReason.h" |
44 #include "platform/graphics/filters/FilterOperations.h" | |
45 #include "platform/graphics/paint/DisplayItemClient.h" | 44 #include "platform/graphics/paint/DisplayItemClient.h" |
46 #include "platform/graphics/paint/PaintController.h" | 45 #include "platform/graphics/paint/PaintController.h" |
47 #include "platform/heap/Handle.h" | 46 #include "platform/heap/Handle.h" |
48 #include "platform/transforms/TransformationMatrix.h" | 47 #include "platform/transforms/TransformationMatrix.h" |
49 #include "public/platform/WebContentLayer.h" | 48 #include "public/platform/WebContentLayer.h" |
50 #include "public/platform/WebImageLayer.h" | 49 #include "public/platform/WebImageLayer.h" |
51 #include "public/platform/WebLayerScrollClient.h" | 50 #include "public/platform/WebLayerScrollClient.h" |
52 #include "third_party/skia/include/core/SkFilterQuality.h" | 51 #include "third_party/skia/include/core/SkFilterQuality.h" |
53 #include "third_party/skia/include/core/SkRefCnt.h" | 52 #include "third_party/skia/include/core/SkRefCnt.h" |
54 #include "wtf/Vector.h" | 53 #include "wtf/Vector.h" |
55 #include <memory> | 54 #include <memory> |
56 | 55 |
57 namespace blink { | 56 namespace blink { |
58 | 57 |
| 58 class CompositorFilterOperations; |
59 class FloatRect; | 59 class FloatRect; |
60 class Image; | 60 class Image; |
| 61 class JSONObject; |
61 class LinkHighlight; | 62 class LinkHighlight; |
62 class JSONObject; | |
63 class PaintController; | 63 class PaintController; |
64 class ScrollableArea; | 64 class ScrollableArea; |
65 class WebLayer; | 65 class WebLayer; |
66 | 66 |
67 typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector; | 67 typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector; |
68 | 68 |
69 // GraphicsLayer is an abstraction for a rendering surface with backing store, | 69 // GraphicsLayer is an abstraction for a rendering surface with backing store, |
70 // which may have associated transformation and animations. | 70 // which may have associated transformation and animations. |
71 | 71 |
72 class PLATFORM_EXPORT GraphicsLayer : public WebLayerScrollClient, public cc::La
yerClient, public DisplayItemClient { | 72 class PLATFORM_EXPORT GraphicsLayer : public WebLayerScrollClient, public cc::La
yerClient, public DisplayItemClient { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 bool backfaceVisibility() const { return m_backfaceVisibility; } | 165 bool backfaceVisibility() const { return m_backfaceVisibility; } |
166 void setBackfaceVisibility(bool visible); | 166 void setBackfaceVisibility(bool visible); |
167 | 167 |
168 float opacity() const { return m_opacity; } | 168 float opacity() const { return m_opacity; } |
169 void setOpacity(float); | 169 void setOpacity(float); |
170 | 170 |
171 void setBlendMode(WebBlendMode); | 171 void setBlendMode(WebBlendMode); |
172 void setIsRootForIsolatedGroup(bool); | 172 void setIsRootForIsolatedGroup(bool); |
173 | 173 |
174 void setFilters(const FilterOperations&); | 174 void setFilters(CompositorFilterOperations); |
175 void setBackdropFilters(const FilterOperations&); | 175 void setBackdropFilters(CompositorFilterOperations); |
176 | 176 |
177 void setFilterQuality(SkFilterQuality); | 177 void setFilterQuality(SkFilterQuality); |
178 | 178 |
179 // Some GraphicsLayers paint only the foreground or the background content | 179 // Some GraphicsLayers paint only the foreground or the background content |
180 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } | 180 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } |
181 void setPaintingPhase(GraphicsLayerPaintingPhase); | 181 void setPaintingPhase(GraphicsLayerPaintingPhase); |
182 | 182 |
183 void setNeedsDisplay(); | 183 void setNeedsDisplay(); |
184 // Mark the given rect (in layer coords) as needing display. Never goes deep
. | 184 // Mark the given rect (in layer coords) as needing display. Never goes deep
. |
185 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason, const Di
splayItemClient&); | 185 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason, const Di
splayItemClient&); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 }; | 372 }; |
373 | 373 |
374 } // namespace blink | 374 } // namespace blink |
375 | 375 |
376 #ifndef NDEBUG | 376 #ifndef NDEBUG |
377 // Outside the blink namespace for ease of invocation from gdb. | 377 // Outside the blink namespace for ease of invocation from gdb. |
378 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 378 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
379 #endif | 379 #endif |
380 | 380 |
381 #endif // GraphicsLayer_h | 381 #endif // GraphicsLayer_h |
OLD | NEW |