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

Unified Diff: src/core/SkPictureStateTree.h

Issue 111573002: Avoid heap allocation in SkPictureStateTree constructor (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years 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 | src/core/SkPictureStateTree.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureStateTree.h
===================================================================
--- src/core/SkPictureStateTree.h (revision 12590)
+++ src/core/SkPictureStateTree.h (working copy)
@@ -115,7 +115,6 @@
void appendNode(uint32_t offset);
SkChunkAlloc fAlloc;
- Node* fRoot;
// Needed by saveCollapsed() because nodes do not currently store
// references to their children. If they did, we could just retrieve the
// last added child.
@@ -140,6 +139,9 @@
};
};
+ Node fRoot;
+ SkMatrix fRootMatrix;
+
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « no previous file | src/core/SkPictureStateTree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698