| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 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 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 6 * | 6 * |
| 7 * Other contributors: | 7 * Other contributors: |
| 8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
| 10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 494 |
| 495 // Returns the GraphicsLayer owned by this PaintLayer's | 495 // Returns the GraphicsLayer owned by this PaintLayer's |
| 496 // CompositedLayerMapping (or groupedMapping()'s, if squashed), | 496 // CompositedLayerMapping (or groupedMapping()'s, if squashed), |
| 497 // into which the given LayoutObject paints. If null, assumes the | 497 // into which the given LayoutObject paints. If null, assumes the |
| 498 // LayoutObject is *not* layoutObject(). | 498 // LayoutObject is *not* layoutObject(). |
| 499 // Assumes that the given LayoutObject paints into one of the GraphicsLayers | 499 // Assumes that the given LayoutObject paints into one of the GraphicsLayers |
| 500 // associated with this PaintLayer. | 500 // associated with this PaintLayer. |
| 501 // Returns nullptr if this PaintLayer is not composited. | 501 // Returns nullptr if this PaintLayer is not composited. |
| 502 GraphicsLayer* graphicsLayerBacking(const LayoutObject* = nullptr) const; | 502 GraphicsLayer* graphicsLayerBacking(const LayoutObject* = nullptr) const; |
| 503 | 503 |
| 504 BackgroundPaintLocation backgroundPaintLocation() const; | 504 // TODO(yigu): PaintLayerScrollableArea::computeNeedsCompositedScrolling |
| 505 // calls this method to obtain main thread scrolling reasons due to |
| 506 // background paint location. Once the cases get handled on compositor the |
| 507 // parameter "reasons" could be removed. |
| 508 BackgroundPaintLocation backgroundPaintLocation( |
| 509 uint32_t* reasons = nullptr) const; |
| 505 // NOTE: If you are using hasCompositedLayerMapping to determine the state of | 510 // NOTE: If you are using hasCompositedLayerMapping to determine the state of |
| 506 // compositing for this layer, (and not just to do bookkeeping related to the | 511 // compositing for this layer, (and not just to do bookkeeping related to the |
| 507 // mapping like, say, allocating or deallocating a mapping), then you may have | 512 // mapping like, say, allocating or deallocating a mapping), then you may have |
| 508 // incorrect logic. Use compositingState() instead. | 513 // incorrect logic. Use compositingState() instead. |
| 509 // FIXME: This is identical to null checking compositedLayerMapping(), why not | 514 // FIXME: This is identical to null checking compositedLayerMapping(), why not |
| 510 // just call that? | 515 // just call that? |
| 511 bool hasCompositedLayerMapping() const { | 516 bool hasCompositedLayerMapping() const { |
| 512 return m_rareData && m_rareData->compositedLayerMapping; | 517 return m_rareData && m_rareData->compositedLayerMapping; |
| 513 } | 518 } |
| 514 void ensureCompositedLayerMapping(); | 519 void ensureCompositedLayerMapping(); |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 | 1254 |
| 1250 } // namespace blink | 1255 } // namespace blink |
| 1251 | 1256 |
| 1252 #ifndef NDEBUG | 1257 #ifndef NDEBUG |
| 1253 // Outside the WebCore namespace for ease of invocation from gdb. | 1258 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1254 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1259 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
| 1255 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1260 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
| 1256 #endif | 1261 #endif |
| 1257 | 1262 |
| 1258 #endif // Layer_h | 1263 #endif // Layer_h |
| OLD | NEW |