diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-12 16:11:33 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-12 16:11:33 +0000 |
commit | 1e266f8ff2fb2f05f44e77e046a24410ff7b4c77 (patch) | |
tree | b095ebb1fc619e99e0707b03e4ae90338f609576 /include/gpu | |
parent | 1fadb20c50c2302565f73ae12057a6f5d22192c7 (diff) |
Remove GrDrawState::setSampler, use direct access to sampler
Review URL: http://codereview.appspot.com/5476052/
git-svn-id: http://skia.googlecode.com/svn/trunk@2852 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrSamplerState.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index c0f7fd462b..f1fc86d4a2 100644 --- a/include/gpu/GrSamplerState.h +++ b/include/gpu/GrSamplerState.h @@ -91,14 +91,6 @@ public: this->reset(); } - GrSamplerState(WrapMode wrapXAndY, - Filter filter) - : fRadial2CenterX1() - , fRadial2Radius0() - , fRadial2PosRoot() { - this->reset(wrapXAndY, filter); - } - WrapMode getWrapX() const { return fWrapX; } WrapMode getWrapY() const { return fWrapY; } SampleMode getSampleMode() const { return fSampleMode; } @@ -190,6 +182,15 @@ public: fTextureDomain.setEmpty(); fSwapRAndB = false; } + void reset(const GrMatrix& matrix) { + fWrapX = kClamp_WrapMode; + fWrapY = kClamp_WrapMode; + fSampleMode = kNormal_SampleMode; + fFilter = kNearest_Filter; + fMatrix = matrix; + fTextureDomain.setEmpty(); + fSwapRAndB = false; + } GrScalar getRadial2CenterX1() const { return fRadial2CenterX1; } GrScalar getRadial2Radius0() const { return fRadial2Radius0; } |