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

Unified Diff: include/core/SkCanvas.h

Issue 1450093002: increase pre-allocated MCRecs to match common android calling pattern (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index b49cc27789ba576eb93a84ad39f93cfd4228139f..3e8f362e43c037ab1658c64060c0c465ab5e2e84 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1340,7 +1340,7 @@ private:
// the first N recs that can fit here mean we won't call malloc
enum {
kMCRecSize = 128, // most recent measurement
- kMCRecCount = 8, // common depth for save/restores
+ kMCRecCount = 32, // common depth for save/restores
kDeviceCMSize = 136, // most recent measurement
};
intptr_t fMCRecStorage[kMCRecSize * kMCRecCount / sizeof(intptr_t)];
« 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