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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1287093004: Slimming Paint phase 2 compositing algorithm plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase from space Created 5 years, 4 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
« no previous file with comments | « Source/core/layout/LayoutView.h ('k') | Source/core/paint/DisplayItemListPaintTest.cpp » ('j') | 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 } 2213 }
2214 2214
2215 if (!m_compositedDeprecatedPaintLayerMapping) 2215 if (!m_compositedDeprecatedPaintLayerMapping)
2216 return NotComposited; 2216 return NotComposited;
2217 2217
2218 return PaintsIntoOwnBacking; 2218 return PaintsIntoOwnBacking;
2219 } 2219 }
2220 2220
2221 bool DeprecatedPaintLayer::isAllowedToQueryCompositingState() const 2221 bool DeprecatedPaintLayer::isAllowedToQueryCompositingState() const
2222 { 2222 {
2223 if (gCompositingQueryMode == CompositingQueriesAreAllowed) 2223 if (gCompositingQueryMode == CompositingQueriesAreAllowed || RuntimeEnabledF eatures::slimmingPaintV2Enabled())
2224 return true; 2224 return true;
2225 return layoutObject()->document().lifecycle().state() >= DocumentLifecycle:: InCompositingUpdate; 2225 return layoutObject()->document().lifecycle().state() >= DocumentLifecycle:: InCompositingUpdate;
2226 } 2226 }
2227 2227
2228 CompositedDeprecatedPaintLayerMapping* DeprecatedPaintLayer::compositedDeprecate dPaintLayerMapping() const 2228 CompositedDeprecatedPaintLayerMapping* DeprecatedPaintLayer::compositedDeprecate dPaintLayerMapping() const
2229 { 2229 {
2230 ASSERT(isAllowedToQueryCompositingState()); 2230 ASSERT(isAllowedToQueryCompositingState());
2231 return m_compositedDeprecatedPaintLayerMapping.get(); 2231 return m_compositedDeprecatedPaintLayerMapping.get();
2232 } 2232 }
2233 2233
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 2671
2672 void showLayerTree(const blink::LayoutObject* layoutObject) 2672 void showLayerTree(const blink::LayoutObject* layoutObject)
2673 { 2673 {
2674 if (!layoutObject) { 2674 if (!layoutObject) {
2675 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 2675 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
2676 return; 2676 return;
2677 } 2677 }
2678 showLayerTree(layoutObject->enclosingLayer()); 2678 showLayerTree(layoutObject->enclosingLayer());
2679 } 2679 }
2680 #endif 2680 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutView.h ('k') | Source/core/paint/DisplayItemListPaintTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698