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

Commit 18069065 authored by Chris Craik's avatar Chris Craik Committed by Android Git Automerger
Browse files

am 30bc0b9e: Merge "Add tracing for path texture upload" into mnc-dev

* commit '30bc0b9e':
  Add tracing for path texture upload
parents 567936c9 30bc0b9e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -280,6 +280,7 @@ void PathCache::clear() {
}
}


void PathCache::generateTexture(SkBitmap& bitmap, Texture* texture) {
void PathCache::generateTexture(SkBitmap& bitmap, Texture* texture) {
    ATRACE_NAME("Upload Path Texture");
    SkAutoLockPixels alp(bitmap);
    SkAutoLockPixels alp(bitmap);
    if (!bitmap.readyToDraw()) {
    if (!bitmap.readyToDraw()) {
        ALOGE("Cannot generate texture from bitmap");
        ALOGE("Cannot generate texture from bitmap");