Home | History | Annotate | Download | only in gpu
      1 
      2 /*
      3  * Copyright 2012 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 #include "GrAAConvexPathRenderer.h"
     12 
     13 void GrPathRenderer::AddPathRenderers(GrContext* ctx,
     14                                       GrPathRendererChain::UsageFlags flags,
     15                                       GrPathRendererChain* chain) {
     16     if (!(GrPathRendererChain::kNonAAOnly_UsageFlag & flags)) {
     17 
     18         if (GrPathRenderer* pr = GrAAHairLinePathRenderer::Create(ctx)) {
     19             chain->addPathRenderer(pr)->unref();
     20         }
     21         chain->addPathRenderer(new GrAAConvexPathRenderer())->unref();
     22     }
     23 }
     24