Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 1552693002: Add paint testing mode subsequence_caching_disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RemoveSyncPaint
Patch Set: Rebase on origin/master Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698