Fix testSaveAndRestorePicture CTS test

 Bug: 5361506

Change-Id: I0bf916134992300a423d5cb74a437a6e3ce771ed
diff --git a/tests/tests/webkit/src/android/webkit/cts/WebViewTest.java b/tests/tests/webkit/src/android/webkit/cts/WebViewTest.java
index e849dab..1bdd4f8 100755
--- a/tests/tests/webkit/src/android/webkit/cts/WebViewTest.java
+++ b/tests/tests/webkit/src/android/webkit/cts/WebViewTest.java
@@ -960,6 +960,8 @@
                     mWebView.draw(new Canvas(b));
                     assertBitmapFillWithColor(b, Color.WHITE);
 
+                    // restorePicture is only supported in software rendering
+                    mWebView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
                     assertTrue(mWebView.restorePicture(bundle, f));
                 }
             });