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 GrAAFillRectOp_DEFINED 9 #define GrAAFillRectOp_DEFINED 10 11 #include "GrColor.h" 12 #include "SkRefCnt.h" 13 14 class GrMeshDrawOp; 15 class SkMatrix; 16 struct SkRect; 17 18 namespace GrAAFillRectOp { 19 std::unique_ptr<GrMeshDrawOp> Make(GrColor color, 20 const SkMatrix& viewMatrix, 21 const SkRect& rect, 22 const SkRect& devRect); 23 24 std::unique_ptr<GrMeshDrawOp> Make(GrColor color, 25 const SkMatrix& viewMatrix, 26 const SkMatrix& localMatrix, 27 const SkRect& rect); 28 29 std::unique_ptr<GrMeshDrawOp> Make(GrColor color, 30 const SkMatrix& viewMatrix, 31 const SkMatrix& localMatrix, 32 const SkRect& rect, 33 const SkRect& devRect); 34 35 std::unique_ptr<GrMeshDrawOp> MakeWithLocalRect(GrColor color, 36 const SkMatrix& viewMatrix, 37 const SkRect& rect, 38 const SkRect& localRect); 39 }; 40 41 #endif 42