Home | History | Annotate | Download | only in ops
      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 GrNonAAFillRectOp_DEFINED
      9 #define GrNonAAFillRectOp_DEFINED
     10 
     11 #include "GrColor.h"
     12 #include "SkRefCnt.h"
     13 
     14 class GrMeshDrawOp;
     15 class SkMatrix;
     16 struct SkRect;
     17 
     18 namespace GrNonAAFillRectOp {
     19 
     20 std::unique_ptr<GrMeshDrawOp> Make(GrColor color,
     21                                    const SkMatrix& viewMatrix,
     22                                    const SkRect& rect,
     23                                    const SkRect* localRect,
     24                                    const SkMatrix* localMatrix);
     25 
     26 std::unique_ptr<GrMeshDrawOp> MakeWithPerspective(GrColor color,
     27                                                   const SkMatrix& viewMatrix,
     28                                                   const SkRect& rect,
     29                                                   const SkRect* localRect,
     30                                                   const SkMatrix* localMatrix);
     31 };
     32 
     33 #endif
     34