| OLD | NEW |
| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 case InPaintInvalidation: | 212 case InPaintInvalidation: |
| 213 return nextState == PaintInvalidationClean; | 213 return nextState == PaintInvalidationClean; |
| 214 case PaintInvalidationClean: | 214 case PaintInvalidationClean: |
| 215 if (nextState == InStyleRecalc) | 215 if (nextState == InStyleRecalc) |
| 216 return true; | 216 return true; |
| 217 if (nextState == InPreLayout) | 217 if (nextState == InPreLayout) |
| 218 return true; | 218 return true; |
| 219 if (nextState == InCompositingUpdate) | 219 if (nextState == InCompositingUpdate) |
| 220 return true; | 220 return true; |
| 221 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { | 221 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
| 222 if (nextState == InUpdatePaintProperties) | 222 if (nextState == InPrePaint) |
| 223 return true; | 223 return true; |
| 224 } else if (nextState == InPaint) { | 224 } else if (nextState == InPaint) { |
| 225 return true; | 225 return true; |
| 226 } | 226 } |
| 227 break; | 227 break; |
| 228 case InUpdatePaintProperties: | 228 case InPrePaint: |
| 229 if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::s
limmingPaintV2Enabled()) | 229 if (nextState == PrePaintClean && RuntimeEnabledFeatures::slimmingPaintV
2Enabled()) |
| 230 return true; | 230 return true; |
| 231 break; | 231 break; |
| 232 case UpdatePaintPropertiesClean: | 232 case PrePaintClean: |
| 233 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) | 233 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
| 234 break; | 234 break; |
| 235 if (nextState == InPaint) | 235 if (nextState == InPaint) |
| 236 return true; | 236 return true; |
| 237 if (nextState == InStyleRecalc) | 237 if (nextState == InStyleRecalc) |
| 238 return true; | 238 return true; |
| 239 if (nextState == InPreLayout) | 239 if (nextState == InPreLayout) |
| 240 return true; | 240 return true; |
| 241 if (nextState == InCompositingUpdate) | 241 if (nextState == InCompositingUpdate) |
| 242 return true; | 242 return true; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 DEBUG_STRING_CASE(InLayoutSubtreeChange); | 320 DEBUG_STRING_CASE(InLayoutSubtreeChange); |
| 321 DEBUG_STRING_CASE(LayoutSubtreeChangeClean); | 321 DEBUG_STRING_CASE(LayoutSubtreeChangeClean); |
| 322 DEBUG_STRING_CASE(InPreLayout); | 322 DEBUG_STRING_CASE(InPreLayout); |
| 323 DEBUG_STRING_CASE(InPerformLayout); | 323 DEBUG_STRING_CASE(InPerformLayout); |
| 324 DEBUG_STRING_CASE(AfterPerformLayout); | 324 DEBUG_STRING_CASE(AfterPerformLayout); |
| 325 DEBUG_STRING_CASE(LayoutClean); | 325 DEBUG_STRING_CASE(LayoutClean); |
| 326 DEBUG_STRING_CASE(InCompositingUpdate); | 326 DEBUG_STRING_CASE(InCompositingUpdate); |
| 327 DEBUG_STRING_CASE(CompositingClean); | 327 DEBUG_STRING_CASE(CompositingClean); |
| 328 DEBUG_STRING_CASE(InPaintInvalidation); | 328 DEBUG_STRING_CASE(InPaintInvalidation); |
| 329 DEBUG_STRING_CASE(PaintInvalidationClean); | 329 DEBUG_STRING_CASE(PaintInvalidationClean); |
| 330 DEBUG_STRING_CASE(InUpdatePaintProperties); | 330 DEBUG_STRING_CASE(InPrePaint); |
| 331 DEBUG_STRING_CASE(UpdatePaintPropertiesClean); | 331 DEBUG_STRING_CASE(PrePaintClean); |
| 332 DEBUG_STRING_CASE(InPaint); | 332 DEBUG_STRING_CASE(InPaint); |
| 333 DEBUG_STRING_CASE(PaintClean); | 333 DEBUG_STRING_CASE(PaintClean); |
| 334 DEBUG_STRING_CASE(Stopping); | 334 DEBUG_STRING_CASE(Stopping); |
| 335 DEBUG_STRING_CASE(Stopped); | 335 DEBUG_STRING_CASE(Stopped); |
| 336 } | 336 } |
| 337 | 337 |
| 338 ASSERT_NOT_REACHED(); | 338 ASSERT_NOT_REACHED(); |
| 339 return "Unknown"; | 339 return "Unknown"; |
| 340 } | 340 } |
| 341 #endif | 341 #endif |
| 342 | 342 |
| 343 } // namespace blink | 343 } // namespace blink |
| OLD | NEW |