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

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

Issue 589103004: Add GrAASmallPathRenderer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address nits Created 6 years, 2 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 | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrSWMaskHelper.h » ('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 2012 Google Inc. 3 * Copyright 2012 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 9
10 #include "GrStencilAndCoverPathRenderer.h" 10 #include "GrStencilAndCoverPathRenderer.h"
11 #include "GrAAHairLinePathRenderer.h" 11 #include "GrAAHairLinePathRenderer.h"
12 #include "GrAAConvexPathRenderer.h" 12 #include "GrAAConvexPathRenderer.h"
13 #include "GrAADistanceFieldPathRenderer.h"
13 #if GR_STROKE_PATH_RENDERING 14 #if GR_STROKE_PATH_RENDERING
14 #include "../../experimental/StrokePathRenderer/GrStrokePathRenderer.h" 15 #include "../../experimental/StrokePathRenderer/GrStrokePathRenderer.h"
15 #endif 16 #endif
16 #if GR_ANDROID_PATH_RENDERING 17 #if GR_ANDROID_PATH_RENDERING
17 #include "../../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h" 18 #include "../../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h"
18 #endif 19 #endif
19 20
20 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain ) { 21 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain ) {
21 #if GR_STROKE_PATH_RENDERING 22 #if GR_STROKE_PATH_RENDERING
22 chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref(); 23 chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref();
23 #endif 24 #endif
24 #if GR_ANDROID_PATH_RENDERING 25 #if GR_ANDROID_PATH_RENDERING
25 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref(); 26 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref();
26 #endif 27 #endif
27 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) { 28 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) {
28 chain->addPathRenderer(pr)->unref(); 29 chain->addPathRenderer(pr)->unref();
29 } 30 }
30 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) { 31 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) {
31 chain->addPathRenderer(pr)->unref(); 32 chain->addPathRenderer(pr)->unref();
32 } 33 }
33 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); 34 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref();
35 #ifndef SK_LEGACY_NO_DISTANCE_FIELD_PATHS
36 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un ref();
37 #endif
34 } 38 }
OLDNEW
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrSWMaskHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698