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

Unified Diff: include/gpu/GrGpuResource.h

Issue 2301523003: Have GrSurfaceProxys and GrGpuResources draw from the same pool of unique ids (Closed)
Patch Set: Add test Created 4 years, 4 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 | include/private/GrSurfaceProxy.h » ('j') | include/private/GrSurfaceProxy.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrGpuResource.h
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index fb7cb8c94dd84a4770594ff6604899ad2093ee85..c81a02f690ea2ae9ef2376e6b7dd795e91c112d5 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -279,6 +279,7 @@ private:
#ifdef SK_DEBUG
friend class GrGpu; // for assert in GrGpu to access getGpu
#endif
+ friend class GrSurfaceProxy; // for access to CreateUniqueID
bsalomon 2016/08/31 17:53:18 Is there a lighter weight way we could do this? I
robertphillips 2016/08/31 19:11:38 Done. Made it public.
static uint32_t CreateUniqueID();
« no previous file with comments | « no previous file | include/private/GrSurfaceProxy.h » ('j') | include/private/GrSurfaceProxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698