| OLD | NEW |
| 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 Loading... |
| 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(WebDisplayItemList*) const; | 87 void AppendToWebDisplayItemList(const LayoutSize& visual_rect_offset, |
| 88 WebDisplayItemList*) const; |
| 88 | 89 |
| 89 private: | 90 private: |
| 90 DisplayItemList display_item_list_; | 91 DisplayItemList display_item_list_; |
| 91 Vector<PaintChunk> paint_chunks_; | 92 Vector<PaintChunk> paint_chunks_; |
| 92 bool is_suitable_for_gpu_rasterization_; | 93 bool is_suitable_for_gpu_rasterization_; |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace blink | 96 } // namespace blink |
| 96 | 97 |
| 97 #endif // PaintArtifact_h | 98 #endif // PaintArtifact_h |
| OLD | NEW |