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

Commit 793b7f84 authored by Chris Craik's avatar Chris Craik
Browse files

Don't attach functor for SW layers

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