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

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

Issue 1648023002: Pass along Blink's visual rect for display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/TraceEvent.h" 7 #include "platform/TraceEvent.h"
8 #include "platform/geometry/IntRect.h" 8 #include "platform/geometry/IntRect.h"
9 #include "platform/graphics/paint/DrawingDisplayItem.h" 9 #include "platform/graphics/paint/DrawingDisplayItem.h"
10 #include "third_party/skia/include/core/SkRegion.h" 10 #include "third_party/skia/include/core/SkRegion.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 displayItem.replay(graphicsContext); 90 displayItem.replay(graphicsContext);
91 } 91 }
92 92
93 void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const 93 void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const
94 { 94 {
95 TRACE_EVENT0("blink,benchmark", "PaintArtifact::appendToWebDisplayItemList") ; 95 TRACE_EVENT0("blink,benchmark", "PaintArtifact::appendToWebDisplayItemList") ;
96 #if ENABLE(ASSERT) 96 #if ENABLE(ASSERT)
97 m_displayItemList.assertDisplayItemClientsAreAlive(); 97 m_displayItemList.assertDisplayItemClientsAreAlive();
98 #endif 98 #endif
99 for (const DisplayItem& displayItem : m_displayItemList) { 99 for (const DisplayItem& displayItem : m_displayItemList) {
100 // TODO(wkorman): Pass the actual visual rect for the display item. 100 IntRect visualRect = displayItem.client().visualRect();
101 displayItem.appendToWebDisplayItemList(IntRect(), list); 101 displayItem.appendToWebDisplayItemList(visualRect, list);
pdr. 2016/01/28 23:07:45 Mind wrapping this all up in one line? for (const
102 } 102 }
103 } 103 }
104 104
105 } // namespace blink 105 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698