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 GLatticeOp_DEFINED 9 #define GLatticeOp_DEFINED 10 11 #include <memory> 12 #include "GrSamplerState.h" 13 #include "SkRefCnt.h" 14 15 class GrDrawOp; 16 class GrPaint; 17 class SkLatticeIter; 18 class GrTextureProxy; 19 class GrColorSpaceXform; 20 class SkMatrix; 21 struct SkRect; 22 23 namespace GrLatticeOp { 24 std::unique_ptr<GrDrawOp> MakeNonAA(GrPaint&&, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy>, 25 sk_sp<GrColorSpaceXform>, GrSamplerState::Filter, 26 std::unique_ptr<SkLatticeIter>, const SkRect& dst); 27 }; 28 29 #endif 30