Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 6a8befd81d8fbae1c489d34d853215414e977004..9fe6c91a018ebcdcad364c344914dfc0c77631ff 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -11,8 +11,6 @@ |
#include "SkRadialGradient.h" |
#include "SkTwoPointConicalGradient.h" |
#include "SkSweepGradient.h" |
- |
-#include "GrContext.h" |
void SkGradientShaderBase::Descriptor::flatten(SkWriteBuffer& buffer) const { |
buffer.writeColorArray(fColors, fCount); |
@@ -1119,7 +1117,7 @@ |
desc.fHeight = 32; |
desc.fRowHeight = bitmap.height(); |
desc.fContext = ctx; |
- desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info(), *ctx->caps()); |
+ desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info()); |
fAtlas = GrTextureStripAtlas::GetAtlas(desc); |
SkASSERT(fAtlas); |