Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1286)

Unified Diff: dm/DMSrcSink.cpp

Issue 1966013002: Turn ContextInfos returned by GrContextFactory into structs. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: whitespace Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DM.cpp ('k') | tests/ApplyGammaTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
« no previous file with comments | « dm/DM.cpp ('k') | tests/ApplyGammaTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698