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

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

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 years, 7 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 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after
3240 void PaintLayer::SetNeedsRepaint() { 3240 void PaintLayer::SetNeedsRepaint() {
3241 SetNeedsRepaintInternal(); 3241 SetNeedsRepaintInternal();
3242 3242
3243 // Do this unconditionally to ensure container chain is marked when 3243 // Do this unconditionally to ensure container chain is marked when
3244 // compositing status of the layer changes. 3244 // compositing status of the layer changes.
3245 MarkCompositingContainerChainForNeedsRepaint(); 3245 MarkCompositingContainerChainForNeedsRepaint();
3246 } 3246 }
3247 3247
3248 void PaintLayer::SetNeedsRepaintInternal() { 3248 void PaintLayer::SetNeedsRepaintInternal() {
3249 needs_repaint_ = true; 3249 needs_repaint_ = true;
3250 SetDisplayItemsUncached(); // Invalidate as a display item client. 3250 // Invalidate as a display item client.
3251 SetDisplayItemsUncached();
3251 } 3252 }
3252 3253
3253 void PaintLayer::MarkCompositingContainerChainForNeedsRepaint() { 3254 void PaintLayer::MarkCompositingContainerChainForNeedsRepaint() {
3254 // Need to access compositingState(). We've ensured correct flag setting when 3255 // Need to access compositingState(). We've ensured correct flag setting when
3255 // compositingState() changes. 3256 // compositingState() changes.
3256 DisableCompositingQueryAsserts disabler; 3257 DisableCompositingQueryAsserts disabler;
3257 3258
3258 PaintLayer* layer = this; 3259 PaintLayer* layer = this;
3259 while (true) { 3260 while (true) {
3260 if (layer->GetCompositingState() == kPaintsIntoOwnBacking) 3261 if (layer->GetCompositingState() == kPaintsIntoOwnBacking)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3327 } 3328 }
3328 3329
3329 void showLayerTree(const blink::LayoutObject* layoutObject) { 3330 void showLayerTree(const blink::LayoutObject* layoutObject) {
3330 if (!layoutObject) { 3331 if (!layoutObject) {
3331 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; 3332 LOG(INFO) << "Cannot showLayerTree. Root is (nil)";
3332 return; 3333 return;
3333 } 3334 }
3334 showLayerTree(layoutObject->EnclosingLayer()); 3335 showLayerTree(layoutObject->EnclosingLayer());
3335 } 3336 }
3336 #endif 3337 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698