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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
326 GrLayerCache* getLayerCache() { return fLayerCache.get(); } | 326 GrLayerCache* getLayerCache() { return fLayerCache.get(); } |
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( |
bsalomon
2015/10/27 19:54:03
Maybe we should just pass the RT instead of the is
robertphillips
2015/10/29 14:51:31
I'm on the fence about this one. Passing the RT is
| |
337 const GrPipelineBuilder&, | |
338 const SkMatrix& viewMatrix, | 337 const SkMatrix& viewMatrix, |
339 const SkPath& path, | 338 const SkPath& path, |
340 const GrStrokeInfo& stroke, | 339 const GrStrokeInfo& stroke, |
341 bool allowSW, | 340 bool allowSW, |
342 GrPathRendererChain::DrawType drawType = GrPathRendererChain ::kColor_DrawType, | 341 GrPathRendererChain::DrawType drawType, |
342 bool stencilIsDisabled, | |
343 bool stencilBufferIsMSAA, | |
343 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 344 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
344 | 345 |
345 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ | 346 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ |
346 void dumpCacheStats(SkString*) const; | 347 void dumpCacheStats(SkString*) const; |
347 void printCacheStats() const; | 348 void printCacheStats() const; |
348 | 349 |
349 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ | 350 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ |
350 void dumpGpuStats(SkString*) const; | 351 void dumpGpuStats(SkString*) const; |
351 void printGpuStats() const; | 352 void printGpuStats() const; |
352 | 353 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
440 /** | 441 /** |
441 * A callback similar to the above for use by the TextBlobCache | 442 * 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. | 443 * TODO move textblob draw calls below context so we can use the call above. |
443 */ | 444 */ |
444 static void TextBlobCacheOverBudgetCB(void* data); | 445 static void TextBlobCacheOverBudgetCB(void* data); |
445 | 446 |
446 typedef SkRefCnt INHERITED; | 447 typedef SkRefCnt INHERITED; |
447 }; | 448 }; |
448 | 449 |
449 #endif | 450 #endif |
OLD | NEW |