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

Commit e1f81981 authored by Alec Mouri's avatar Alec Mouri
Browse files

Add trace point for creating backend texture

Bug: 177191401
Test: builds
Change-Id: I5ecc7803b385e4a2b94d8b82c396bda17d16802f
parent 4d25380c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ static sk_sp<SkColorSpace> toSkColorSpace(ui::Dataspace dataspace) {

AutoBackendTexture::AutoBackendTexture(GrDirectContext* context, AHardwareBuffer* buffer,
                                       bool isRender) {
    ATRACE_CALL();
    AHardwareBuffer_Desc desc;
    AHardwareBuffer_describe(buffer, &desc);
    bool createProtectedImage = 0 != (desc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT);