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

Unified Diff: include/gpu/GrContext.h

Issue 1128873009: adding uniqueID to GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak Created 5 years, 7 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/gpu/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 8bdc9f5b2d99fcf87964345723901559d51bd422..16ebeed342d32122de050add3841919289016485 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -514,6 +514,11 @@ public:
*/
void discardRenderTarget(GrRenderTarget*);
+ /**
+ * An ID associated with this context, guaranteed to be unique.
+ */
+ uint32_t uniqueID() { return fUniqueID; }
+
///////////////////////////////////////////////////////////////////////////
// Legacy functions, to be removed once Chromium stops using them.
@@ -614,6 +619,7 @@ private:
int fMaxTextureSizeOverride;
const Options fOptions;
+ const uint32_t fUniqueID;
GrContext(const Options&); // init must be called after the constructor.
bool init(GrBackend, GrBackendContext);
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698