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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // PaintController and the coordinate space of the owning LayoutObject. 111 // PaintController and the coordinate space of the owning LayoutObject.
112 void commitNewDisplayItems(const LayoutSize& offsetFromLayoutObject = Layout Size()); 112 void commitNewDisplayItems(const LayoutSize& offsetFromLayoutObject = Layout Size());
113 113
114 // Returns the approximate memory usage, excluding memory likely to be 114 // Returns the approximate memory usage, excluding memory likely to be
115 // shared with the embedder after copying to WebPaintController. 115 // shared with the embedder after copying to WebPaintController.
116 // Should only be called right after commitNewDisplayItems. 116 // Should only be called right after commitNewDisplayItems.
117 size_t approximateUnsharedMemoryUsage() const; 117 size_t approximateUnsharedMemoryUsage() const;
118 118
119 // Get the artifact generated after the last commit. 119 // Get the artifact generated after the last commit.
120 const PaintArtifact& paintArtifact() const; 120 const PaintArtifact& paintArtifact() const;
121 const DisplayItemList& displayItemList() const { return paintArtifact().disp layItemList(); } 121 const DisplayItemList& getDisplayItemList() const { return paintArtifact().g etDisplayItemList(); }
122 const Vector<PaintChunk>& paintChunks() const { return paintArtifact().paint Chunks(); } 122 const Vector<PaintChunk>& paintChunks() const { return paintArtifact().paint Chunks(); }
123 123
124 bool clientCacheIsValid(const DisplayItemClient&) const; 124 bool clientCacheIsValid(const DisplayItemClient&) const;
125 bool cacheIsEmpty() const { return m_currentPaintArtifact.isEmpty(); } 125 bool cacheIsEmpty() const { return m_currentPaintArtifact.isEmpty(); }
126 126
127 // For micro benchmarking of record time. 127 // For micro benchmarking of record time.
128 bool displayItemConstructionIsDisabled() const { return m_constructionDisabl ed; } 128 bool displayItemConstructionIsDisabled() const { return m_constructionDisabl ed; }
129 void setDisplayItemConstructionIsDisabled(const bool disable) { m_constructi onDisabled = disable; } 129 void setDisplayItemConstructionIsDisabled(const bool disable) { m_constructi onDisabled = disable; }
130 bool subsequenceCachingIsDisabled() const { return m_subsequenceCachingDisab led; } 130 bool subsequenceCachingIsDisabled() const { return m_subsequenceCachingDisab led; }
131 void setSubsequenceCachingIsDisabled(bool disable) { m_subsequenceCachingDis abled = disable; } 131 void setSubsequenceCachingIsDisabled(bool disable) { m_subsequenceCachingDis abled = disable; }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // easily find where the duplicated ids are from. 273 // easily find where the duplicated ids are from.
274 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; 274 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient;
275 #endif 275 #endif
276 276
277 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; 277 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects;
278 }; 278 };
279 279
280 } // namespace blink 280 } // namespace blink
281 281
282 #endif // PaintController_h 282 #endif // PaintController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698