diff options
author | 2012-06-15 14:10:09 +0000 | |
---|---|---|
committer | 2012-06-15 14:10:09 +0000 | |
commit | c0af3173314e227611d8c5541ef2deee0052d412 (patch) | |
tree | 7d2afe69f9255764adb3bf261c085e164c1135eb /include/gpu/GrContext.h | |
parent | f69a11b5c5dc5ae02489dfe7ca6432d641b9f121 (diff) |
TLS GrContext count
Review URL: http://codereview.appspot.com/6298077/
git-svn-id: http://skia.googlecode.com/svn/trunk@4262 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrContext.h')
-rw-r--r-- | include/gpu/GrContext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index ee6130b13d..0cd5116cff 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -42,6 +42,11 @@ public: static GrContext* Create(GrEngine engine, GrPlatform3DContext context3D); + /** + * Returns the number of GrContext instances for the current thread. + */ + static int GetThreadInstanceCount(); + virtual ~GrContext(); /** |