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

Unified Diff: include/core/SkPicture.h

Issue 748143002: public SkNVRefCnt<SnapshotArray> (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again Created 6 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/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index ea3db8e7d1cea99c1e5c606833c7be101a778af4..d5c07a37d3e717a0ffe400fc2f51b9cffc4a63a8 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -200,7 +200,7 @@ public:
bool hasText() const;
// A refcounted array of refcounted const SkPicture pointers.
- struct SnapshotArray : public SkNVRefCnt {
+ struct SnapshotArray : public SkNVRefCnt<SnapshotArray> {
SnapshotArray(const SkPicture* pics[], size_t count) : fPics(pics), fCount(count) {}
~SnapshotArray() { for (size_t i = 0; i < fCount; i++) { fPics[i]->unref(); } }
« 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