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

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

Issue 2422973002: Revert of Convert a few more CFI blacklist entries into DISABLE_CFI_PERF attributes. (Closed)
Patch Set: Created 4 years, 2 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 // 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 "platform/graphics/paint/PaintController.h" 5 #include "platform/graphics/paint/PaintController.h"
6 6
7 #include "platform/graphics/GraphicsLayer.h" 7 #include "platform/graphics/GraphicsLayer.h"
8 #include "platform/graphics/paint/DrawingDisplayItem.h" 8 #include "platform/graphics/paint/DrawingDisplayItem.h"
9 #include "platform/tracing/TraceEvent.h" 9 #include "platform/tracing/TraceEvent.h"
10 #include "third_party/skia/include/core/SkPictureAnalyzer.h" 10 #include "third_party/skia/include/core/SkPictureAnalyzer.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 m_currentPaintArtifact.getDisplayItemList().size()); 458 m_currentPaintArtifact.getDisplayItemList().size());
459 cachedItem = &m_currentPaintArtifact.getDisplayItemList()[cachedItemIndex]; 459 cachedItem = &m_currentPaintArtifact.getDisplayItemList()[cachedItemIndex];
460 } 460 }
461 461
462 if (RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled()) { 462 if (RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled()) {
463 m_underInvalidationCheckingEnd = cachedItemIndex; 463 m_underInvalidationCheckingEnd = cachedItemIndex;
464 DCHECK(isCheckingUnderInvalidation()); 464 DCHECK(isCheckingUnderInvalidation());
465 } 465 }
466 } 466 }
467 467
468 DISABLE_CFI_PERF
469 static IntRect visualRectForDisplayItem( 468 static IntRect visualRectForDisplayItem(
470 const DisplayItem& displayItem, 469 const DisplayItem& displayItem,
471 const LayoutSize& offsetFromLayoutObject) { 470 const LayoutSize& offsetFromLayoutObject) {
472 LayoutRect visualRect = displayItem.client().visualRect(); 471 LayoutRect visualRect = displayItem.client().visualRect();
473 visualRect.move(-offsetFromLayoutObject); 472 visualRect.move(-offsetFromLayoutObject);
474 return enclosingIntRect(visualRect); 473 return enclosingIntRect(visualRect);
475 } 474 }
476 475
477 void PaintController::resetCurrentListIndices() { 476 void PaintController::resetCurrentListIndices() {
478 m_nextItemToMatch = 0; 477 m_nextItemToMatch = 0;
479 m_nextItemToIndex = 0; 478 m_nextItemToIndex = 0;
480 m_nextChunkToMatch = 0; 479 m_nextChunkToMatch = 0;
481 m_underInvalidationCheckingBegin = 0; 480 m_underInvalidationCheckingBegin = 0;
482 m_underInvalidationCheckingEnd = 0; 481 m_underInvalidationCheckingEnd = 0;
483 m_skippedProbableUnderInvalidationCount = 0; 482 m_skippedProbableUnderInvalidationCount = 0;
484 } 483 }
485 484
486 DISABLE_CFI_PERF
487 void PaintController::commitNewDisplayItems( 485 void PaintController::commitNewDisplayItems(
488 const LayoutSize& offsetFromLayoutObject) { 486 const LayoutSize& offsetFromLayoutObject) {
489 TRACE_EVENT2("blink,benchmark", "PaintController::commitNewDisplayItems", 487 TRACE_EVENT2("blink,benchmark", "PaintController::commitNewDisplayItems",
490 "current_display_list_size", 488 "current_display_list_size",
491 (int)m_currentPaintArtifact.getDisplayItemList().size(), 489 (int)m_currentPaintArtifact.getDisplayItemList().size(),
492 "num_non_cached_new_items", 490 "num_non_cached_new_items",
493 (int)m_newDisplayItemList.size() - m_numCachedNewItems); 491 (int)m_newDisplayItemList.size() - m_numCachedNewItems);
494 m_numCachedNewItems = 0; 492 m_numCachedNewItems = 0;
495 493
496 // These data structures are used during painting only. 494 // These data structures are used during painting only.
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 m_currentPaintArtifact.getDisplayItemList(), showPictures) 885 m_currentPaintArtifact.getDisplayItemList(), showPictures)
888 .utf8() 886 .utf8()
889 .data()); 887 .data());
890 WTFLogAlways("new display item list: [%s]\n", 888 WTFLogAlways("new display item list: [%s]\n",
891 displayItemListAsDebugString(m_newDisplayItemList, showPictures) 889 displayItemListAsDebugString(m_newDisplayItemList, showPictures)
892 .utf8() 890 .utf8()
893 .data()); 891 .data());
894 } 892 }
895 893
896 } // namespace blink 894 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698