| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 WebLayer* platformLayer() const; | 211 WebLayer* platformLayer() const; |
| 212 | 212 |
| 213 int paintCount() const { return m_paintCount; } | 213 int paintCount() const { return m_paintCount; } |
| 214 | 214 |
| 215 // Return a string with a human readable form of the layer tree, If debug is t
rue | 215 // Return a string with a human readable form of the layer tree, If debug is t
rue |
| 216 // pointers for the layers and timing data will be included in the returned st
ring. | 216 // pointers for the layers and timing data will be included in the returned st
ring. |
| 217 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; | 217 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; |
| 218 | 218 |
| 219 std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const; | 219 std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const; |
| 220 | 220 |
| 221 void setTracksPaintInvalidations(bool); | 221 void setTracksRasterInvalidations(bool); |
| 222 bool isTrackingOrCheckingPaintInvalidations() const { | 222 bool isTrackingOrCheckingRasterInvalidations() const { |
| 223 return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() || | 223 return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() || |
| 224 m_isTrackingPaintInvalidations; | 224 m_isTrackingRasterInvalidations; |
| 225 } | 225 } |
| 226 | 226 |
| 227 void resetTrackedPaintInvalidations(); | 227 void resetTrackedRasterInvalidations(); |
| 228 bool hasTrackedPaintInvalidations() const; | 228 bool hasTrackedRasterInvalidations() const; |
| 229 void trackPaintInvalidation(const DisplayItemClient&, | 229 void trackRasterInvalidation(const DisplayItemClient&, |
| 230 const IntRect&, | 230 const IntRect&, |
| 231 PaintInvalidationReason); | 231 PaintInvalidationReason); |
| 232 | 232 |
| 233 void addLinkHighlight(LinkHighlight*); | 233 void addLinkHighlight(LinkHighlight*); |
| 234 void removeLinkHighlight(LinkHighlight*); | 234 void removeLinkHighlight(LinkHighlight*); |
| 235 // Exposed for tests | 235 // Exposed for tests |
| 236 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 236 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
| 237 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; } | 237 LinkHighlight* getLinkHighlight(int i) { return m_linkHighlights[i]; } |
| 238 | 238 |
| 239 void setScrollableArea(ScrollableArea*, bool isVisualViewport); | 239 void setScrollableArea(ScrollableArea*, bool isVisualViewport); |
| 240 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } | 240 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } |
| 241 | 241 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 bool m_backfaceVisibility : 1; | 342 bool m_backfaceVisibility : 1; |
| 343 bool m_drawsContent : 1; | 343 bool m_drawsContent : 1; |
| 344 bool m_contentsVisible : 1; | 344 bool m_contentsVisible : 1; |
| 345 bool m_isRootForIsolatedGroup : 1; | 345 bool m_isRootForIsolatedGroup : 1; |
| 346 | 346 |
| 347 bool m_hasScrollParent : 1; | 347 bool m_hasScrollParent : 1; |
| 348 bool m_hasClipParent : 1; | 348 bool m_hasClipParent : 1; |
| 349 | 349 |
| 350 bool m_painted : 1; | 350 bool m_painted : 1; |
| 351 | 351 |
| 352 bool m_isTrackingPaintInvalidations : 1; | 352 bool m_isTrackingRasterInvalidations : 1; |
| 353 | 353 |
| 354 GraphicsLayerPaintingPhase m_paintingPhase; | 354 GraphicsLayerPaintingPhase m_paintingPhase; |
| 355 | 355 |
| 356 Vector<GraphicsLayer*> m_children; | 356 Vector<GraphicsLayer*> m_children; |
| 357 GraphicsLayer* m_parent; | 357 GraphicsLayer* m_parent; |
| 358 | 358 |
| 359 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. | 359 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. |
| 360 GraphicsLayer* | 360 GraphicsLayer* |
| 361 m_contentsClippingMaskLayer; // Reference to clipping mask layer. We don'
t own this. | 361 m_contentsClippingMaskLayer; // Reference to clipping mask layer. We don'
t own this. |
| 362 | 362 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 } // namespace blink | 389 } // namespace blink |
| 390 | 390 |
| 391 #ifndef NDEBUG | 391 #ifndef NDEBUG |
| 392 // Outside the blink namespace for ease of invocation from gdb. | 392 // Outside the blink namespace for ease of invocation from gdb. |
| 393 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 393 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 394 #endif | 394 #endif |
| 395 | 395 |
| 396 #endif // GraphicsLayer_h | 396 #endif // GraphicsLayer_h |
| OLD | NEW |