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

Unified Diff: src/gpu/GrAddPathRenderers_default.cpp

Issue 1280433002: Minor cleanup: remove GR_TESSELLATING_PATH_RENDERING #ifdef. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAddPathRenderers_default.cpp
diff --git a/src/gpu/GrAddPathRenderers_default.cpp b/src/gpu/GrAddPathRenderers_default.cpp
index 4b2caec5c6117fdbd3f5f0868fc151fe08d43f8f..77a26d317183bcc468b88bfdb71140b1c4015064 100644
--- a/src/gpu/GrAddPathRenderers_default.cpp
+++ b/src/gpu/GrAddPathRenderers_default.cpp
@@ -17,10 +17,6 @@
#include "GrGpu.h"
#include "GrTessellatingPathRenderer.h"
-#ifndef GR_TESSELLATING_PATH_RENDERING
-#define GR_TESSELLATING_PATH_RENDERING 1
-#endif
-
void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain) {
chain->addPathRenderer(SkNEW(GrDashLinePathRenderer))->unref();
@@ -28,9 +24,7 @@ void GrPathRenderer::AddPathRenderers(GrContext* ctx, GrPathRendererChain* chain
*ctx->caps())) {
chain->addPathRenderer(pr)->unref();
}
-#if GR_TESSELLATING_PATH_RENDERING
- chain->addPathRenderer(new GrTessellatingPathRenderer)->unref();
-#endif
+ chain->addPathRenderer(SkNEW(GrTessellatingPathRenderer))->unref();
if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create()) {
chain->addPathRenderer(pr)->unref();
}
« 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