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

Commit 0c638dc9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Trace whether RenderEngine is in a protected context or not" into main

parents ea29e90f fc767eec
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -347,6 +347,7 @@ void SkiaRenderEngine::useProtectedContext(bool useProtectedContext) {
    if (useProtectedContextImpl(
    if (useProtectedContextImpl(
            useProtectedContext ? GrProtected::kYes : GrProtected::kNo)) {
            useProtectedContext ? GrProtected::kYes : GrProtected::kNo)) {
        mInProtectedContext = useProtectedContext;
        mInProtectedContext = useProtectedContext;
        SFTRACE_INT("RE inProtectedContext", mInProtectedContext);
        // given that we are sharing the same thread between two contexts we need to
        // given that we are sharing the same thread between two contexts we need to
        // make sure that the thread state is reset when switching between the two.
        // make sure that the thread state is reset when switching between the two.
        if (getActiveContext()) {
        if (getActiveContext()) {