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

Unified Diff: src/core/SkCachedData_priv.h

Issue 592843003: Add SkCachedData and use it for SkMipMap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use natural bools for state tracking Created 6 years, 3 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
Index: src/core/SkCachedData_priv.h
diff --git a/src/core/SkCachedData_priv.h b/src/core/SkCachedData_priv.h
new file mode 100644
index 0000000000000000000000000000000000000000..247535ccbe6c8191d9dd7124ef2fa9cd52435ff2
--- /dev/null
+++ b/src/core/SkCachedData_priv.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkCachedData_priv_DEFINED
+#define SkCachedData_priv_DEFINED
+
+#include "SkCachedData.h"
+
+class SkCachedDataOwner {
+public:
+ static void UnrefFromCache(SkCachedData* data) {
mtklein 2014/09/27 14:47:50 Is this file dead code?
reed1 2014/09/27 17:25:58 Done.
+// data->fIsOwnedByCache = false;
+// data->unref();
+ }
+};
+
+
+#endif
« src/core/SkCachedData.cpp ('K') | « src/core/SkCachedData.cpp ('k') | src/core/SkMipMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698