1 /* 2 * Copyright 2015 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 GrNonAAStrokeRectOp_DEFINED 9 #define GrNonAAStrokeRectOp_DEFINED 10 11 #include "GrColor.h" 12 #include "SkRefCnt.h" 13 14 class GrMeshDrawOp; 15 struct SkRect; 16 class SkStrokeRec; 17 class SkMatrix; 18 19 namespace GrNonAAStrokeRectOp { 20 21 std::unique_ptr<GrMeshDrawOp> Make(GrColor color, 22 const SkMatrix& viewMatrix, 23 const SkRect& rect, 24 const SkStrokeRec&, 25 bool snapToPixelCenters); 26 } 27 28 #endif 29