Chromium Code Reviews| Index: dm/DMSrcSink.cpp |
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
| index f99afe48597247dd015f8c69d3aa1192a5ea39a4..89993001a939d3df4de52ee6b8448ef019090b50 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(); |
| + const int maxDimension = |
| + factory.getContextInfo(fContextType, fContextOptions).grContext()->caps()->maxTextureSize(); |
|
egdaniel
2016/05/11 00:37:55
Maybe split this into two calls to fix it all?
bsalomon
2016/05/11 13:00:17
Done.
|
| if (maxDimension < SkTMax(size.width(), size.height())) { |
| return Error::Nonfatal("Src too large to create a texture.\n"); |
| } |