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

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

Issue 2298613005: Disable MSAAPathRender for Android Framework builds (Closed)
Patch Set: Created 4 years, 3 months 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 | « no previous file | no next file » | 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 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 8
9 #include "GrPathRendererChain.h" 9 #include "GrPathRendererChain.h"
10 10
(...skipping 15 matching lines...) Expand all
26 #include "batches/GrTessellatingPathRenderer.h" 26 #include "batches/GrTessellatingPathRenderer.h"
27 27
28 GrPathRendererChain::GrPathRendererChain(GrContext* context) { 28 GrPathRendererChain::GrPathRendererChain(GrContext* context) {
29 const GrCaps& caps = *context->caps(); 29 const GrCaps& caps = *context->caps();
30 this->addPathRenderer(new GrDashLinePathRenderer)->unref(); 30 this->addPathRenderer(new GrDashLinePathRenderer)->unref();
31 31
32 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(context->reso urceProvider(), 32 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(context->reso urceProvider(),
33 caps)) { 33 caps)) {
34 this->addPathRenderer(pr)->unref(); 34 this->addPathRenderer(pr)->unref();
35 } 35 }
36 #ifndef SK_BUILD_FOR_ANDROID_FRAMEWORK
36 if (caps.sampleShadingSupport()) { 37 if (caps.sampleShadingSupport()) {
37 this->addPathRenderer(new GrMSAAPathRenderer)->unref(); 38 this->addPathRenderer(new GrMSAAPathRenderer)->unref();
38 } 39 }
40 #endif
39 this->addPathRenderer(new GrAAHairLinePathRenderer)->unref(); 41 this->addPathRenderer(new GrAAHairLinePathRenderer)->unref();
40 this->addPathRenderer(new GrAAConvexPathRenderer)->unref(); 42 this->addPathRenderer(new GrAAConvexPathRenderer)->unref();
41 this->addPathRenderer(new GrAALinearizingConvexPathRenderer)->unref(); 43 this->addPathRenderer(new GrAALinearizingConvexPathRenderer)->unref();
42 if (caps.shaderCaps()->plsPathRenderingSupport()) { 44 if (caps.shaderCaps()->plsPathRenderingSupport()) {
43 this->addPathRenderer(new GrPLSPathRenderer)->unref(); 45 this->addPathRenderer(new GrPLSPathRenderer)->unref();
44 } 46 }
45 this->addPathRenderer(new GrAADistanceFieldPathRenderer)->unref(); 47 this->addPathRenderer(new GrAADistanceFieldPathRenderer)->unref();
46 this->addPathRenderer(new GrTessellatingPathRenderer)->unref(); 48 this->addPathRenderer(new GrTessellatingPathRenderer)->unref();
47 this->addPathRenderer(new GrDefaultPathRenderer(caps.twoSidedStencilSupport( ), 49 this->addPathRenderer(new GrDefaultPathRenderer(caps.twoSidedStencilSupport( ),
48 caps.stencilWrapOpsSupport() ))->unref(); 50 caps.stencilWrapOpsSupport() ))->unref();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 continue; 94 continue;
93 } else if (stencilSupport) { 95 } else if (stencilSupport) {
94 *stencilSupport = support; 96 *stencilSupport = support;
95 } 97 }
96 } 98 }
97 return fChain[i]; 99 return fChain[i];
98 } 100 }
99 } 101 }
100 return nullptr; 102 return nullptr;
101 } 103 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698