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

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

Issue 2751433002: [SPv2] Flatten property trees in PaintRecordBuilder into a single display list. (Closed)
Patch Set: none Created 3 years, 8 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 PaintArtifact_h 5 #ifndef PaintArtifact_h
6 #define PaintArtifact_h 6 #define PaintArtifact_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/graphics/paint/DisplayItemList.h" 9 #include "platform/graphics/paint/DisplayItemList.h"
10 #include "platform/graphics/paint/PaintChunk.h" 10 #include "platform/graphics/paint/PaintChunk.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 // Resets to an empty paint artifact. 65 // Resets to an empty paint artifact.
66 void reset(); 66 void reset();
67 67
68 // Returns the approximate memory usage, excluding memory likely to be 68 // Returns the approximate memory usage, excluding memory likely to be
69 // shared with the embedder after copying to WebDisplayItemList. 69 // shared with the embedder after copying to WebDisplayItemList.
70 size_t approximateUnsharedMemoryUsage() const; 70 size_t approximateUnsharedMemoryUsage() const;
71 71
72 // Draws the paint artifact to a GraphicsContext. 72 // Draws the paint artifact to a GraphicsContext.
73 void replay(GraphicsContext&) const; 73 // |bounds| is the bounding box of the paint artifact's display list.
74 void replay(const FloatRect& bounds, GraphicsContext&) const;
74 75
75 // Writes the paint artifact into a WebDisplayItemList. 76 // Writes the paint artifact into a WebDisplayItemList.
76 void appendToWebDisplayItemList(WebDisplayItemList*) const; 77 void appendToWebDisplayItemList(WebDisplayItemList*) const;
77 78
78 private: 79 private:
79 DisplayItemList m_displayItemList; 80 DisplayItemList m_displayItemList;
80 Vector<PaintChunk> m_paintChunks; 81 Vector<PaintChunk> m_paintChunks;
81 bool m_isSuitableForGpuRasterization; 82 bool m_isSuitableForGpuRasterization;
82 }; 83 };
83 84
84 } // namespace blink 85 } // namespace blink
85 86
86 #endif // PaintArtifact_h 87 #endif // PaintArtifact_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698