Index: src/core/SkSpecialImage.cpp |
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp |
index b59bb414056867fa833c985b3fc279e36afa6ab0..b17d5d4147d998d85016a1f2d50c6bbb63ac91e7 100644 |
--- a/src/core/SkSpecialImage.cpp |
+++ b/src/core/SkSpecialImage.cpp |
@@ -9,8 +9,6 @@ |
#include "SkImage_Base.h" |
#include "SkSpecialImage.h" |
#include "SkSpecialSurface.h" |
- |
-#include "GrContext.h" |
/////////////////////////////////////////////////////////////////////////////// |
class SkSpecialImage_Base : public SkSpecialImage { |
@@ -168,7 +166,7 @@ |
#if SK_SUPPORT_GPU |
GrTexture* texture = as_IB(fImage.get())->peekTexture(); |
if (texture) { |
- GrSurfaceDesc desc = GrImageInfoToSurfaceDesc(info, *texture->getContext()->caps()); |
+ GrSurfaceDesc desc = GrImageInfoToSurfaceDesc(info); |
desc.fFlags = kRenderTarget_GrSurfaceFlag; |
return SkSpecialSurface::NewRenderTarget(this->proxy(), texture->getContext(), desc); |
@@ -386,7 +384,7 @@ |
} |
SkSpecialSurface* onNewSurface(const SkImageInfo& info) const override { |
- GrSurfaceDesc desc = GrImageInfoToSurfaceDesc(info, *fTexture->getContext()->caps()); |
+ GrSurfaceDesc desc = GrImageInfoToSurfaceDesc(info); |
desc.fFlags = kRenderTarget_GrSurfaceFlag; |
return SkSpecialSurface::NewRenderTarget(this->proxy(), fTexture->getContext(), desc); |