Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index f99afe48597247dd015f8c69d3aa1192a5ea39a4..b1e280d289b1fcfde5af751bdf6e641b1963164f 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -1086,8 +1086,8 @@ Error GPUSink::draw(const Src& src, SkBitmap* dst, SkWStream*, SkString* log) co |
SkImageInfo::Make(size.width(), size.height(), fColorType, |
kPremul_SkAlphaType, fProfileType); |
#if SK_SUPPORT_GPU |
- const int maxDimension = factory.getContextInfo(fContextType, fContextOptions). |
- fGrContext->caps()->maxTextureSize(); |
+ GrContext* context = factory.getContextInfo(fContextType, fContextOptions).grContext(); |
+ const int maxDimension = context->caps()->maxTextureSize(); |
if (maxDimension < SkTMax(size.width(), size.height())) { |
return Error::Nonfatal("Src too large to create a texture.\n"); |
} |