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

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

Issue 1428643004: Repaint on interest rect change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableSyncPaint
Patch Set: Created 5 years, 1 month 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "platform/graphics/paint/PaintController.h" 6 #include "platform/graphics/paint/PaintController.h"
7 7
8 #include "platform/NotImplemented.h" 8 #include "platform/NotImplemented.h"
9 #include "platform/TraceEvent.h" 9 #include "platform/TraceEvent.h"
10 #include "platform/graphics/GraphicsLayer.h" 10 #include "platform/graphics/GraphicsLayer.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 { 271 {
272 TRACE_EVENT2("blink,benchmark", "PaintController::commitNewDisplayItems", 272 TRACE_EVENT2("blink,benchmark", "PaintController::commitNewDisplayItems",
273 "current_display_list_size", (int)m_currentPaintArtifact.displayItemList ().size(), 273 "current_display_list_size", (int)m_currentPaintArtifact.displayItemList ().size(),
274 "num_non_cached_new_items", (int)m_newDisplayItemList.size() - m_numCach edItems); 274 "num_non_cached_new_items", (int)m_newDisplayItemList.size() - m_numCach edItems);
275 275
276 if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled() 276 if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()
277 && !m_newDisplayItemList.isEmpty() 277 && !m_newDisplayItemList.isEmpty()
278 && m_newDisplayItemList.last().type() == DisplayItem::CachedDisplayItemL ist) { 278 && m_newDisplayItemList.last().type() == DisplayItem::CachedDisplayItemL ist) {
279 // The whole display item list is cached. 279 // The whole display item list is cached.
280 ASSERT(m_newDisplayItemList.size() == 1 280 ASSERT(m_newDisplayItemList.size() == 1
281 || (m_newDisplayItemList.size() == 2 && m_newDisplayItemList[0].type () == DisplayItem::DebugRedFill)); 281 || (m_newDisplayItemList.size() == 2 && DisplayItem::nonCachedType(m _newDisplayItemList[0].type()) == DisplayItem::DebugRedFill));
282 ASSERT(m_invalidations.isEmpty()); 282 ASSERT(m_invalidations.isEmpty());
283 ASSERT(m_clientsCheckedPaintInvalidation.isEmpty()); 283 ASSERT(m_clientsCheckedPaintInvalidation.isEmpty());
284 m_newDisplayItemList.clear(); 284 m_newDisplayItemList.clear();
285 m_newPaintChunks.clear(); 285 m_newPaintChunks.clear();
286 return; 286 return;
287 } 287 }
288 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) 288 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
289 m_clientsCheckedPaintInvalidation.clear(); 289 m_clientsCheckedPaintInvalidation.clear();
290 290
291 // These data structures are used during painting only. 291 // These data structures are used during painting only.
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 562
563 void PaintController::showDebugData() const 563 void PaintController::showDebugData() const
564 { 564 {
565 WTFLogAlways("current display item list: [%s]\n", displayItemListAsDebugStri ng(m_currentPaintArtifact.displayItemList()).utf8().data()); 565 WTFLogAlways("current display item list: [%s]\n", displayItemListAsDebugStri ng(m_currentPaintArtifact.displayItemList()).utf8().data());
566 WTFLogAlways("new display item list: [%s]\n", displayItemListAsDebugString(m _newDisplayItemList).utf8().data()); 566 WTFLogAlways("new display item list: [%s]\n", displayItemListAsDebugString(m _newDisplayItemList).utf8().data());
567 } 567 }
568 568
569 #endif // ifndef NDEBUG 569 #endif // ifndef NDEBUG
570 570
571 } // namespace blink 571 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintController.h ('k') | third_party/WebKit/Source/web/PageOverlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698