blob: 37c388e6bd782fe1a3241eacfa9ec7c9872e02fa [file] [log] [blame]
/*
* Copyright 2012 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"
#include "GrAAConvexPathRenderer.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();
}
// Disabled for now. Need to fix issue where some hairlines don't
// wind up going to the hairline renderer and get rendered by this
// PR looking speckly.
//chain->addPathRenderer(new GrAAConvexPathRenderer())->unref();
}
}