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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } | 327 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } |
328 bool abandoned() const; | 328 bool abandoned() const; |
329 GrResourceProvider* resourceProvider() { return fResourceProvider; } | 329 GrResourceProvider* resourceProvider() { return fResourceProvider; } |
330 const GrResourceProvider* resourceProvider() const { return fResourceProvide
r; } | 330 const GrResourceProvider* resourceProvider() const { return fResourceProvide
r; } |
331 GrResourceCache* getResourceCache() { return fResourceCache; } | 331 GrResourceCache* getResourceCache() { return fResourceCache; } |
332 | 332 |
333 // Called by tests that draw directly to the context via GrDrawTarget | 333 // Called by tests that draw directly to the context via GrDrawTarget |
334 void getTestTarget(GrTestTarget*); | 334 void getTestTarget(GrTestTarget*); |
335 | 335 |
336 GrPathRenderer* getPathRenderer( | 336 GrPathRenderer* getPathRenderer( |
337 const GrPipelineBuilder*, | 337 const GrPipelineBuilder&, |
338 const SkMatrix& viewMatrix, | 338 const SkMatrix& viewMatrix, |
339 const SkPath& path, | 339 const SkPath& path, |
340 const GrStrokeInfo& stroke, | 340 const GrStrokeInfo& stroke, |
341 bool allowSW, | 341 bool allowSW, |
342 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, | 342 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, |
343 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 343 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
344 | 344 |
345 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ | 345 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ |
346 void dumpCacheStats(SkString*) const; | 346 void dumpCacheStats(SkString*) const; |
347 void printCacheStats() const; | 347 void printCacheStats() const; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 /** | 440 /** |
441 * A callback similar to the above for use by the TextBlobCache | 441 * A callback similar to the above for use by the TextBlobCache |
442 * TODO move textblob draw calls below context so we can use the call above. | 442 * TODO move textblob draw calls below context so we can use the call above. |
443 */ | 443 */ |
444 static void TextBlobCacheOverBudgetCB(void* data); | 444 static void TextBlobCacheOverBudgetCB(void* data); |
445 | 445 |
446 typedef SkRefCnt INHERITED; | 446 typedef SkRefCnt INHERITED; |
447 }; | 447 }; |
448 | 448 |
449 #endif | 449 #endif |
OLD | NEW |