Index: src/effects/SkTableColorFilter.cpp |
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp |
index 3a6c070fab80c0f400613636f6e0f07dd03e28ca..5ae175ffca7822f43c40c83206d11465249950c5 100644 |
--- a/src/effects/SkTableColorFilter.cpp |
+++ b/src/effects/SkTableColorFilter.cpp |
@@ -331,6 +331,7 @@ SkColorFilter* SkTable_ColorFilter::newComposed(const SkColorFilter* innerFilter |
#if SK_SUPPORT_GPU |
+#include "GrContext.h" |
#include "GrFragmentProcessor.h" |
#include "GrInvariantOutput.h" |
#include "SkGr.h" |
@@ -466,7 +467,7 @@ const GrFragmentProcessor* ColorTableEffect::Create(GrContext* context, SkBitmap |
desc.fHeight = 128; |
desc.fRowHeight = bitmap.height(); |
desc.fContext = context; |
- desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info()); |
+ desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info(), *context->caps()); |
GrTextureStripAtlas* atlas = GrTextureStripAtlas::GetAtlas(desc); |
int row = atlas->lockRow(bitmap); |
SkAutoTUnref<GrTexture> texture; |