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

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

Issue 855513004: Tessellating GPU path renderer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Actually disable the flag... Created 5 years, 10 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
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 "GrTessellatingPathRenderer.h"
14 #if GR_STROKE_PATH_RENDERING 15 #if GR_STROKE_PATH_RENDERING
15 #include "../../experimental/StrokePathRenderer/GrStrokePathRenderer.h" 16 #include "../../experimental/StrokePathRenderer/GrStrokePathRenderer.h"
16 #endif 17 #endif
17 #if GR_ANDROID_PATH_RENDERING 18 #if GR_ANDROID_PATH_RENDERING
18 #include "../../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h" 19 #include "../../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h"
19 #endif 20 #endif
20 21
22 #define GR_TESSELLATING_PATH_RENDERING 0
23
21 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain ) { 24 void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain ) {
22 #if GR_STROKE_PATH_RENDERING 25 #if GR_STROKE_PATH_RENDERING
23 chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref(); 26 chain->addPathRenderer(SkNEW(GrStrokePathRenderer))->unref();
24 #endif 27 #endif
25 #if GR_ANDROID_PATH_RENDERING 28 #if GR_ANDROID_PATH_RENDERING
26 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref(); 29 chain->addPathRenderer(SkNEW(GrAndroidPathRenderer))->unref();
27 #endif 30 #endif
31 #if GR_TESSELLATING_PATH_RENDERING
32 chain->addPathRenderer(new GrTessellatingPathRenderer)->unref();
33 #endif
28 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) { 34 if (GrPathRenderer* pr = GrStencilAndCoverPathRenderer::Create(ctx)) {
29 chain->addPathRenderer(pr)->unref(); 35 chain->addPathRenderer(pr)->unref();
30 } 36 }
31 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) { 37 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) {
32 chain->addPathRenderer(pr)->unref(); 38 chain->addPathRenderer(pr)->unref();
33 } 39 }
34 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref(); 40 chain->addPathRenderer(SkNEW(GrAAConvexPathRenderer))->unref();
35 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un ref(); 41 chain->addPathRenderer(SkNEW_ARGS(GrAADistanceFieldPathRenderer, (ctx)))->un ref();
36 } 42 }
OLDNEW
« no previous file with comments | « gyp/tests.gypi ('k') | src/gpu/GrPathUtils.cpp » ('j') | src/gpu/GrPathUtils.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698