bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 1 | |
| 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 | |
| 12 | void 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 | } |