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

Unified Diff: src/effects/SkMorphologyImageFilter.cpp

Issue 1413673002: Remove DrawingMgr shims from GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove abandon, reset & flush from public DrawingMgr API Created 5 years, 2 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
Index: src/effects/SkMorphologyImageFilter.cpp
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
index f3ae6accd9100e1e2a48f9d5c17d595c9d65989a..29a0e09aa6dc3f8fad592f4fdf2c38746e3d65c0 100644
--- a/src/effects/SkMorphologyImageFilter.cpp
+++ b/src/effects/SkMorphologyImageFilter.cpp
@@ -564,7 +564,8 @@ bool apply_morphology(const SkBitmap& input,
if (nullptr == scratch) {
return false;
}
- SkAutoTUnref<GrDrawContext> dstDrawContext(context->drawContext(scratch->asRenderTarget()));
+ SkAutoTUnref<GrDrawContext> dstDrawContext(
+ context->drawingMgr().drawContext(scratch->asRenderTarget()));
if (!dstDrawContext) {
return false;
}
@@ -587,7 +588,8 @@ bool apply_morphology(const SkBitmap& input,
if (nullptr == scratch) {
return false;
}
- SkAutoTUnref<GrDrawContext> dstDrawContext(context->drawContext(scratch->asRenderTarget()));
+ SkAutoTUnref<GrDrawContext> dstDrawContext(
+ context->drawingMgr().drawContext(scratch->asRenderTarget()));
if (!dstDrawContext) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698