Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be0bdf61 authored by Nader Jawad's avatar Nader Jawad Committed by Android (Google) Code Review
Browse files

Merge "Fix initialization of snapshot SkImage instance" into sc-qpr1-dev

parents 50d7e14c 74eaabea
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -243,13 +243,12 @@ void RenderNodeDrawable::drawContent(SkCanvas* canvas) const {
            // the corresponding SkImageFilter each time.
            // See b/193145089 and b/197263715
            if (!Properties::enableRenderEffectCache) {
                snapshotImage = renderNode->getLayerSurface()->makeImageSnapshot();
                if (imageFilter) {
                    auto subset = SkIRect::MakeWH(srcBounds.width(), srcBounds.height());
                    snapshotImage = snapshotImage->makeWithFilter(recordingContext, imageFilter,
                                                                  subset, clipBounds.roundOut(),
                                                                  &srcBounds, &offset);
                } else {
                    snapshotImage = renderNode->getLayerSurface()->makeImageSnapshot();
                }
            } else {
                const auto snapshotResult = renderNode->updateSnapshotIfRequired(