Index: src/gpu/effects/GrGradientEffects.cpp |
=================================================================== |
--- src/gpu/effects/GrGradientEffects.cpp (revision 4752) |
+++ src/gpu/effects/GrGradientEffects.cpp (working copy) |
@@ -62,14 +62,12 @@ |
SkBitmap bitmap; |
shader.asABitmap(&bitmap, NULL, NULL, NULL); |
- // Note: we just construct a default sampler state here, which isn't great, |
+ // Note: we pass NULL for the texture params here, which isn't great, |
// however, as long as the bitmap has power-of-two dimensions, which should |
- // be the case for gradient bitmaps, it should be fine |
+ // be the case for gradient bitmaps, it should be fine. |
+ // TODO: Determine the texture params here and pass them in. |
GrAssert(SkIsPow2(bitmap.width()) && SkIsPow2(bitmap.height())); |
- GrSamplerState sampler; |
- |
- GrContext::TextureCacheEntry entry = GrLockCachedBitmapTexture(ctx, bitmap, |
- &sampler); |
+ GrContext::TextureCacheEntry entry = GrLockCachedBitmapTexture(ctx, bitmap, NULL); |
fTexture = entry.texture(); |
SkSafeRef(fTexture); |
fUseTexture = true; |