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

Unified Diff: src/core/SkRecord.h

Issue 449933002: change drawPicture in SkRecord to just ref the picture (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 | src/core/SkRecordDraw.cpp » ('j') | src/core/SkRecords.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecord.h
diff --git a/src/core/SkRecord.h b/src/core/SkRecord.h
index 6c5177eefb6c4464b27c111c42dd4b605a40442d..96da69b12ef8c150729c07c8e846fab5452cb1dc 100644
--- a/src/core/SkRecord.h
+++ b/src/core/SkRecord.h
@@ -64,7 +64,7 @@ public:
// Allocate contiguous space for count Ts, to be freed when the SkRecord is destroyed.
// Here T can be any class, not just those from SkRecords. Throws on failure.
template <typename T>
- T* alloc(unsigned count = 1) {
+ T* alloc(size_t count = 1) {
return (T*)fAlloc.allocThrow(sizeof(T) * count);
}
« no previous file with comments | « no previous file | src/core/SkRecordDraw.cpp » ('j') | src/core/SkRecords.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698