unify pixelref and image ID space, so we can share IDs when we share pixels
I view this as a performance opportunity, not a feature or bug fix per-se.
BUG=skia:
Review URL: https://codereview.chromium.org/1266883002
diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h
index df26f82..4c7ebd6 100644
--- a/src/image/SkImage_Gpu.h
+++ b/src/image/SkImage_Gpu.h
@@ -23,8 +23,8 @@
* An "image" can be a subset/window into a larger texture, so we explicit take the
* width and height.
*/
- SkImage_Gpu(int w, int h, SkAlphaType, GrTexture*, int sampleCountForNewSurfaces,
- SkSurface::Budgeted);
+ SkImage_Gpu(int w, int h, uint32_t uniqueID, SkAlphaType, GrTexture*,
+ int sampleCountForNewSurfaces, SkSurface::Budgeted);
void applyBudgetDecision() const {
GrTexture* tex = this->getTexture();