| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 495 |
| 496 // Returns the GraphicsLayer owned by this PaintLayer's | 496 // Returns the GraphicsLayer owned by this PaintLayer's |
| 497 // CompositedLayerMapping (or groupedMapping()'s, if squashed), | 497 // CompositedLayerMapping (or groupedMapping()'s, if squashed), |
| 498 // into which the given LayoutObject paints. If null, assumes the | 498 // into which the given LayoutObject paints. If null, assumes the |
| 499 // LayoutObject is *not* layoutObject(). | 499 // LayoutObject is *not* layoutObject(). |
| 500 // Assumes that the given LayoutObject paints into one of the GraphicsLayers | 500 // Assumes that the given LayoutObject paints into one of the GraphicsLayers |
| 501 // associated with this PaintLayer. | 501 // associated with this PaintLayer. |
| 502 // Returns nullptr if this PaintLayer is not composited. | 502 // Returns nullptr if this PaintLayer is not composited. |
| 503 GraphicsLayer* graphicsLayerBacking(const LayoutObject* = nullptr) const; | 503 GraphicsLayer* graphicsLayerBacking(const LayoutObject* = nullptr) const; |
| 504 | 504 |
| 505 BackgroundPaintLocation backgroundPaintLocation() const; | 505 // TODO(yigu): PaintLayerScrollableArea::computeNeedsCompositedScrolling |
| 506 // calls this method to obtain main thread scrolling reasons due to |
| 507 // background paint location. Once the cases get handled on compositor the |
| 508 // parameter "reasons" could be removed. |
| 509 BackgroundPaintLocation backgroundPaintLocation( |
| 510 uint32_t* reasons = nullptr) const; |
| 506 // NOTE: If you are using hasCompositedLayerMapping to determine the state of | 511 // NOTE: If you are using hasCompositedLayerMapping to determine the state of |
| 507 // compositing for this layer, (and not just to do bookkeeping related to the | 512 // compositing for this layer, (and not just to do bookkeeping related to the |
| 508 // mapping like, say, allocating or deallocating a mapping), then you may have | 513 // mapping like, say, allocating or deallocating a mapping), then you may have |
| 509 // incorrect logic. Use compositingState() instead. | 514 // incorrect logic. Use compositingState() instead. |
| 510 // FIXME: This is identical to null checking compositedLayerMapping(), why not | 515 // FIXME: This is identical to null checking compositedLayerMapping(), why not |
| 511 // just call that? | 516 // just call that? |
| 512 bool hasCompositedLayerMapping() const { | 517 bool hasCompositedLayerMapping() const { |
| 513 return m_rareData && m_rareData->compositedLayerMapping; | 518 return m_rareData && m_rareData->compositedLayerMapping; |
| 514 } | 519 } |
| 515 void ensureCompositedLayerMapping(); | 520 void ensureCompositedLayerMapping(); |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 | 1256 |
| 1252 } // namespace blink | 1257 } // namespace blink |
| 1253 | 1258 |
| 1254 #ifndef NDEBUG | 1259 #ifndef NDEBUG |
| 1255 // Outside the WebCore namespace for ease of invocation from gdb. | 1260 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1256 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1261 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
| 1257 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1262 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
| 1258 #endif | 1263 #endif |
| 1259 | 1264 |
| 1260 #endif // Layer_h | 1265 #endif // Layer_h |
| OLD | NEW |