Chromium Code Reviews| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 258 case kPrePaintClean: | 258 case kPrePaintClean: |
| 259 if (next_state == kInPaint) | 259 if (next_state == kInPaint) |
| 260 return true; | 260 return true; |
| 261 if (next_state == kInStyleRecalc) | 261 if (next_state == kInStyleRecalc) |
| 262 return true; | 262 return true; |
| 263 if (next_state == kInPreLayout) | 263 if (next_state == kInPreLayout) |
| 264 return true; | 264 return true; |
| 265 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 265 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && |
| 266 next_state == kInCompositingUpdate) | 266 next_state == kInCompositingUpdate) |
| 267 return true; | 267 return true; |
| 268 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 268 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && |
|
Xianzhu
2017/04/20 21:01:13
This is for the test to work.
This also makes tra
| |
| 269 next_state == kInPrePaint) | 269 next_state == kInPrePaint) |
| 270 return true; | 270 return true; |
| 271 break; | 271 break; |
| 272 case kInPaint: | 272 case kInPaint: |
| 273 if (next_state == kPaintClean) | 273 if (next_state == kPaintClean) |
| 274 return true; | 274 return true; |
| 275 break; | 275 break; |
| 276 case kPaintClean: | 276 case kPaintClean: |
| 277 if (next_state == kInStyleRecalc) | 277 if (next_state == kInStyleRecalc) |
| 278 return true; | 278 return true; |
| 279 if (next_state == kInPreLayout) | 279 if (next_state == kInPreLayout) |
| 280 return true; | 280 return true; |
| 281 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 281 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && |
| 282 next_state == kInCompositingUpdate) | 282 next_state == kInCompositingUpdate) |
| 283 return true; | 283 return true; |
| 284 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && | 284 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && |
| 285 next_state == kInPrePaint) | 285 next_state == kInPrePaint) |
| 286 return true; | 286 return true; |
| 287 break; | 287 break; |
| 288 case kStopping: | 288 case kStopping: |
| 289 return next_state == kStopped; | 289 return next_state == kStopped; |
| 290 case kStopped: | 290 case kStopped: |
| 291 return false; | 291 return false; |
| 292 } | 292 } |
| 293 return false; | 293 return false; |
| 294 } | 294 } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 370 << " to " << StateAsDebugString(state) << "."; | 370 << " to " << StateAsDebugString(state) << "."; |
| 371 #endif | 371 #endif |
| 372 state_ = state; | 372 state_ = state; |
| 373 } | 373 } |
| 374 | 374 |
| 375 bool DocumentLifecycle::ThrottlingAllowed() const { | 375 bool DocumentLifecycle::ThrottlingAllowed() const { |
| 376 return g_allow_throttling_count; | 376 return g_allow_throttling_count; |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace blink | 379 } // namespace blink |
| OLD | NEW |