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 GrRectBatch_DEFINED 9 #define GrRectBatch_DEFINED 10 11 #include "GrColor.h" 12 13 class GrBatch; 14 class SkMatrix; 15 struct SkRect; 16 17 /* 18 * A factory for returning batches which can draw rectangles. Right now this only handles non-AA 19 * rects 20 */ 21 namespace GrRectBatch { 22 23 GrBatch* Create(GrColor color, 24 const SkMatrix& viewMatrix, 25 const SkRect& rect, 26 const SkRect* localRect, 27 const SkMatrix* localMatrix); 28 29 }; 30 31 #endif 32