1 /* 2 * Copyright 2011 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef GrAAHairLinePathRenderer_DEFINED 9 #define GrAAHairLinePathRenderer_DEFINED 10 11 #include "src/gpu/GrPathRenderer.h" 12 13 class GrAAHairLinePathRenderer : public GrPathRenderer { 14 public: GrAAHairLinePathRenderer()15 GrAAHairLinePathRenderer() {} 16 17 typedef SkTArray<SkPoint, true> PtArray; 18 typedef SkTArray<int, true> IntArray; 19 typedef SkTArray<float, true> FloatArray; 20 21 private: 22 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override; 23 24 bool onDrawPath(const DrawPathArgs&) override; 25 26 typedef GrPathRenderer INHERITED; 27 }; 28 29 30 #endif 31