1 /* 2 * Copyright 2012 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 #include "effects/GrSingleTextureEffect.h" 9 10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix& m) 11 : fTextureAccess(texture) 12 , fMatrix(m) { 13 this->addTextureAccess(&fTextureAccess); 14 } 15 16 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix& m, bool bilerp) 17 : fTextureAccess(texture, bilerp) 18 , fMatrix(m) { 19 this->addTextureAccess(&fTextureAccess); 20 } 21 22 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, 23 const SkMatrix& m, 24 const GrTextureParams& params) 25 : fTextureAccess(texture, params) 26 , fMatrix(m) { 27 this->addTextureAccess(&fTextureAccess); 28 } 29 30 GrSingleTextureEffect::~GrSingleTextureEffect() { 31 } 32