aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrAddPathRenderers_aahairline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/src/GrAddPathRenderers_aahairline.cpp')
-rw-r--r--gpu/src/GrAddPathRenderers_aahairline.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/gpu/src/GrAddPathRenderers_aahairline.cpp b/gpu/src/GrAddPathRenderers_aahairline.cpp
new file mode 100644
index 0000000000..a7df66e980
--- /dev/null
+++ b/gpu/src/GrAddPathRenderers_aahairline.cpp
@@ -0,0 +1,20 @@
+
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+
+#include "GrAAHairLinePathRenderer.h"
+
+void GrPathRenderer::AddPathRenderers(GrContext* ctx,
+ GrPathRendererChain::UsageFlags flags,
+ GrPathRendererChain* chain) {
+ if (!(GrPathRendererChain::kNonAAOnly_UsageFlag & flags)) {
+ if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) {
+ chain->addPathRenderer(pr)->unref();
+ }
+ }
+}