OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrContext.h" | 9 #include "GrContext.h" |
10 #include "GrContextOptions.h" | 10 #include "GrContextOptions.h" |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 this->flush(); | 534 this->flush(); |
535 } | 535 } |
536 } | 536 } |
537 | 537 |
538 /* | 538 /* |
539 * This method finds a path renderer that can draw the specified path on | 539 * This method finds a path renderer that can draw the specified path on |
540 * the provided target. | 540 * the provided target. |
541 * Due to its expense, the software path renderer has split out so it can | 541 * Due to its expense, the software path renderer has split out so it can |
542 * can be individually allowed/disallowed via the "allowSW" boolean. | 542 * can be individually allowed/disallowed via the "allowSW" boolean. |
543 */ | 543 */ |
544 GrPathRenderer* GrContext::getPathRenderer(const GrPipelineBuilder& pipelineBuil
der, | 544 GrPathRenderer* GrContext::getPathRenderer(const GrPipelineBuilder* pipelineBuil
der, |
545 const SkMatrix& viewMatrix, | 545 const SkMatrix& viewMatrix, |
546 const SkPath& path, | 546 const SkPath& path, |
547 const GrStrokeInfo& stroke, | 547 const GrStrokeInfo& stroke, |
548 bool allowSW, | 548 bool allowSW, |
549 GrPathRendererChain::DrawType drawTyp
e, | 549 GrPathRendererChain::DrawType drawTyp
e, |
550 GrPathRendererChain::StencilSupport*
stencilSupport) { | 550 GrPathRendererChain::StencilSupport*
stencilSupport) { |
551 | 551 |
552 if (!fPathRendererChain) { | 552 if (!fPathRendererChain) { |
553 fPathRendererChain = new GrPathRendererChain(this); | 553 fPathRendererChain = new GrPathRendererChain(this); |
554 } | 554 } |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 | 666 |
667 void GrContext::setResourceCacheLimits(int maxTextures, size_t maxTextureBytes)
{ | 667 void GrContext::setResourceCacheLimits(int maxTextures, size_t maxTextureBytes)
{ |
668 fResourceCache->setLimits(maxTextures, maxTextureBytes); | 668 fResourceCache->setLimits(maxTextures, maxTextureBytes); |
669 } | 669 } |
670 | 670 |
671 ////////////////////////////////////////////////////////////////////////////// | 671 ////////////////////////////////////////////////////////////////////////////// |
672 | 672 |
673 void GrContext::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { | 673 void GrContext::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { |
674 fResourceCache->dumpMemoryStatistics(traceMemoryDump); | 674 fResourceCache->dumpMemoryStatistics(traceMemoryDump); |
675 } | 675 } |
OLD | NEW |