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

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

Issue 1391753005: (WIP) Invalidation during painting (for synchronized painting) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 (nextState == InPaintInvalidation && !RuntimeEnabledFeatures::slimmin gPaintV2Enabled())
201 return true;
202 break;
203 case InPaintInvalidation:
204 return nextState == PaintInvalidationClean;
205 case PaintInvalidationClean:
206 if (nextState == InStyleRecalc)
207 return true;
208 if (nextState == InPreLayout)
209 return true;
210 if (nextState == InCompositingUpdate)
211 return true; 201 return true;
212 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 202 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
213 if (nextState == InUpdatePaintProperties) 203 if (nextState == InUpdatePaintProperties)
214 return true; 204 return true;
215 } else if (nextState == InPaint) { 205 } else if (nextState == InPaint) {
216 return true; 206 return true;
217 } 207 }
218 break; 208 break;
209 case InPaintInvalidation:
210 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
211 return nextState == PaintInvalidationClean;
212 case PaintInvalidationClean:
213 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
214 if (nextState == InStyleRecalc)
215 return true;
216 if (nextState == InPreLayout)
217 return true;
218 if (nextState == InCompositingUpdate)
219 return true;
220 if (nextState == InPaint)
221 return true;
222 break;
219 case InUpdatePaintProperties: 223 case InUpdatePaintProperties:
220 if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::s limmingPaintV2Enabled()) 224 if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::s limmingPaintV2Enabled())
221 return true; 225 return true;
222 break; 226 break;
223 case UpdatePaintPropertiesClean: 227 case UpdatePaintPropertiesClean:
224 if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintV2Enabl ed()) 228 if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintV2Enabl ed())
225 return true; 229 return true;
226 break; 230 break;
227 case InPaint: 231 case InPaint:
228 if (nextState == PaintClean) 232 if (nextState == PaintClean)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 DEBUG_STRING_CASE(Stopped); 320 DEBUG_STRING_CASE(Stopped);
317 DEBUG_STRING_CASE(Disposed); 321 DEBUG_STRING_CASE(Disposed);
318 } 322 }
319 323
320 ASSERT_NOT_REACHED(); 324 ASSERT_NOT_REACHED();
321 return "Unknown"; 325 return "Unknown";
322 } 326 }
323 #endif 327 #endif
324 328
325 } // namespace blink 329 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698