diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-01-21 21:03:59 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-01-21 21:03:59 +0000 |
commit | 5782d712ffc31557d0cb12d5a220cebb783f6895 (patch) | |
tree | cdc0b2fb6d9b60ddca81eb7fb6a3906035d29875 /gpu/include/GrSamplerState.h | |
parent | 70915f0210a8749553cbb93b12b2963cf350fff6 (diff) |
Rev the GrContext interface. Context has draw* functions that take a new GrPaint object. Removed many of the lower-level GrGpu function call-throughs on context.
Remove unused/unsupported point size (we don't draw non-hairline points using GL points).
Change current* getter functions to get* for consistency.
Fix bounds when drawing inverse-filled paths.
git-svn-id: http://skia.googlecode.com/svn/trunk@718 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/include/GrSamplerState.h')
-rw-r--r-- | gpu/include/GrSamplerState.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gpu/include/GrSamplerState.h b/gpu/include/GrSamplerState.h index 5fb10b9441..9715c45a41 100644 --- a/gpu/include/GrSamplerState.h +++ b/gpu/include/GrSamplerState.h @@ -46,27 +46,27 @@ public: this->setClampNoFilter(); } - GrSamplerState(bool filter) { + explicit GrSamplerState(bool filter) { fWrapX = kClamp_WrapMode; fWrapY = kClamp_WrapMode; fSampleMode = kNormal_SampleMode; fFilter = filter; } - + GrSamplerState(WrapMode wx, WrapMode wy, bool filter) { fWrapX = wx; fWrapY = wy; fSampleMode = kNormal_SampleMode; fFilter = filter; } - + GrSamplerState(WrapMode wx, WrapMode wy, SampleMode sample, bool filter) { fWrapX = wx; fWrapY = wy; fSampleMode = sample; fFilter = filter; } - + WrapMode getWrapX() const { return fWrapX; } WrapMode getWrapY() const { return fWrapY; } SampleMode getSampleMode() const { return fSampleMode; } @@ -95,8 +95,8 @@ public: bool isRadial2PosRoot() const { return fRadial2PosRoot; } /** - * Sets the parameters for kRadial2_SampleMode. The texture - * matrix must be set so that the first point is at (0,0) and the second + * Sets the parameters for kRadial2_SampleMode. The texture + * matrix must be set so that the first point is at (0,0) and the second * point lies on the x-axis. The second radius minus the first is 1 unit. * The additional parameters to define the gradient are specified by this * function. |