mogoweb / chromium_webview

Android WebView wrapper based on chromium
http://mogoweb.github.com
BSD 3-Clause "New" or "Revised" License
514 stars 160 forks source link

Only background color renders #4

Closed JohnLouderback closed 10 years ago

JohnLouderback commented 10 years ago

I'm having a very weird issue. No errors or anything, and a remote inspector shows that all of the elements are present and all of the script execute successfully, but my chrome webview only renders the body's background color. Absolutely nothing else can be seen. It was working flawlessly in the vanilla Android WebView (except performance was poor). Any insight into this issue? I'm testing on a Droid Razr Maxx HD running Android 4.1.2

Thanks, -John

JohnLouderback commented 10 years ago

I very highly suspect that this has something to do with it:

10-03 18:41:30.765: W/AwContents(22369): nativeOnDraw failed; clearing to background color.
mogoweb commented 10 years ago

Because hardware accelerated canvas rendering is not supported in Chromium WebView, I modify the code to turn off hardware accelerated canvas. now it works.

JohnLouderback commented 10 years ago

I have pulled the latest code and the "Test Shell" still gives the same error.