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

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: uses low-bit of refcnt to known when we're in the cache 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) {
+// data->fIsOwnedByCache = false;
+// data->unref();
+ }
+};
+
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698