| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 == InPrePaintTreeWalk) |
| 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 == InPrePaintTreeWalk) |
| 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 InPrePaintTreeWalk: |
| 220 if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::s
limmingPaintV2Enabled()) | 226 if (nextState == PrePaintTreeWalkClean && (RuntimeEnabledFeatures::slimm
ingPaintV2Enabled() || RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled(
))) |
| 221 return true; | 227 return true; |
| 222 break; | 228 break; |
| 223 case UpdatePaintPropertiesClean: | 229 case PrePaintTreeWalkClean: |
| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 DEBUG_STRING_CASE(InLayoutSubtreeChange); | 307 DEBUG_STRING_CASE(InLayoutSubtreeChange); |
| 302 DEBUG_STRING_CASE(LayoutSubtreeChangeClean); | 308 DEBUG_STRING_CASE(LayoutSubtreeChangeClean); |
| 303 DEBUG_STRING_CASE(InPreLayout); | 309 DEBUG_STRING_CASE(InPreLayout); |
| 304 DEBUG_STRING_CASE(InPerformLayout); | 310 DEBUG_STRING_CASE(InPerformLayout); |
| 305 DEBUG_STRING_CASE(AfterPerformLayout); | 311 DEBUG_STRING_CASE(AfterPerformLayout); |
| 306 DEBUG_STRING_CASE(LayoutClean); | 312 DEBUG_STRING_CASE(LayoutClean); |
| 307 DEBUG_STRING_CASE(InCompositingUpdate); | 313 DEBUG_STRING_CASE(InCompositingUpdate); |
| 308 DEBUG_STRING_CASE(CompositingClean); | 314 DEBUG_STRING_CASE(CompositingClean); |
| 309 DEBUG_STRING_CASE(InPaintInvalidation); | 315 DEBUG_STRING_CASE(InPaintInvalidation); |
| 310 DEBUG_STRING_CASE(PaintInvalidationClean); | 316 DEBUG_STRING_CASE(PaintInvalidationClean); |
| 311 DEBUG_STRING_CASE(InUpdatePaintProperties); | 317 DEBUG_STRING_CASE(InPrePaintTreeWalk); |
| 312 DEBUG_STRING_CASE(UpdatePaintPropertiesClean); | 318 DEBUG_STRING_CASE(PrePaintTreeWalkClean); |
| 313 DEBUG_STRING_CASE(InPaint); | 319 DEBUG_STRING_CASE(InPaint); |
| 314 DEBUG_STRING_CASE(PaintClean); | 320 DEBUG_STRING_CASE(PaintClean); |
| 315 DEBUG_STRING_CASE(Stopping); | 321 DEBUG_STRING_CASE(Stopping); |
| 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 |
| OLD | NEW |