Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright 2012 Google Inc. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license that can be |
michael@0 | 5 | * found in the LICENSE file. |
michael@0 | 6 | */ |
michael@0 | 7 | |
michael@0 | 8 | #include "effects/GrSingleTextureEffect.h" |
michael@0 | 9 | |
michael@0 | 10 | GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
michael@0 | 11 | const SkMatrix& m, |
michael@0 | 12 | GrCoordSet coordSet) |
michael@0 | 13 | : fCoordTransform(coordSet, m, texture) |
michael@0 | 14 | , fTextureAccess(texture) { |
michael@0 | 15 | this->addCoordTransform(&fCoordTransform); |
michael@0 | 16 | this->addTextureAccess(&fTextureAccess); |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
michael@0 | 20 | const SkMatrix& m, |
michael@0 | 21 | GrTextureParams::FilterMode filterMode, |
michael@0 | 22 | GrCoordSet coordSet) |
michael@0 | 23 | : fCoordTransform(coordSet, m, texture) |
michael@0 | 24 | , fTextureAccess(texture, filterMode) { |
michael@0 | 25 | this->addCoordTransform(&fCoordTransform); |
michael@0 | 26 | this->addTextureAccess(&fTextureAccess); |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
michael@0 | 30 | const SkMatrix& m, |
michael@0 | 31 | const GrTextureParams& params, |
michael@0 | 32 | GrCoordSet coordSet) |
michael@0 | 33 | : fCoordTransform(coordSet, m, texture) |
michael@0 | 34 | , fTextureAccess(texture, params) { |
michael@0 | 35 | this->addCoordTransform(&fCoordTransform); |
michael@0 | 36 | this->addTextureAccess(&fTextureAccess); |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | GrSingleTextureEffect::~GrSingleTextureEffect() { |
michael@0 | 40 | } |