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#ifndef GrAAConvexPathRenderer_DEFINED 10#define GrAAConvexPathRenderer_DEFINED 11 12#include "GrPathRenderer.h" 13 14class GrAAConvexPathRenderer : public GrPathRenderer { 15public: 16 GrAAConvexPathRenderer(); 17 18 virtual bool canDrawPath(const SkPath& path, 19 const SkStrokeRec& stroke, 20 const GrDrawTarget* target, 21 bool antiAlias) const SK_OVERRIDE; 22 23protected: 24 virtual bool onDrawPath(const SkPath& path, 25 const SkStrokeRec& stroke, 26 GrDrawTarget* target, 27 bool antiAlias) SK_OVERRIDE; 28}; 29 30#endif 31