| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PaintController_h | 5 #ifndef PaintController_h |
| 6 #define PaintController_h | 6 #define PaintController_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/RuntimeEnabledFeatures.h" | 9 #include "platform/RuntimeEnabledFeatures.h" |
| 10 #include "platform/geometry/IntRect.h" | 10 #include "platform/geometry/IntRect.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // shared with the embedder after copying to WebPaintController. | 114 // shared with the embedder after copying to WebPaintController. |
| 115 // Should only be called right after commitNewDisplayItems. | 115 // Should only be called right after commitNewDisplayItems. |
| 116 size_t approximateUnsharedMemoryUsage() const; | 116 size_t approximateUnsharedMemoryUsage() const; |
| 117 | 117 |
| 118 // Get the artifact generated after the last commit. | 118 // Get the artifact generated after the last commit. |
| 119 const PaintArtifact& paintArtifact() const; | 119 const PaintArtifact& paintArtifact() const; |
| 120 const DisplayItemList& displayItemList() const { return paintArtifact().disp
layItemList(); } | 120 const DisplayItemList& displayItemList() const { return paintArtifact().disp
layItemList(); } |
| 121 const Vector<PaintChunk>& paintChunks() const { return paintArtifact().paint
Chunks(); } | 121 const Vector<PaintChunk>& paintChunks() const { return paintArtifact().paint
Chunks(); } |
| 122 | 122 |
| 123 bool clientCacheIsValid(DisplayItemClient) const; | 123 bool clientCacheIsValid(DisplayItemClient) const; |
| 124 bool cacheIsEmpty() const { return m_currentPaintArtifact.isEmpty(); } |
| 124 | 125 |
| 125 bool displayItemConstructionIsDisabled() const { return m_constructionDisabl
ed; } | 126 bool displayItemConstructionIsDisabled() const { return m_constructionDisabl
ed; } |
| 126 void setDisplayItemConstructionIsDisabled(const bool disable) { m_constructi
onDisabled = disable; } | 127 void setDisplayItemConstructionIsDisabled(const bool disable) { m_constructi
onDisabled = disable; } |
| 127 | 128 |
| 128 bool textPainted() const { return m_textPainted; } | 129 bool textPainted() const { return m_textPainted; } |
| 129 void setTextPainted() { m_textPainted = true; } | 130 void setTextPainted() { m_textPainted = true; } |
| 130 bool imagePainted() const { return m_imagePainted; } | 131 bool imagePainted() const { return m_imagePainted; } |
| 131 void setImagePainted() { m_imagePainted = true; } | 132 void setImagePainted() { m_imagePainted = true; } |
| 132 | 133 |
| 133 // Returns displayItemList added using createAndAppend() since beginning or | 134 // Returns displayItemList added using createAndAppend() since beginning or |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // easily find where the duplicated ids are from. | 259 // easily find where the duplicated ids are from. |
| 259 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; | 260 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; |
| 260 #endif | 261 #endif |
| 261 | 262 |
| 262 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; | 263 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 } // namespace blink | 266 } // namespace blink |
| 266 | 267 |
| 267 #endif // PaintController_h | 268 #endif // PaintController_h |
| OLD | NEW |