| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 case kPrePaintClean: | 243 case kPrePaintClean: |
| 244 if (next_state == kInPaint) | 244 if (next_state == kInPaint) |
| 245 return true; | 245 return true; |
| 246 if (next_state == kInStyleRecalc) | 246 if (next_state == kInStyleRecalc) |
| 247 return true; | 247 return true; |
| 248 if (next_state == kInPreLayout) | 248 if (next_state == kInPreLayout) |
| 249 return true; | 249 return true; |
| 250 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 250 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && |
| 251 next_state == kInCompositingUpdate) | 251 next_state == kInCompositingUpdate) |
| 252 return true; | 252 return true; |
| 253 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 253 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && |
| 254 next_state == kInPrePaint) | 254 next_state == kInPrePaint) |
| 255 return true; | 255 return true; |
| 256 break; | 256 break; |
| 257 case kInPaint: | 257 case kInPaint: |
| 258 if (next_state == kPaintClean) | 258 if (next_state == kPaintClean) |
| 259 return true; | 259 return true; |
| 260 break; | 260 break; |
| 261 case kPaintClean: | 261 case kPaintClean: |
| 262 if (next_state == kInStyleRecalc) | 262 if (next_state == kInStyleRecalc) |
| 263 return true; | 263 return true; |
| 264 if (next_state == kInPreLayout) | 264 if (next_state == kInPreLayout) |
| 265 return true; | 265 return true; |
| 266 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 266 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && |
| 267 next_state == kInCompositingUpdate) | 267 next_state == kInCompositingUpdate) |
| 268 return true; | 268 return true; |
| 269 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 269 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && |
| 270 next_state == kInPrePaint) | 270 next_state == kInPrePaint) |
| 271 return true; | 271 return true; |
| 272 break; | 272 break; |
| 273 case kStopping: | 273 case kStopping: |
| 274 return next_state == kStopped; | 274 return next_state == kStopped; |
| 275 case kStopped: | 275 case kStopped: |
| 276 return false; | 276 return false; |
| 277 } | 277 } |
| 278 return false; | 278 return false; |
| 279 } | 279 } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 << " to " << StateAsDebugString(state) << "."; | 352 << " to " << StateAsDebugString(state) << "."; |
| 353 #endif | 353 #endif |
| 354 state_ = state; | 354 state_ = state; |
| 355 } | 355 } |
| 356 | 356 |
| 357 bool DocumentLifecycle::ThrottlingAllowed() const { | 357 bool DocumentLifecycle::ThrottlingAllowed() const { |
| 358 return g_allow_throttling_count; | 358 return g_allow_throttling_count; |
| 359 } | 359 } |
| 360 | 360 |
| 361 } // namespace blink | 361 } // namespace blink |
| OLD | NEW |