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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 WebLayer* platformLayer() const; | 196 WebLayer* platformLayer() const; |
197 | 197 |
198 int paintCount() const { return m_paintCount; } | 198 int paintCount() const { return m_paintCount; } |
199 | 199 |
200 // Return a string with a human readable form of the layer tree, If debug is
true | 200 // Return a string with a human readable form of the layer tree, If debug is
true |
201 // pointers for the layers and timing data will be included in the returned
string. | 201 // pointers for the layers and timing data will be included in the returned
string. |
202 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; | 202 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; |
203 | 203 |
204 std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const; | 204 std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const; |
205 | 205 |
206 void setTracksPaintInvalidations(bool); | 206 void setTracksRasterInvalidations(bool); |
207 bool isTrackingOrCheckingPaintInvalidations() const | 207 bool isTrackingOrCheckingRasterInvalidations() const |
208 { | 208 { |
209 return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() |
| m_isTrackingPaintInvalidations; | 209 return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() |
| m_isTrackingRasterInvalidations; |
210 } | 210 } |
211 | 211 |
212 void resetTrackedPaintInvalidations(); | 212 void resetTrackedRasterInvalidations(); |
213 bool hasTrackedPaintInvalidations() const; | 213 bool hasTrackedRasterInvalidations() const; |
214 void trackPaintInvalidation(const DisplayItemClient&, const IntRect&, PaintI
nvalidationReason); | 214 void trackRasterInvalidation(const DisplayItemClient&, const IntRect&, Paint
InvalidationReason); |
215 | 215 |
216 void addLinkHighlight(LinkHighlight*); | 216 void addLinkHighlight(LinkHighlight*); |
217 void removeLinkHighlight(LinkHighlight*); | 217 void removeLinkHighlight(LinkHighlight*); |
218 // Exposed for tests | 218 // Exposed for tests |
219 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 219 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
220 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; } | 220 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; } |
221 | 221 |
222 void setScrollableArea(ScrollableArea*, bool isVisualViewport); | 222 void setScrollableArea(ScrollableArea*, bool isVisualViewport); |
223 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } | 223 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } |
224 | 224 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 bool m_backfaceVisibility : 1; | 317 bool m_backfaceVisibility : 1; |
318 bool m_drawsContent : 1; | 318 bool m_drawsContent : 1; |
319 bool m_contentsVisible : 1; | 319 bool m_contentsVisible : 1; |
320 bool m_isRootForIsolatedGroup : 1; | 320 bool m_isRootForIsolatedGroup : 1; |
321 | 321 |
322 bool m_hasScrollParent : 1; | 322 bool m_hasScrollParent : 1; |
323 bool m_hasClipParent : 1; | 323 bool m_hasClipParent : 1; |
324 | 324 |
325 bool m_painted : 1; | 325 bool m_painted : 1; |
326 | 326 |
327 bool m_isTrackingPaintInvalidations : 1; | 327 bool m_isTrackingRasterInvalidations : 1; |
328 | 328 |
329 GraphicsLayerPaintingPhase m_paintingPhase; | 329 GraphicsLayerPaintingPhase m_paintingPhase; |
330 | 330 |
331 Vector<GraphicsLayer*> m_children; | 331 Vector<GraphicsLayer*> m_children; |
332 GraphicsLayer* m_parent; | 332 GraphicsLayer* m_parent; |
333 | 333 |
334 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. | 334 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. |
335 GraphicsLayer* m_contentsClippingMaskLayer; // Reference to clipping mask la
yer. We don't own this. | 335 GraphicsLayer* m_contentsClippingMaskLayer; // Reference to clipping mask la
yer. We don't own this. |
336 | 336 |
337 IntRect m_contentsRect; | 337 IntRect m_contentsRect; |
(...skipping 23 matching lines...) Expand all Loading... |
361 }; | 361 }; |
362 | 362 |
363 } // namespace blink | 363 } // namespace blink |
364 | 364 |
365 #ifndef NDEBUG | 365 #ifndef NDEBUG |
366 // Outside the blink namespace for ease of invocation from gdb. | 366 // Outside the blink namespace for ease of invocation from gdb. |
367 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 367 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
368 #endif | 368 #endif |
369 | 369 |
370 #endif // GraphicsLayer_h | 370 #endif // GraphicsLayer_h |
OLD | NEW |