| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrContext_DEFINED | 8 #ifndef GrContext_DEFINED |
| 9 #define GrContext_DEFINED | 9 #define GrContext_DEFINED |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class GrPathRenderer; | 32 class GrPathRenderer; |
| 33 class GrResourceEntry; | 33 class GrResourceEntry; |
| 34 class GrResourceCache; | 34 class GrResourceCache; |
| 35 class GrStencilBuffer; | 35 class GrStencilBuffer; |
| 36 class GrTextureParams; | 36 class GrTextureParams; |
| 37 class GrVertexBuffer; | 37 class GrVertexBuffer; |
| 38 class GrVertexBufferAllocPool; | 38 class GrVertexBufferAllocPool; |
| 39 class GrSoftwarePathRenderer; | 39 class GrSoftwarePathRenderer; |
| 40 class SkStrokeRec; | 40 class SkStrokeRec; |
| 41 | 41 |
| 42 class GR_API GrContext : public GrRefCnt { | 42 class SK_API GrContext : public GrRefCnt { |
| 43 public: | 43 public: |
| 44 SK_DECLARE_INST_COUNT(GrContext) | 44 SK_DECLARE_INST_COUNT(GrContext) |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * Creates a GrContext for a backend context. | 47 * Creates a GrContext for a backend context. |
| 48 */ | 48 */ |
| 49 static GrContext* Create(GrBackend, GrBackendContext); | 49 static GrContext* Create(GrBackend, GrBackendContext); |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * Returns the number of GrContext instances for the current thread. | 52 * Returns the number of GrContext instances for the current thread. |
| (...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 GrTexture* texture() { return fTexture; } | 1015 GrTexture* texture() { return fTexture; } |
| 1016 | 1016 |
| 1017 private: | 1017 private: |
| 1018 GrContext* fContext; | 1018 GrContext* fContext; |
| 1019 GrTexture* fTexture; | 1019 GrTexture* fTexture; |
| 1020 }; | 1020 }; |
| 1021 | 1021 |
| 1022 #endif | 1022 #endif |
| OLD | NEW |