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

Side by Side Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp

Issue 2161253003: Revert of PaintChunk::id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CommitOnTheWay
Patch Set: Created 4 years, 5 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 | « third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h ('k') | 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/testing/PaintPrinters.h" 5 #include "platform/testing/PaintPrinters.h"
6 6
7 #include "platform/graphics/paint/PaintChunk.h" 7 #include "platform/graphics/paint/PaintChunk.h"
8 #include "platform/graphics/paint/PaintChunkProperties.h" 8 #include "platform/graphics/paint/PaintChunkProperties.h"
9 #include <iomanip> // NOLINT 9 #include <iomanip> // NOLINT
10 #include <ostream> // NOLINT 10 #include <ostream> // NOLINT
(...skipping 27 matching lines...) Expand all
38 PrintPointer(node.localTransformSpace(), *os); 38 PrintPointer(node.localTransformSpace(), *os);
39 *os << ", parent="; 39 *os << ", parent=";
40 PrintPointer(node.parent(), *os); 40 PrintPointer(node.parent(), *os);
41 *os << ")"; 41 *os << ")";
42 } 42 }
43 43
44 void PrintTo(const PaintChunk& chunk, std::ostream* os) 44 void PrintTo(const PaintChunk& chunk, std::ostream* os)
45 { 45 {
46 *os << "PaintChunk(begin=" << chunk.beginIndex 46 *os << "PaintChunk(begin=" << chunk.beginIndex
47 << ", end=" << chunk.endIndex 47 << ", end=" << chunk.endIndex
48 << ", id="; 48 << ", props=";
49 if (!chunk.id) {
50 *os << "null";
51 } else {
52 *os << "(" << &chunk.id->client << ", ";
53 #ifndef NDEBUG
54 *os << DisplayItem::typeAsDebugString(chunk.id->type);
55 #else
56 *os << static_cast<int>(chunk.id->type);
57 #endif
58 *os << ")";
59 }
60 *os << ", props=";
61 PrintTo(chunk.properties, os); 49 PrintTo(chunk.properties, os);
62 *os << ", bounds="; 50 *os << ", bounds=";
63 PrintTo(chunk.bounds, os); 51 PrintTo(chunk.bounds, os);
64 *os << ", knownToBeOpaque=" << chunk.knownToBeOpaque << ")"; 52 *os << ", knownToBeOpaque=" << chunk.knownToBeOpaque << ")";
65 } 53 }
66 54
67 void PrintTo(const PaintChunkProperties& properties, std::ostream* os) 55 void PrintTo(const PaintChunkProperties& properties, std::ostream* os)
68 { 56 {
69 *os << "PaintChunkProperties("; 57 *os << "PaintChunkProperties(";
70 bool printedProperty = false; 58 bool printedProperty = false;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 PrintTo(transformPaintProperty.origin(), os); 93 PrintTo(transformPaintProperty.origin(), os);
106 *os << ")"; 94 *os << ")";
107 } 95 }
108 96
109 void PrintTo(const EffectPaintPropertyNode& effect, std::ostream* os) 97 void PrintTo(const EffectPaintPropertyNode& effect, std::ostream* os)
110 { 98 {
111 *os << "EffectPaintPropertyNode(opacity=" << effect.opacity() << ")"; 99 *os << "EffectPaintPropertyNode(opacity=" << effect.opacity() << ")";
112 } 100 }
113 101
114 } // namespace blink 102 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698