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

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

Issue 2469093002: Return references to IntRects to save space in CompositingRequirementsUpdater. (Closed)
Patch Set: none Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 void updateAncestorDependentCompositingInputs( 710 void updateAncestorDependentCompositingInputs(
711 const AncestorDependentCompositingInputs&, 711 const AncestorDependentCompositingInputs&,
712 const RareAncestorDependentCompositingInputs&, 712 const RareAncestorDependentCompositingInputs&,
713 bool hasAncestorWithClipPath); 713 bool hasAncestorWithClipPath);
714 void updateDescendantDependentCompositingInputs( 714 void updateDescendantDependentCompositingInputs(
715 bool hasDescendantWithClipPath, 715 bool hasDescendantWithClipPath,
716 bool hasNonIsolatedDescendantWithBlendMode, 716 bool hasNonIsolatedDescendantWithBlendMode,
717 bool hasRootScrollerAsDescendant); 717 bool hasRootScrollerAsDescendant);
718 void didUpdateCompositingInputs(); 718 void didUpdateCompositingInputs();
719 719
720 IntRect clippedAbsoluteBoundingBox() const { 720 const IntRect& clippedAbsoluteBoundingBox() const {
721 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate); 721 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate);
722 return m_ancestorDependentCompositingInputs.clippedAbsoluteBoundingBox; 722 return m_ancestorDependentCompositingInputs.clippedAbsoluteBoundingBox;
723 } 723 }
724 IntRect unclippedAbsoluteBoundingBox() const { 724 const IntRect& unclippedAbsoluteBoundingBox() const {
725 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate); 725 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate);
726 return m_ancestorDependentCompositingInputs.unclippedAbsoluteBoundingBox; 726 return m_ancestorDependentCompositingInputs.unclippedAbsoluteBoundingBox;
727 } 727 }
728 const PaintLayer* opacityAncestor() const { 728 const PaintLayer* opacityAncestor() const {
729 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate); 729 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate);
730 return m_rareAncestorDependentCompositingInputs 730 return m_rareAncestorDependentCompositingInputs
731 ? m_rareAncestorDependentCompositingInputs->opacityAncestor 731 ? m_rareAncestorDependentCompositingInputs->opacityAncestor
732 : nullptr; 732 : nullptr;
733 } 733 }
734 const PaintLayer* transformAncestor() const { 734 const PaintLayer* transformAncestor() const {
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 1236
1237 } // namespace blink 1237 } // namespace blink
1238 1238
1239 #ifndef NDEBUG 1239 #ifndef NDEBUG
1240 // Outside the WebCore namespace for ease of invocation from gdb. 1240 // Outside the WebCore namespace for ease of invocation from gdb.
1241 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1241 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1242 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1242 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1243 #endif 1243 #endif
1244 1244
1245 #endif // Layer_h 1245 #endif // Layer_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698