diff options
| -rw-r--r-- | libs/hwui/VectorDrawable.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/hwui/VectorDrawable.cpp b/libs/hwui/VectorDrawable.cpp index f662406bdc38..18358e25fd5b 100644 --- a/libs/hwui/VectorDrawable.cpp +++ b/libs/hwui/VectorDrawable.cpp @@ -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; } |