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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h

Issue 2219523004: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 #ifndef PaintChunk_h 5 #ifndef PaintChunk_h
6 #define PaintChunk_h 6 #define PaintChunk_h
7 7
8 #include "platform/geometry/FloatRect.h" 8 #include "platform/geometry/FloatRect.h"
9 #include "platform/graphics/paint/DisplayItem.h" 9 #include "platform/graphics/paint/DisplayItem.h"
10 #include "platform/graphics/paint/PaintChunkProperties.h" 10 #include "platform/graphics/paint/PaintChunkProperties.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 if (!id || !old.id) 44 if (!id || !old.id)
45 return false; 45 return false;
46 if (*id != *old.id) 46 if (*id != *old.id)
47 return false; 47 return false;
48 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS 48 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
49 CHECK(id->client.isAlive()); 49 CHECK(id->client.isAlive());
50 #endif 50 #endif
51 // A chunk whose client is just created should not match any cached chun k, 51 // A chunk whose client is just created should not match any cached chun k,
52 // even if it's id equals the old chunk's id (which may happen if this c hunk's 52 // even if it's id equals the old chunk's id (which may happen if this c hunk's
53 // client is just created at the same address of the old chunk's deleted client). 53 // client is just created at the same address of the old chunk's deleted client).
54 return !id->client.isJustCreated(); 54 return true; // !id->client.isJustCreated();
55 } 55 }
56 56
57 // Index of the first drawing in this chunk. 57 // Index of the first drawing in this chunk.
58 size_t beginIndex; 58 size_t beginIndex;
59 59
60 // Index of the first drawing not in this chunk, so that there are 60 // Index of the first drawing not in this chunk, so that there are
61 // |endIndex - beginIndex| drawings in the chunk. 61 // |endIndex - beginIndex| drawings in the chunk.
62 size_t endIndex; 62 size_t endIndex;
63 63
64 // Identifier of this chunk. If it has a value, it should be unique. 64 // Identifier of this chunk. If it has a value, it should be unique.
(...skipping 30 matching lines...) Expand all
95 return !(a == b); 95 return !(a == b);
96 } 96 }
97 97
98 // Redeclared here to avoid ODR issues. 98 // Redeclared here to avoid ODR issues.
99 // See platform/testing/PaintPrinters.h. 99 // See platform/testing/PaintPrinters.h.
100 void PrintTo(const PaintChunk&, std::ostream*); 100 void PrintTo(const PaintChunk&, std::ostream*);
101 101
102 } // namespace blink 102 } // namespace blink
103 103
104 #endif // PaintChunk_h 104 #endif // PaintChunk_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698