blob: a7df66e98091435e502a7db5049062d0da09135a [file] [log] [blame]
bsalomon@google.comaeb21602011-08-30 18:13:44 +00001
2/*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9
10#include "GrAAHairLinePathRenderer.h"
11
12void GrPathRenderer::AddPathRenderers(GrContext* ctx,
13 GrPathRendererChain::UsageFlags flags,
14 GrPathRendererChain* chain) {
15 if (!(GrPathRendererChain::kNonAAOnly_UsageFlag & flags)) {
16 if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) {
17 chain->addPathRenderer(pr)->unref();
18 }
19 }
20}