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

Commit 6b6e66d5 authored by Mike Reed's avatar Mike Reed
Browse files

use writepixels on surface, the canvas version is deprecated

Test: make

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