| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 // Return a string with a human readable form of the layer tree, If debug is
true | 201 // Return a string with a human readable form of the layer tree, If debug is
true |
| 202 // pointers for the layers and timing data will be included in the returned
string. | 202 // pointers for the layers and timing data will be included in the returned
string. |
| 203 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; | 203 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const; |
| 204 | 204 |
| 205 std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const; | 205 std::unique_ptr<JSONObject> layerTreeAsJSON(LayerTreeFlags) const; |
| 206 | 206 |
| 207 void setTracksPaintInvalidations(bool); | 207 void setTracksPaintInvalidations(bool); |
| 208 bool isTrackingOrCheckingPaintInvalidations() const | 208 bool isTrackingOrCheckingPaintInvalidations() const |
| 209 { | 209 { |
| 210 return RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled() |
| m_isTrackingPaintInvalidations; | 210 #if DCHECK_IS_ON() |
| 211 if (RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnable
d()) |
| 212 return true; |
| 213 #endif |
| 214 return m_isTrackingPaintInvalidations; |
| 211 } | 215 } |
| 212 | 216 |
| 213 void resetTrackedPaintInvalidations(); | 217 void resetTrackedPaintInvalidations(); |
| 214 bool hasTrackedPaintInvalidations() const; | 218 bool hasTrackedPaintInvalidations() const; |
| 215 void trackPaintInvalidation(const DisplayItemClient&, const IntRect&, PaintI
nvalidationReason); | 219 void trackPaintInvalidation(const DisplayItemClient&, const IntRect&, PaintI
nvalidationReason); |
| 216 | 220 |
| 217 void addLinkHighlight(LinkHighlight*); | 221 void addLinkHighlight(LinkHighlight*); |
| 218 void removeLinkHighlight(LinkHighlight*); | 222 void removeLinkHighlight(LinkHighlight*); |
| 219 // Exposed for tests | 223 // Exposed for tests |
| 220 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 224 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 void updateContentsRect(); | 291 void updateContentsRect(); |
| 288 | 292 |
| 289 void setContentsTo(WebLayer*); | 293 void setContentsTo(WebLayer*); |
| 290 void setupContentsLayer(WebLayer*); | 294 void setupContentsLayer(WebLayer*); |
| 291 void clearContentsLayerIfUnregistered(); | 295 void clearContentsLayerIfUnregistered(); |
| 292 WebLayer* contentsLayerIfRegistered(); | 296 WebLayer* contentsLayerIfRegistered(); |
| 293 | 297 |
| 294 typedef HashMap<int, int> RenderingContextMap; | 298 typedef HashMap<int, int> RenderingContextMap; |
| 295 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin
gContextMap&) const; | 299 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin
gContextMap&) const; |
| 296 | 300 |
| 301 #if DCHECK_IS_ON() |
| 297 PassRefPtr<SkPicture> capturePicture(); | 302 PassRefPtr<SkPicture> capturePicture(); |
| 298 void checkPaintUnderInvalidations(const SkPicture&); | 303 void checkPaintUnderInvalidations(const SkPicture&); |
| 304 #endif |
| 299 | 305 |
| 300 GraphicsLayerClient* m_client; | 306 GraphicsLayerClient* m_client; |
| 301 | 307 |
| 302 // Offset from the owning layoutObject | 308 // Offset from the owning layoutObject |
| 303 DoubleSize m_offsetFromLayoutObject; | 309 DoubleSize m_offsetFromLayoutObject; |
| 304 | 310 |
| 305 // Position is relative to the parent GraphicsLayer | 311 // Position is relative to the parent GraphicsLayer |
| 306 FloatPoint m_position; | 312 FloatPoint m_position; |
| 307 FloatSize m_size; | 313 FloatSize m_size; |
| 308 | 314 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 }; | 377 }; |
| 372 | 378 |
| 373 } // namespace blink | 379 } // namespace blink |
| 374 | 380 |
| 375 #ifndef NDEBUG | 381 #ifndef NDEBUG |
| 376 // Outside the blink namespace for ease of invocation from gdb. | 382 // Outside the blink namespace for ease of invocation from gdb. |
| 377 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 383 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 378 #endif | 384 #endif |
| 379 | 385 |
| 380 #endif // GraphicsLayer_h | 386 #endif // GraphicsLayer_h |
| OLD | NEW |