| 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 |
| 11 #include "GrClip.h" | 11 #include "GrClip.h" |
| 12 #include "GrColor.h" | 12 #include "GrColor.h" |
| 13 #include "GrPaint.h" | 13 #include "GrPaint.h" |
| 14 #include "GrPathRendererChain.h" | 14 #include "GrPathRendererChain.h" |
| 15 #include "GrRenderTarget.h" | 15 #include "GrRenderTarget.h" |
| 16 #include "GrTextureProvider.h" | 16 #include "GrTextureProvider.h" |
| 17 #include "SkMatrix.h" | 17 #include "SkMatrix.h" |
| 18 #include "SkPathEffect.h" | 18 #include "SkPathEffect.h" |
| 19 #include "SkTypes.h" | 19 #include "SkTypes.h" |
| 20 | 20 |
| 21 struct GrBatchAtlasConfig; | 21 struct GrBatchAtlasConfig; |
| 22 class GrBatchFontCache; | 22 class GrBatchFontCache; |
| 23 class GrCaps; | 23 class GrCaps; |
| 24 struct GrContextOptions; | 24 struct GrContextOptions; |
| 25 class GrDrawContext; | 25 class GrDrawContext; |
| 26 class GrDrawTarget; | 26 class GrDrawTarget; |
| 27 class GrFragmentProcessor; | 27 class GrFragmentProcessor; |
| 28 class GrGpu; | 28 class GrGpu; |
| 29 class GrGpuTraceMarker; | |
| 30 class GrIndexBuffer; | 29 class GrIndexBuffer; |
| 31 class GrLayerCache; | 30 class GrLayerCache; |
| 32 class GrOvalRenderer; | 31 class GrOvalRenderer; |
| 33 class GrPath; | 32 class GrPath; |
| 34 class GrPathRenderer; | 33 class GrPathRenderer; |
| 35 class GrPipelineBuilder; | 34 class GrPipelineBuilder; |
| 36 class GrResourceEntry; | 35 class GrResourceEntry; |
| 37 class GrResourceCache; | 36 class GrResourceCache; |
| 38 class GrResourceProvider; | 37 class GrResourceProvider; |
| 39 class GrTestTarget; | 38 class GrTestTarget; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 GrLayerCache* getLayerCache() { return fLayerCache.get(); } | 324 GrLayerCache* getLayerCache() { return fLayerCache.get(); } |
| 326 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } | 325 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } |
| 327 bool abandoned() const { return fDrawingMgr.abandoned(); } | 326 bool abandoned() const { return fDrawingMgr.abandoned(); } |
| 328 GrResourceProvider* resourceProvider() { return fResourceProvider; } | 327 GrResourceProvider* resourceProvider() { return fResourceProvider; } |
| 329 const GrResourceProvider* resourceProvider() const { return fResourceProvide
r; } | 328 const GrResourceProvider* resourceProvider() const { return fResourceProvide
r; } |
| 330 GrResourceCache* getResourceCache() { return fResourceCache; } | 329 GrResourceCache* getResourceCache() { return fResourceCache; } |
| 331 | 330 |
| 332 // Called by tests that draw directly to the context via GrDrawTarget | 331 // Called by tests that draw directly to the context via GrDrawTarget |
| 333 void getTestTarget(GrTestTarget*); | 332 void getTestTarget(GrTestTarget*); |
| 334 | 333 |
| 335 void addGpuTraceMarker(const GrGpuTraceMarker* marker); | |
| 336 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); | |
| 337 | |
| 338 GrPathRenderer* getPathRenderer( | 334 GrPathRenderer* getPathRenderer( |
| 339 const GrDrawTarget* target, | 335 const GrDrawTarget* target, |
| 340 const GrPipelineBuilder*, | 336 const GrPipelineBuilder*, |
| 341 const SkMatrix& viewMatrix, | 337 const SkMatrix& viewMatrix, |
| 342 const SkPath& path, | 338 const SkPath& path, |
| 343 const GrStrokeInfo& stroke, | 339 const GrStrokeInfo& stroke, |
| 344 bool allowSW, | 340 bool allowSW, |
| 345 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, | 341 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, |
| 346 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 342 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
| 347 | 343 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 /** | 462 /** |
| 467 * A callback similar to the above for use by the TextBlobCache | 463 * A callback similar to the above for use by the TextBlobCache |
| 468 * TODO move textblob draw calls below context so we can use the call above. | 464 * TODO move textblob draw calls below context so we can use the call above. |
| 469 */ | 465 */ |
| 470 static void TextBlobCacheOverBudgetCB(void* data); | 466 static void TextBlobCacheOverBudgetCB(void* data); |
| 471 | 467 |
| 472 typedef SkRefCnt INHERITED; | 468 typedef SkRefCnt INHERITED; |
| 473 }; | 469 }; |
| 474 | 470 |
| 475 #endif | 471 #endif |
| OLD | NEW |