Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2638013002: Record box shadow as main thread scrolling reasons (Closed)
Patch Set: nit Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 // Returns the GraphicsLayer owned by this PaintLayer's 497 // Returns the GraphicsLayer owned by this PaintLayer's
498 // CompositedLayerMapping (or groupedMapping()'s, if squashed), 498 // CompositedLayerMapping (or groupedMapping()'s, if squashed),
499 // into which the given LayoutObject paints. If null, assumes the 499 // into which the given LayoutObject paints. If null, assumes the
500 // LayoutObject is *not* layoutObject(). 500 // LayoutObject is *not* layoutObject().
501 // Assumes that the given LayoutObject paints into one of the GraphicsLayers 501 // Assumes that the given LayoutObject paints into one of the GraphicsLayers
502 // associated with this PaintLayer. 502 // associated with this PaintLayer.
503 // Returns nullptr if this PaintLayer is not composited. 503 // Returns nullptr if this PaintLayer is not composited.
504 GraphicsLayer* graphicsLayerBacking(const LayoutObject* = nullptr) const; 504 GraphicsLayer* graphicsLayerBacking(const LayoutObject* = nullptr) const;
505 505
506 BackgroundPaintLocation backgroundPaintLocation() const; 506 // TODO(yigu): PaintLayerScrollableArea::computeNeedsCompositedScrolling
507 // calls this method to obtain main thread scrolling reasons due to
508 // background paint location. Once the cases get handled on compositor the
509 // parameter "reasons" could be removed.
510 BackgroundPaintLocation backgroundPaintLocation(
511 uint32_t* reasons = nullptr) const;
507 // NOTE: If you are using hasCompositedLayerMapping to determine the state of 512 // NOTE: If you are using hasCompositedLayerMapping to determine the state of
508 // compositing for this layer, (and not just to do bookkeeping related to the 513 // compositing for this layer, (and not just to do bookkeeping related to the
509 // mapping like, say, allocating or deallocating a mapping), then you may have 514 // mapping like, say, allocating or deallocating a mapping), then you may have
510 // incorrect logic. Use compositingState() instead. 515 // incorrect logic. Use compositingState() instead.
511 // FIXME: This is identical to null checking compositedLayerMapping(), why not 516 // FIXME: This is identical to null checking compositedLayerMapping(), why not
512 // just call that? 517 // just call that?
513 bool hasCompositedLayerMapping() const { 518 bool hasCompositedLayerMapping() const {
514 return m_rareData && m_rareData->compositedLayerMapping; 519 return m_rareData && m_rareData->compositedLayerMapping;
515 } 520 }
516 void ensureCompositedLayerMapping(); 521 void ensureCompositedLayerMapping();
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 1245
1241 } // namespace blink 1246 } // namespace blink
1242 1247
1243 #ifndef NDEBUG 1248 #ifndef NDEBUG
1244 // Outside the WebCore namespace for ease of invocation from gdb. 1249 // Outside the WebCore namespace for ease of invocation from gdb.
1245 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1250 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1246 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1251 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1247 #endif 1252 #endif
1248 1253
1249 #endif // Layer_h 1254 #endif // Layer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698