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

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

Issue 2899793002: Revert of Don't access DisplayItemClient::VisualRect() for cached display items. (Closed)
Patch Set: Created 3 years, 7 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/PaintCanvas.h" 10 #include "platform/graphics/paint/PaintCanvas.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Draws the paint artifact to a PaintCanvas. 77 // Draws the paint artifact to a PaintCanvas.
78 // |bounds| is the bounding box of the paint artifact's display list. 78 // |bounds| is the bounding box of the paint artifact's display list.
79 // SPv2 only. 79 // SPv2 only.
80 // In SPv2 mode, replays into the ancestor state given by |replayState|. 80 // In SPv2 mode, replays into the ancestor state given by |replayState|.
81 void Replay( 81 void Replay(
82 const FloatRect& bounds, 82 const FloatRect& bounds,
83 PaintCanvas&, 83 PaintCanvas&,
84 const PropertyTreeState& replay_state = PropertyTreeState::Root()) const; 84 const PropertyTreeState& replay_state = PropertyTreeState::Root()) const;
85 85
86 // Writes the paint artifact into a WebDisplayItemList. 86 // Writes the paint artifact into a WebDisplayItemList.
87 void AppendToWebDisplayItemList(const LayoutSize& visual_rect_offset, 87 void AppendToWebDisplayItemList(WebDisplayItemList*) const;
88 WebDisplayItemList*) const;
89 88
90 private: 89 private:
91 DisplayItemList display_item_list_; 90 DisplayItemList display_item_list_;
92 Vector<PaintChunk> paint_chunks_; 91 Vector<PaintChunk> paint_chunks_;
93 bool is_suitable_for_gpu_rasterization_; 92 bool is_suitable_for_gpu_rasterization_;
94 }; 93 };
95 94
96 } // namespace blink 95 } // namespace blink
97 96
98 #endif // PaintArtifact_h 97 #endif // PaintArtifact_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698