Home | History | Annotate | Download | only in batches
      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 GrAAFillRectBatch_DEFINED
      9 #define GrAAFillRectBatch_DEFINED
     10 
     11 #include "GrColor.h"
     12 
     13 class GrBatch;
     14 class GrDrawBatch;
     15 class SkMatrix;
     16 struct SkRect;
     17 
     18 namespace GrAAFillRectBatch {
     19 GrDrawBatch* Create(GrColor color,
     20                     const SkMatrix& viewMatrix,
     21                     const SkRect& rect,
     22                     const SkRect& devRect);
     23 
     24 GrDrawBatch* Create(GrColor color,
     25                     const SkMatrix& viewMatrix,
     26                     const SkMatrix& localMatrix,
     27                     const SkRect& rect);
     28 
     29 GrDrawBatch* Create(GrColor color,
     30                     const SkMatrix& viewMatrix,
     31                     const SkMatrix& localMatrix,
     32                     const SkRect& rect,
     33                     const SkRect& devRect);
     34 
     35 GrDrawBatch* CreateWithLocalRect(GrColor color,
     36                                  const SkMatrix& viewMatrix,
     37                                  const SkRect& rect,
     38                                  const SkRect& localRect);
     39 
     40 void Append(GrBatch*,
     41             GrColor,
     42             const SkMatrix& viewMatrix,
     43             const SkRect& rect,
     44             const SkRect& devRect);
     45 
     46 void Append(GrBatch*,
     47             GrColor,
     48             const SkMatrix& viewMatrix,
     49             const SkMatrix& localMatrix,
     50             const SkRect& rect,
     51             const SkRect& devRect);
     52 };
     53 
     54 #endif
     55