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

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

Issue 1160863006: delete experimental path renderers (Closed) Base URL: https://skia.googlesource.com/skia.git@map-buffer-option
Patch Set: Created 5 years, 6 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 | « include/gpu/GrConfig.h ('k') | 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 /* 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 #include "GrAADistanceFieldPathRenderer.h"
14 #include "GrContext.h" 14 #include "GrContext.h"
15 #include "GrDashLinePathRenderer.h" 15 #include "GrDashLinePathRenderer.h"
16 #include "GrGpu.h" 16 #include "GrGpu.h"
17 #include "GrTessellatingPathRenderer.h" 17 #include "GrTessellatingPathRenderer.h"
18 #if GR_STROKE_PATH_RENDERING
19 #include "../../experimental/StrokePathRenderer/GrStrokePathRenderer.h"
20 #endif
21 #if GR_ANDROID_PATH_RENDERING
22 #include "../../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h"
23 #endif
24 18
25 #ifndef GR_TESSELLATING_PATH_RENDERING 19 #ifndef GR_TESSELLATING_PATH_RENDERING
26 #define GR_TESSELLATING_PATH_RENDERING 1 20 #define GR_TESSELLATING_PATH_RENDERING 1
27 #endif 21 #endif
28 22
29 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain ) { 23 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain ) {
30 chain->addPathRenderer(SkNEW_ARGS(GrDashLinePathRenderer, (ctx)))->unref(); 24 chain->addPathRenderer(SkNEW_ARGS(GrDashLinePathRenderer, (ctx)))->unref();
31 25
32 #if GR_STROKE_PATH_RENDERING
33 chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref();
34 #endif
35 #if GR_ANDROID_PATH_RENDERING
36 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref();
37 #endif
38 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx->resource Provider(), 26 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx->resource Provider(),
39 *ctx->getGpu( )->caps())) { 27 *ctx->getGpu( )->caps())) {
40 chain->addPathRenderer(pr)->unref(); 28 chain->addPathRenderer(pr)->unref();
41 } 29 }
42 #if GR_TESSELLATING_PATH_RENDERING 30 #if GR_TESSELLATING_PATH_RENDERING
43 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref(); 31 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref();
44 #endif 32 #endif
45 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) { 33 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) {
46 chain->addPathRenderer(pr)->unref(); 34 chain->addPathRenderer(pr)->unref();
47 } 35 }
48 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); 36 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref();
49 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un ref(); 37 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un ref();
50 } 38 }
OLDNEW
« no previous file with comments | « include/gpu/GrConfig.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698