Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Side by Side Diff: src/gpu/GrContext.cpp

Issue 1421533007: Fix ClipMaskManager's SW-fallback logic (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up? Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698