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

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

Issue 2419663009: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/PaintArtifact.h" 5 #include "platform/graphics/paint/PaintArtifact.h"
6 6
7 #include "platform/geometry/IntRect.h" 7 #include "platform/geometry/IntRect.h"
8 #include "platform/graphics/GraphicsLayer.h" 8 #include "platform/graphics/GraphicsLayer.h"
9 #include "platform/graphics/paint/DrawingDisplayItem.h" 9 #include "platform/graphics/paint/DrawingDisplayItem.h"
10 #include "platform/tracing/TraceEvent.h" 10 #include "platform/tracing/TraceEvent.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 return sizeof(*this) + m_displayItemList.memoryUsageInBytes() + 80 return sizeof(*this) + m_displayItemList.memoryUsageInBytes() +
81 m_paintChunks.capacity() * sizeof(m_paintChunks[0]); 81 m_paintChunks.capacity() * sizeof(m_paintChunks[0]);
82 } 82 }
83 83
84 void PaintArtifact::replay(GraphicsContext& graphicsContext) const { 84 void PaintArtifact::replay(GraphicsContext& graphicsContext) const {
85 TRACE_EVENT0("blink,benchmark", "PaintArtifact::replay"); 85 TRACE_EVENT0("blink,benchmark", "PaintArtifact::replay");
86 for (const DisplayItem& displayItem : m_displayItemList) 86 for (const DisplayItem& displayItem : m_displayItemList)
87 displayItem.replay(graphicsContext); 87 displayItem.replay(graphicsContext);
88 } 88 }
89 89
90 DISABLE_CFI_PERF
90 void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const { 91 void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const {
91 TRACE_EVENT0("blink,benchmark", "PaintArtifact::appendToWebDisplayItemList"); 92 TRACE_EVENT0("blink,benchmark", "PaintArtifact::appendToWebDisplayItemList");
92 size_t visualRectIndex = 0; 93 size_t visualRectIndex = 0;
93 for (const DisplayItem& displayItem : m_displayItemList) { 94 for (const DisplayItem& displayItem : m_displayItemList) {
94 displayItem.appendToWebDisplayItemList( 95 displayItem.appendToWebDisplayItemList(
95 m_displayItemList.visualRect(visualRectIndex), list); 96 m_displayItemList.visualRect(visualRectIndex), list);
96 visualRectIndex++; 97 visualRectIndex++;
97 } 98 }
98 list->setIsSuitableForGpuRasterization(isSuitableForGpuRasterization()); 99 list->setIsSuitableForGpuRasterization(isSuitableForGpuRasterization());
99 } 100 }
100 101
101 } // namespace blink 102 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698