OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 m_debugInfo.clearAnnotatedInvalidateRects(); | 326 m_debugInfo.clearAnnotatedInvalidateRects(); |
327 incrementPaintCount(); | 327 incrementPaintCount(); |
328 | 328 |
329 IntRect newInterestRect; | 329 IntRect newInterestRect; |
330 if (!interestRect) { | 330 if (!interestRect) { |
331 newInterestRect = m_client->computeInterestRect(this, m_previousInterest
Rect); | 331 newInterestRect = m_client->computeInterestRect(this, m_previousInterest
Rect); |
332 interestRect = &newInterestRect; | 332 interestRect = &newInterestRect; |
333 } | 333 } |
334 | 334 |
335 if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled() | 335 if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled() |
336 && !m_client->needsRepaint() && !paintController().cacheIsEmpty() && m_p
reviousInterestRect == *interestRect) { | 336 && !paintController().subsequenceCachingIsDisabled() |
| 337 && !m_client->needsRepaint() |
| 338 && !paintController().cacheIsEmpty() |
| 339 && m_previousInterestRect == *interestRect) { |
337 ASSERT(!paintController().hasInvalidations()); | 340 ASSERT(!paintController().hasInvalidations()); |
338 return false; | 341 return false; |
339 } | 342 } |
340 | 343 |
341 GraphicsContext context(paintController(), disabledMode); | 344 GraphicsContext context(paintController(), disabledMode); |
342 | 345 |
343 #ifndef NDEBUG | 346 #ifndef NDEBUG |
344 if (contentsOpaque() && s_drawDebugRedFill) { | 347 if (contentsOpaque() && s_drawDebugRedFill) { |
345 FloatRect rect(FloatPoint(), size()); | 348 FloatRect rect(FloatPoint(), size()); |
346 if (!DrawingRecorder::useCachedDrawingIfPossible(context, *this, Display
Item::DebugRedFill)) { | 349 if (!DrawingRecorder::useCachedDrawingIfPossible(context, *this, Display
Item::DebugRedFill)) { |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 { | 1261 { |
1259 if (!layer) { | 1262 if (!layer) { |
1260 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1263 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
1261 return; | 1264 return; |
1262 } | 1265 } |
1263 | 1266 |
1264 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1267 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1265 fprintf(stderr, "%s\n", output.utf8().data()); | 1268 fprintf(stderr, "%s\n", output.utf8().data()); |
1266 } | 1269 } |
1267 #endif | 1270 #endif |
OLD | NEW |