| commit | c0af3173314e227611d8c5541ef2deee0052d412 | [log] [tgz] |
|---|---|---|
| author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Jun 15 14:10:09 2012 +0000 |
| committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Jun 15 14:10:09 2012 +0000 |
| tree | 7d2afe69f9255764adb3bf261c085e164c1135eb | |
| parent | f69a11b5c5dc5ae02489dfe7ca6432d641b9f121 [diff] [blame] |
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
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index ee6130b..0cd5116 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h
@@ -42,6 +42,11 @@ static GrContext* Create(GrEngine engine, GrPlatform3DContext context3D); + /** + * Returns the number of GrContext instances for the current thread. + */ + static int GetThreadInstanceCount(); + virtual ~GrContext(); /**