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

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

Issue 2623043002: Fix first paint tracking for SPv2 (Closed)
Patch Set: 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 namespace blink { 65 namespace blink {
66 66
67 class CompositedLayerMapping; 67 class CompositedLayerMapping;
68 class CompositorFilterOperations; 68 class CompositorFilterOperations;
69 class ComputedStyle; 69 class ComputedStyle;
70 class FilterEffect; 70 class FilterEffect;
71 class FilterOperations; 71 class FilterOperations;
72 class HitTestResult; 72 class HitTestResult;
73 class HitTestingTransformState; 73 class HitTestingTransformState;
74 class PaintLayerCompositor; 74 class PaintLayerCompositor;
75 class PaintTiming;
76 class TransformationMatrix; 75 class TransformationMatrix;
77 76
78 enum IncludeSelfOrNot { IncludeSelf, ExcludeSelf }; 77 enum IncludeSelfOrNot { IncludeSelf, ExcludeSelf };
79 78
80 enum CompositingQueryMode { 79 enum CompositingQueryMode {
81 CompositingQueriesAreAllowed, 80 CompositingQueriesAreAllowed,
82 CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases 81 CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases
83 }; 82 };
84 83
85 // FIXME: remove this once the compositing query DCHECKS are no longer hit. 84 // FIXME: remove this once the compositing query DCHECKS are no longer hit.
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 } 963 }
965 void setNeedsPaintPhaseDescendantBlockBackgrounds() { 964 void setNeedsPaintPhaseDescendantBlockBackgrounds() {
966 DCHECK(isSelfPaintingLayer()); 965 DCHECK(isSelfPaintingLayer());
967 m_needsPaintPhaseDescendantBlockBackgrounds = true; 966 m_needsPaintPhaseDescendantBlockBackgrounds = true;
968 m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty = false; 967 m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty = false;
969 } 968 }
970 void setPreviousPaintPhaseDescendantBlockBackgroundsEmpty(bool isEmpty) { 969 void setPreviousPaintPhaseDescendantBlockBackgroundsEmpty(bool isEmpty) {
971 m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty = isEmpty; 970 m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty = isEmpty;
972 } 971 }
973 972
974 PaintTiming* paintTiming();
975
976 ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); } 973 ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); }
977 ClipRectsCache& ensureClipRectsCache() const { 974 ClipRectsCache& ensureClipRectsCache() const {
978 if (!m_clipRectsCache) 975 if (!m_clipRectsCache)
979 m_clipRectsCache = WTF::wrapUnique(new ClipRectsCache); 976 m_clipRectsCache = WTF::wrapUnique(new ClipRectsCache);
980 return *m_clipRectsCache; 977 return *m_clipRectsCache;
981 } 978 }
982 void clearClipRectsCache() const { m_clipRectsCache.reset(); } 979 void clearClipRectsCache() const { m_clipRectsCache.reset(); }
983 980
984 bool has3DTransformedDescendant() const { 981 bool has3DTransformedDescendant() const {
985 DCHECK(!m_needsDescendantDependentFlagsUpdate); 982 DCHECK(!m_needsDescendantDependentFlagsUpdate);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 1240
1244 } // namespace blink 1241 } // namespace blink
1245 1242
1246 #ifndef NDEBUG 1243 #ifndef NDEBUG
1247 // Outside the WebCore namespace for ease of invocation from gdb. 1244 // Outside the WebCore namespace for ease of invocation from gdb.
1248 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1245 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1249 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1246 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1250 #endif 1247 #endif
1251 1248
1252 #endif // Layer_h 1249 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698