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

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

Issue 2391383002: Moving platform tracing things into platform/tracing. (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/TraceEvent.h"
8 #include "platform/geometry/IntRect.h" 7 #include "platform/geometry/IntRect.h"
9 #include "platform/graphics/GraphicsLayer.h" 8 #include "platform/graphics/GraphicsLayer.h"
10 #include "platform/graphics/paint/DrawingDisplayItem.h" 9 #include "platform/graphics/paint/DrawingDisplayItem.h"
10 #include "platform/tracing/TraceEvent.h"
11 #include "public/platform/WebDisplayItemList.h" 11 #include "public/platform/WebDisplayItemList.h"
12 #include "third_party/skia/include/core/SkRegion.h" 12 #include "third_party/skia/include/core/SkRegion.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 namespace { 16 namespace {
17 17
18 void computeChunkBoundsAndOpaqueness(const DisplayItemList& displayItems, 18 void computeChunkBoundsAndOpaqueness(const DisplayItemList& displayItems,
19 Vector<PaintChunk>& paintChunks) { 19 Vector<PaintChunk>& paintChunks) {
20 for (PaintChunk& chunk : paintChunks) { 20 for (PaintChunk& chunk : paintChunks) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 size_t visualRectIndex = 0; 92 size_t visualRectIndex = 0;
93 for (const DisplayItem& displayItem : m_displayItemList) { 93 for (const DisplayItem& displayItem : m_displayItemList) {
94 displayItem.appendToWebDisplayItemList( 94 displayItem.appendToWebDisplayItemList(
95 m_displayItemList.visualRect(visualRectIndex), list); 95 m_displayItemList.visualRect(visualRectIndex), list);
96 visualRectIndex++; 96 visualRectIndex++;
97 } 97 }
98 list->setIsSuitableForGpuRasterization(isSuitableForGpuRasterization()); 98 list->setIsSuitableForGpuRasterization(isSuitableForGpuRasterization());
99 } 99 }
100 100
101 } // namespace blink 101 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698