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

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

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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #include "core/layout/compositing/CompositedLayerMapping.h" 66 #include "core/layout/compositing/CompositedLayerMapping.h"
67 #include "core/layout/compositing/PaintLayerCompositor.h" 67 #include "core/layout/compositing/PaintLayerCompositor.h"
68 #include "core/layout/svg/LayoutSVGResourceClipper.h" 68 #include "core/layout/svg/LayoutSVGResourceClipper.h"
69 #include "core/layout/svg/LayoutSVGRoot.h" 69 #include "core/layout/svg/LayoutSVGRoot.h"
70 #include "core/page/Page.h" 70 #include "core/page/Page.h"
71 #include "core/page/scrolling/RootScrollerController.h" 71 #include "core/page/scrolling/RootScrollerController.h"
72 #include "core/page/scrolling/ScrollingCoordinator.h" 72 #include "core/page/scrolling/ScrollingCoordinator.h"
73 #include "core/paint/BoxReflectionUtils.h" 73 #include "core/paint/BoxReflectionUtils.h"
74 #include "core/paint/FilterEffectBuilder.h" 74 #include "core/paint/FilterEffectBuilder.h"
75 #include "core/paint/ObjectPaintInvalidator.h" 75 #include "core/paint/ObjectPaintInvalidator.h"
76 #include "core/paint/PaintTiming.h"
77 #include "platform/LengthFunctions.h" 76 #include "platform/LengthFunctions.h"
78 #include "platform/RuntimeEnabledFeatures.h" 77 #include "platform/RuntimeEnabledFeatures.h"
79 #include "platform/geometry/FloatPoint3D.h" 78 #include "platform/geometry/FloatPoint3D.h"
80 #include "platform/geometry/FloatRect.h" 79 #include "platform/geometry/FloatRect.h"
81 #include "platform/geometry/TransformState.h" 80 #include "platform/geometry/TransformState.h"
82 #include "platform/graphics/CompositorFilterOperations.h" 81 #include "platform/graphics/CompositorFilterOperations.h"
83 #include "platform/graphics/filters/Filter.h" 82 #include "platform/graphics/filters/Filter.h"
84 #include "platform/instrumentation/tracing/TraceEvent.h" 83 #include "platform/instrumentation/tracing/TraceEvent.h"
85 #include "platform/transforms/TransformationMatrix.h" 84 #include "platform/transforms/TransformationMatrix.h"
86 #include "wtf/PtrUtil.h" 85 #include "wtf/PtrUtil.h"
(...skipping 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after
3178 layer = container; 3177 layer = container;
3179 } 3178 }
3180 } 3179 }
3181 3180
3182 void PaintLayer::clearNeedsRepaintRecursively() { 3181 void PaintLayer::clearNeedsRepaintRecursively() {
3183 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) 3182 for (PaintLayer* child = firstChild(); child; child = child->nextSibling())
3184 child->clearNeedsRepaintRecursively(); 3183 child->clearNeedsRepaintRecursively();
3185 m_needsRepaint = false; 3184 m_needsRepaint = false;
3186 } 3185 }
3187 3186
3188 PaintTiming* PaintLayer::paintTiming() {
3189 if (Node* node = layoutObject()->node())
3190 return &PaintTiming::from(node->document());
3191 return nullptr;
3192 }
3193
3194 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS 3187 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
3195 void PaintLayer::endShouldKeepAliveAllClientsRecursive() { 3188 void PaintLayer::endShouldKeepAliveAllClientsRecursive() {
3196 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) 3189 for (PaintLayer* child = firstChild(); child; child = child->nextSibling())
3197 child->endShouldKeepAliveAllClientsRecursive(); 3190 child->endShouldKeepAliveAllClientsRecursive();
3198 DisplayItemClient::endShouldKeepAliveAllClients(this); 3191 DisplayItemClient::endShouldKeepAliveAllClients(this);
3199 } 3192 }
3200 #endif 3193 #endif
3201 3194
3202 DisableCompositingQueryAsserts::DisableCompositingQueryAsserts() 3195 DisableCompositingQueryAsserts::DisableCompositingQueryAsserts()
3203 : m_disabler(&gCompositingQueryMode, CompositingQueriesAreAllowed) {} 3196 : m_disabler(&gCompositingQueryMode, CompositingQueriesAreAllowed) {}
(...skipping 24 matching lines...) Expand all
3228 } 3221 }
3229 3222
3230 void showLayerTree(const blink::LayoutObject* layoutObject) { 3223 void showLayerTree(const blink::LayoutObject* layoutObject) {
3231 if (!layoutObject) { 3224 if (!layoutObject) {
3232 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; 3225 LOG(INFO) << "Cannot showLayerTree. Root is (nil)";
3233 return; 3226 return;
3234 } 3227 }
3235 showLayerTree(layoutObject->enclosingLayer()); 3228 showLayerTree(layoutObject->enclosingLayer());
3236 } 3229 }
3237 #endif 3230 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698