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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp

Issue 1774193002: New paint invalidation using paint property tree walk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correct tracking of paintInvalidationContainer Created 4 years, 9 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 break; 190 break;
191 case InCompositingUpdate: 191 case InCompositingUpdate:
192 return nextState == CompositingClean; 192 return nextState == CompositingClean;
193 case CompositingClean: 193 case CompositingClean:
194 if (nextState == InStyleRecalc) 194 if (nextState == InStyleRecalc)
195 return true; 195 return true;
196 if (nextState == InPreLayout) 196 if (nextState == InPreLayout)
197 return true; 197 return true;
198 if (nextState == InCompositingUpdate) 198 if (nextState == InCompositingUpdate)
199 return true; 199 return true;
200 if (nextState == InPaintInvalidation) 200 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
201 if (nextState == InUpdatePaintProperties)
202 return true;
203 } else if (nextState == InPaintInvalidation) {
201 return true; 204 return true;
205 }
202 break; 206 break;
203 case InPaintInvalidation: 207 case InPaintInvalidation:
208 ASSERT(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
204 return nextState == PaintInvalidationClean; 209 return nextState == PaintInvalidationClean;
205 case PaintInvalidationClean: 210 case PaintInvalidationClean:
211 ASSERT(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
206 if (nextState == InStyleRecalc) 212 if (nextState == InStyleRecalc)
207 return true; 213 return true;
208 if (nextState == InPreLayout) 214 if (nextState == InPreLayout)
209 return true; 215 return true;
210 if (nextState == InCompositingUpdate) 216 if (nextState == InCompositingUpdate)
211 return true; 217 return true;
212 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 218 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
213 if (nextState == InUpdatePaintProperties) 219 if (nextState == InUpdatePaintProperties)
214 return true; 220 return true;
215 } else if (nextState == InPaint) { 221 } else if (nextState == InPaint) {
216 return true; 222 return true;
217 } 223 }
218 break; 224 break;
219 case InUpdatePaintProperties: 225 case InUpdatePaintProperties:
220 if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::s limmingPaintV2Enabled()) 226 if (nextState == UpdatePaintPropertiesClean && (RuntimeEnabledFeatures:: slimmingPaintV2Enabled() || RuntimeEnabledFeatures::slimmingPaintInvalidationEna bled()))
221 return true; 227 return true;
222 break; 228 break;
223 case UpdatePaintPropertiesClean: 229 case UpdatePaintPropertiesClean:
224 if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintV2Enabl ed()) 230 if (nextState == InPaint && (RuntimeEnabledFeatures::slimmingPaintV2Enab led() || RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()))
225 return true; 231 return true;
226 break; 232 break;
227 case InPaint: 233 case InPaint:
228 if (nextState == PaintClean) 234 if (nextState == PaintClean)
229 return true; 235 return true;
230 break; 236 break;
231 case PaintClean: 237 case PaintClean:
232 if (nextState == InStyleRecalc) 238 if (nextState == InStyleRecalc)
233 return true; 239 return true;
234 if (nextState == InPreLayout) 240 if (nextState == InPreLayout)
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 DEBUG_STRING_CASE(Stopped); 322 DEBUG_STRING_CASE(Stopped);
317 DEBUG_STRING_CASE(Disposed); 323 DEBUG_STRING_CASE(Disposed);
318 } 324 }
319 325
320 ASSERT_NOT_REACHED(); 326 ASSERT_NOT_REACHED();
321 return "Unknown"; 327 return "Unknown";
322 } 328 }
323 #endif 329 #endif
324 330
325 } // namespace blink 331 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698