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

Unified Diff: include/core/SkImage.h

Issue 1266883002: unify pixelref and image ID space, so we can share IDs when we share pixels (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 | src/core/SkNextID.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImage.h
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 2b759b800387882577b6cad8a7c029b44b56a373..e89ffa5e59a9037a76e8739fbed6df71413e05a6 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -283,22 +283,13 @@ public:
bool asLegacyBitmap(SkBitmap*, LegacyBitmapMode) const;
protected:
- SkImage(int width, int height) :
- fWidth(width),
- fHeight(height),
- fUniqueID(NextUniqueID()) {
-
- SkASSERT(width > 0);
- SkASSERT(height > 0);
- }
+ SkImage(int width, int height, uint32_t uniqueID);
private:
const int fWidth;
const int fHeight;
const uint32_t fUniqueID;
- static uint32_t NextUniqueID();
-
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « no previous file | src/core/SkNextID.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698