Remove makeSubset compatibility flag

The migration landed in Chrome CL 2295982

Bug: skia:104662
Change-Id: I3e79759059e81577d80bc98d67f1d76da3f38ed7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303017
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Adlai Holler <adlai@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Adlai Holler 2020-07-15 14:15:53 -04:00 committed by Skia Commit-Bot
parent 5ee964e2a2
commit 3de2a56407

View File

@ -184,11 +184,6 @@ sk_sp<SkImage> SkImage::makeSubset(const SkIRect& subset, GrDirectContext* direc
#if SK_SUPPORT_GPU
auto myContext = as_IB(this)->context();
#ifdef SK_IMAGE_SUBSET_USE_SOURCE_CONTEXT
if (!direct) {
direct = GrAsDirectContext(myContext);
}
#endif
// This check is also performed in the subclass, but we do it here for the short-circuit below.
if (myContext && !myContext->priv().matches(direct)) {
return nullptr;