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

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

Issue 1417533009: Smaller initial DisplayItemList to use less memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
index 2e789edc90e4153587f76fda2c710013fb478f7d..362326283e9e6eef30159a4b5bf83bd36f706ad2 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -28,7 +28,7 @@ namespace blink {
class GraphicsLayer;
class GraphicsContext;
-static const size_t kInitialDisplayItemListCapacity = 64;
+static const size_t kInitialDisplayItemListCapacityBytes = 512;
// Responsible for processing display items as they are produced, and producing
// a final paint artifact when complete. This class includes logic for caching,
@@ -162,7 +162,7 @@ public:
protected:
PaintController()
- : m_newDisplayItemList(kInitialDisplayItemListCapacity * kMaximumDisplayItemSize)
+ : m_newDisplayItemList(kInitialDisplayItemListCapacityBytes)
, m_validlyCachedClientsDirty(false)
, m_constructionDisabled(false)
, m_textPainted(false)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698