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

Commit d442aaeb authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

Merge "Don't attach functor for SW layers"

parents 289b55e5 793b7f84
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7911,7 +7911,9 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
        int functor = 0;
        boolean forceInval = isPictureAfterFirstLayout;
        ViewRootImpl viewRoot = mWebView.getViewRootImpl();
        if (mWebView.isHardwareAccelerated() && viewRoot != null) {
        if (mWebView.isHardwareAccelerated()
                && mWebView.getLayerType() != View.LAYER_TYPE_SOFTWARE
                && viewRoot != null) {
            functor = nativeGetDrawGLFunction(mNativeClass);
            if (functor != 0) {
                // force an invalidate if functor attach not successful