| 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 26 matching lines...) Expand all Loading... |
| 37 class GrResourceCache; | 37 class GrResourceCache; |
| 38 class GrTestTarget; | 38 class GrTestTarget; |
| 39 class GrTextBlobCache; | 39 class GrTextBlobCache; |
| 40 class GrTextContext; | 40 class GrTextContext; |
| 41 class GrTextureParams; | 41 class GrTextureParams; |
| 42 class GrVertexBuffer; | 42 class GrVertexBuffer; |
| 43 class GrVertexBufferAllocPool; | 43 class GrVertexBufferAllocPool; |
| 44 class GrStrokeInfo; | 44 class GrStrokeInfo; |
| 45 class GrSoftwarePathRenderer; | 45 class GrSoftwarePathRenderer; |
| 46 class SkGpuDevice; | 46 class SkGpuDevice; |
| 47 class SkStrokeRec; | |
| 48 | 47 |
| 49 class SK_API GrContext : public SkRefCnt { | 48 class SK_API GrContext : public SkRefCnt { |
| 50 public: | 49 public: |
| 51 SK_DECLARE_INST_COUNT(GrContext) | 50 SK_DECLARE_INST_COUNT(GrContext) |
| 52 | 51 |
| 53 struct Options { | 52 struct Options { |
| 54 Options() : fDrawPathToCompressedTexture(false) { } | 53 Options() : fDrawPathToCompressedTexture(false) { } |
| 55 | 54 |
| 56 // EXPERIMENTAL | 55 // EXPERIMENTAL |
| 57 // May be removed in the future, or may become standard depending | 56 // May be removed in the future, or may become standard depending |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 void getTestTarget(GrTestTarget*); | 668 void getTestTarget(GrTestTarget*); |
| 670 | 669 |
| 671 void addGpuTraceMarker(const GrGpuTraceMarker* marker); | 670 void addGpuTraceMarker(const GrGpuTraceMarker* marker); |
| 672 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); | 671 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); |
| 673 | 672 |
| 674 GrPathRenderer* getPathRenderer( | 673 GrPathRenderer* getPathRenderer( |
| 675 const GrDrawTarget* target, | 674 const GrDrawTarget* target, |
| 676 const GrPipelineBuilder*, | 675 const GrPipelineBuilder*, |
| 677 const SkMatrix& viewMatrix, | 676 const SkMatrix& viewMatrix, |
| 678 const SkPath& path, | 677 const SkPath& path, |
| 679 const SkStrokeRec& stroke, | 678 const GrStrokeInfo& stroke, |
| 680 bool allowSW, | 679 bool allowSW, |
| 681 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, | 680 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, |
| 682 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 681 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
| 683 | 682 |
| 684 /** | 683 /** |
| 685 * This returns a copy of the the GrContext::Options that was passed to the | 684 * This returns a copy of the the GrContext::Options that was passed to the |
| 686 * constructor of this class. | 685 * constructor of this class. |
| 687 */ | 686 */ |
| 688 const Options& getOptions() const { return fOptions; } | 687 const Options& getOptions() const { return fOptions; } |
| 689 | 688 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 */ | 792 */ |
| 794 static void TextBlobCacheOverBudgetCB(void* data); | 793 static void TextBlobCacheOverBudgetCB(void* data); |
| 795 | 794 |
| 796 // TODO see note on createTextContext | 795 // TODO see note on createTextContext |
| 797 friend class SkGpuDevice; | 796 friend class SkGpuDevice; |
| 798 | 797 |
| 799 typedef SkRefCnt INHERITED; | 798 typedef SkRefCnt INHERITED; |
| 800 }; | 799 }; |
| 801 | 800 |
| 802 #endif | 801 #endif |
| OLD | NEW |