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

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

Issue 2033183002: [SPv2] Paint invalidation in PreWalkTreeWalk, plumbed on PaintInvalidationState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RootFrame
Patch Set: Created 4 years, 6 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 break; 199 break;
200 case InCompositingUpdate: 200 case InCompositingUpdate:
201 return nextState == CompositingClean; 201 return nextState == CompositingClean;
202 case CompositingClean: 202 case CompositingClean:
203 if (nextState == InStyleRecalc) 203 if (nextState == InStyleRecalc)
204 return true; 204 return true;
205 if (nextState == InPreLayout) 205 if (nextState == InPreLayout)
206 return true; 206 return true;
207 if (nextState == InCompositingUpdate) 207 if (nextState == InCompositingUpdate)
208 return true; 208 return true;
209 if (nextState == InPaintInvalidation) 209 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
210 if (nextState == InPrePaint)
211 return true;
212 } else if (nextState == InPaintInvalidation) {
210 return true; 213 return true;
214 }
211 break; 215 break;
212 case InPaintInvalidation: 216 case InPaintInvalidation:
217 DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
213 return nextState == PaintInvalidationClean; 218 return nextState == PaintInvalidationClean;
214 case PaintInvalidationClean: 219 case PaintInvalidationClean:
220 DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
215 if (nextState == InStyleRecalc) 221 if (nextState == InStyleRecalc)
216 return true; 222 return true;
217 if (nextState == InPreLayout) 223 if (nextState == InPreLayout)
218 return true; 224 return true;
219 if (nextState == InCompositingUpdate) 225 if (nextState == InCompositingUpdate)
220 return true; 226 return true;
221 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 227 if (nextState == InPaint)
222 if (nextState == InPrePaint)
223 return true;
224 } else if (nextState == InPaint) {
225 return true; 228 return true;
226 }
227 break; 229 break;
228 case InPrePaint: 230 case InPrePaint:
229 if (nextState == PrePaintClean && RuntimeEnabledFeatures::slimmingPaintV 2Enabled()) 231 if (nextState == PrePaintClean && RuntimeEnabledFeatures::slimmingPaintV 2Enabled())
230 return true; 232 return true;
231 break; 233 break;
232 case PrePaintClean: 234 case PrePaintClean:
233 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) 235 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
234 break; 236 break;
235 if (nextState == InPaint) 237 if (nextState == InPaint)
236 return true; 238 return true;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 DEBUG_STRING_CASE(Stopping); 336 DEBUG_STRING_CASE(Stopping);
335 DEBUG_STRING_CASE(Stopped); 337 DEBUG_STRING_CASE(Stopped);
336 } 338 }
337 339
338 ASSERT_NOT_REACHED(); 340 ASSERT_NOT_REACHED();
339 return "Unknown"; 341 return "Unknown";
340 } 342 }
341 #endif 343 #endif
342 344
343 } // namespace blink 345 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698