diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-17 18:43:21 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-17 18:43:21 +0000 |
commit | 2f68e7684bb2ecdf0c03a513c31d0626d2caf752 (patch) | |
tree | de5b359fa82d5e3abf26a640a5c11ba7fa4807fb /include/gpu/GrSamplerState.h | |
parent | a8a977a97babddacd406f09b8106ff9f0ef18993 (diff) |
Move texture domains onto a GrCustomStage, off of GrSamplerState.
This will require gyp changes to roll into Chrome.
http://codereview.appspot.com/6405050/
git-svn-id: http://skia.googlecode.com/svn/trunk@4641 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrSamplerState.h')
-rw-r--r-- | include/gpu/GrSamplerState.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index 1f81afad5e..07318486bb 100644 --- a/include/gpu/GrSamplerState.h +++ b/include/gpu/GrSamplerState.h @@ -79,7 +79,6 @@ public: fFilter = s.fFilter; fMatrix = s.fMatrix; fSwapRAndB = s.fSwapRAndB; - fTextureDomain = s.fTextureDomain; GrSafeAssign(fCustomStage, s.fCustomStage); @@ -89,8 +88,6 @@ public: WrapMode getWrapX() const { return fWrapX; } WrapMode getWrapY() const { return fWrapY; } const GrMatrix& getMatrix() const { return fMatrix; } - const GrRect& getTextureDomain() const { return fTextureDomain; } - bool hasTextureDomain() const {return SkIntToScalar(0) != fTextureDomain.right();} Filter getFilter() const { return fFilter; } bool swapsRAndB() const { return fSwapRAndB; } @@ -104,13 +101,6 @@ public: GrMatrix* matrix() { return &fMatrix; } /** - * Sets the sampler's texture coordinate domain to a - * custom rectangle, rather than the default (0,1). - * This option is currently only supported with kClamp_WrapMode - */ - void setTextureDomain(const GrRect& textureDomain) { fTextureDomain = textureDomain; } - - /** * Swaps the R and B components when reading from the texture. Has no effect * if the texture is alpha only. */ @@ -141,7 +131,6 @@ public: fWrapY = wrapXAndY; fFilter = filter; fMatrix = matrix; - fTextureDomain.setEmpty(); fSwapRAndB = false; GrSafeSetNull(fCustomStage); } @@ -167,7 +156,6 @@ private: Filter fFilter : 8; bool fSwapRAndB; GrMatrix fMatrix; - GrRect fTextureDomain; GrCustomStage* fCustomStage; }; |