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

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

Issue 1452313004: Don't use cached subsequence when clip changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp ('k') | 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 STACK_ALLOCATED(); 79 STACK_ALLOCATED();
80 PaintLayerPaintingInfo(PaintLayer* inRootLayer, const LayoutRect& inDirtyRec t, 80 PaintLayerPaintingInfo(PaintLayer* inRootLayer, const LayoutRect& inDirtyRec t,
81 GlobalPaintFlags globalPaintFlags, const LayoutSize& inSubPixelAccumulat ion, 81 GlobalPaintFlags globalPaintFlags, const LayoutSize& inSubPixelAccumulat ion,
82 LayoutObject* inPaintingRoot = 0) 82 LayoutObject* inPaintingRoot = 0)
83 : rootLayer(inRootLayer) 83 : rootLayer(inRootLayer)
84 , paintingRoot(inPaintingRoot) 84 , paintingRoot(inPaintingRoot)
85 , paintDirtyRect(inDirtyRect) 85 , paintDirtyRect(inDirtyRect)
86 , subPixelAccumulation(inSubPixelAccumulation) 86 , subPixelAccumulation(inSubPixelAccumulation)
87 , clipToDirtyRect(true) 87 , clipToDirtyRect(true)
88 , ancestorHasClipPathClipping(false) 88 , ancestorHasClipPathClipping(false)
89 , disableSubsequenceCache(false)
90 , m_globalPaintFlags(globalPaintFlags) 89 , m_globalPaintFlags(globalPaintFlags)
91 { } 90 { }
92 91
93 GlobalPaintFlags globalPaintFlags() const { return m_globalPaintFlags; } 92 GlobalPaintFlags globalPaintFlags() const { return m_globalPaintFlags; }
94 93
95 // TODO(jchaffraix): We should encapsulate all these fields. 94 // TODO(jchaffraix): We should encapsulate all these fields.
96 PaintLayer* rootLayer; 95 PaintLayer* rootLayer;
97 LayoutObject* paintingRoot; // only paint descendants of this object 96 LayoutObject* paintingRoot; // only paint descendants of this object
98 LayoutRect paintDirtyRect; // relative to rootLayer; 97 LayoutRect paintDirtyRect; // relative to rootLayer;
99 LayoutSize subPixelAccumulation; 98 LayoutSize subPixelAccumulation;
100 IntSize scrollOffsetAccumulation; 99 IntSize scrollOffsetAccumulation;
101 bool clipToDirtyRect; 100 bool clipToDirtyRect;
102 bool ancestorHasClipPathClipping; 101 bool ancestorHasClipPathClipping;
103 // TODO(wangxianzhu): Remove for slimming paint v2.
104 bool disableSubsequenceCache;
105 102
106 private: 103 private:
107 const GlobalPaintFlags m_globalPaintFlags; 104 const GlobalPaintFlags m_globalPaintFlags;
108 }; 105 };
109 106
110 } // namespace blink 107 } // namespace blink
111 108
112 #endif // PaintLayerPaintingInfo_h 109 #endif // PaintLayerPaintingInfo_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698