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

Commit 5a0dcdfe authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "use writepixels on surface, the canvas version is deprecated"

parents f8ed7695 6b6e66d5
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -518,10 +518,7 @@ void Tree::updateCache(sp<skiapipeline::VectorDrawableAtlas>& atlas, GrContext*
            Bitmap& bitmap = getBitmapUpdateIfDirty();
            SkBitmap skiaBitmap;
            bitmap.getSkBitmap(&skiaBitmap);
            if (!surface->getCanvas()->writePixels(skiaBitmap, dst.fLeft, dst.fTop)) {
                ALOGD("VectorDrawable caching failed to efficiently upload");
                surface->getCanvas()->drawBitmap(skiaBitmap, dst.fLeft, dst.fTop);
            }
            surface->writePixels(skiaBitmap, dst.fLeft, dst.fTop);
        }
        mCache.dirty = false;
    }