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

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

Issue 2671853003: [SPInvalidation] Use GeometryMapper in PaintLayerClipper for paint. (Closed)
Patch Set: none Created 3 years, 10 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 618
619 // Compute rects only for this layer 619 // Compute rects only for this layer
620 void computeSelfHitTestRects(LayerHitTestRects&) const; 620 void computeSelfHitTestRects(LayerHitTestRects&) const;
621 621
622 // FIXME: This should probably return a ScrollableArea but a lot of internal 622 // FIXME: This should probably return a ScrollableArea but a lot of internal
623 // methods are mistakenly exposed. 623 // methods are mistakenly exposed.
624 PaintLayerScrollableArea* getScrollableArea() const { 624 PaintLayerScrollableArea* getScrollableArea() const {
625 return m_scrollableArea.get(); 625 return m_scrollableArea.get();
626 } 626 }
627 627
628 PaintLayerClipper clipper() const { 628 PaintLayerClipper clipper(bool useGeometryMapper) const;
629 return PaintLayerClipper(*this,
630 RuntimeEnabledFeatures::slimmingPaintV2Enabled());
631 }
632 629
633 bool scrollsOverflow() const; 630 bool scrollsOverflow() const;
634 631
635 CompositingReasons potentialCompositingReasonsFromStyle() const { 632 CompositingReasons potentialCompositingReasonsFromStyle() const {
636 return m_rareData ? m_rareData->potentialCompositingReasonsFromStyle 633 return m_rareData ? m_rareData->potentialCompositingReasonsFromStyle
637 : CompositingReasonNone; 634 : CompositingReasonNone;
638 } 635 }
639 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) { 636 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) {
640 DCHECK(reasons == 637 DCHECK(reasons ==
641 (reasons & CompositingReasonComboAllStyleDeterminedReasons)); 638 (reasons & CompositingReasonComboAllStyleDeterminedReasons));
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 return m_hasSelfPaintingLayerDescendant; 838 return m_hasSelfPaintingLayerDescendant;
842 } 839 }
843 LayoutRect paintingExtent(const PaintLayer* rootLayer, 840 LayoutRect paintingExtent(const PaintLayer* rootLayer,
844 const LayoutSize& subPixelAccumulation, 841 const LayoutSize& subPixelAccumulation,
845 GlobalPaintFlags); 842 GlobalPaintFlags);
846 void appendSingleFragmentIgnoringPagination( 843 void appendSingleFragmentIgnoringPagination(
847 PaintLayerFragments&, 844 PaintLayerFragments&,
848 const PaintLayer* rootLayer, 845 const PaintLayer* rootLayer,
849 const LayoutRect& dirtyRect, 846 const LayoutRect& dirtyRect,
850 ClipRectsCacheSlot, 847 ClipRectsCacheSlot,
848 bool useGeometryMapper,
851 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize, 849 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize,
852 ShouldRespectOverflowClipType = RespectOverflowClip, 850 ShouldRespectOverflowClipType = RespectOverflowClip,
853 const LayoutPoint* offsetFromRoot = 0, 851 const LayoutPoint* offsetFromRoot = 0,
854 const LayoutSize& subPixelAccumulation = LayoutSize()); 852 const LayoutSize& subPixelAccumulation = LayoutSize());
855 void collectFragments( 853 void collectFragments(
856 PaintLayerFragments&, 854 PaintLayerFragments&,
857 const PaintLayer* rootLayer, 855 const PaintLayer* rootLayer,
858 const LayoutRect& dirtyRect, 856 const LayoutRect& dirtyRect,
859 ClipRectsCacheSlot, 857 ClipRectsCacheSlot,
858 bool useGeometryMapper,
860 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize, 859 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize,
861 ShouldRespectOverflowClipType = RespectOverflowClip, 860 ShouldRespectOverflowClipType = RespectOverflowClip,
862 const LayoutPoint* offsetFromRoot = 0, 861 const LayoutPoint* offsetFromRoot = 0,
863 const LayoutSize& subPixelAccumulation = LayoutSize(), 862 const LayoutSize& subPixelAccumulation = LayoutSize(),
864 const LayoutRect* layerBoundingBox = 0); 863 const LayoutRect* layerBoundingBox = 0);
865 864
866 LayoutPoint layoutBoxLocation() const { 865 LayoutPoint layoutBoxLocation() const {
867 return layoutObject()->isBox() ? toLayoutBox(layoutObject())->location() 866 return layoutObject()->isBox() ? toLayoutBox(layoutObject())->location()
868 : LayoutPoint(); 867 : LayoutPoint();
869 } 868 }
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 1248
1250 } // namespace blink 1249 } // namespace blink
1251 1250
1252 #ifndef NDEBUG 1251 #ifndef NDEBUG
1253 // Outside the WebCore namespace for ease of invocation from gdb. 1252 // Outside the WebCore namespace for ease of invocation from gdb.
1254 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1253 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1255 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1254 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1256 #endif 1255 #endif
1257 1256
1258 #endif // Layer_h 1257 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698