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

Unified Diff: src/core/SkPixelRef.cpp

Issue 1263463003: use SkNextID::ImageID for android's stable id (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPixelRef.cpp
diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp
index 43e2884bdbb82366545c3e44897c80c3f63f9c83..e79dfba27ceebf729ec553cd83bce750c7be6d74 100644
--- a/src/core/SkPixelRef.cpp
+++ b/src/core/SkPixelRef.cpp
@@ -96,7 +96,7 @@ static SkImageInfo validate_info(const SkImageInfo& info) {
SkPixelRef::SkPixelRef(const SkImageInfo& info)
: fInfo(validate_info(info))
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
- , fStableID(next_gen_id())
+ , fStableID(SkNextID::ImageID())
#endif
{
@@ -116,7 +116,7 @@ SkPixelRef::SkPixelRef(const SkImageInfo& info)
SkPixelRef::SkPixelRef(const SkImageInfo& info, SkBaseMutex* mutex)
: fInfo(validate_info(info))
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
- , fStableID(next_gen_id())
+ , fStableID(SkNextID::ImageID())
#endif
{
#ifdef SK_TRACE_PIXELREF_LIFETIME
« 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