From 9bf135585885b043a05f3e74197314bdb4633c67 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 22 Oct 2026 21:06:44 +0000 Subject: Hardware-accelerate the video dialog's own window Peter, on the referrer build: the player "plays and shows controls, with a white screen instead of video. The scrubber thumbnails pop up, but the main playback is blank white." His screenshot shows YouTube's title, gear, play button, timecode and progress bar all drawn correctly over a blank area. That narrows it a long way. Everything the page renders -- chrome, gradients, the storyboard images behind the scrubber -- composites fine, so the renderer is healthy and the embed is right. The one thing missing is the only thing that does not come from the page: video is composited from a separate surface, and that needs the window it sits in to be hardware accelerated. The player is a Dialog, which is its own Window. The activity declares android:hardwareAccelerated, but that does not carry to a Window a dialog creates for itself, so the flag is now set on it explicitly. No new logic, so nothing new to unit-test: the URL and referrer this loads are unchanged and still covered by YouTubeLinksTest. It is a property of the window the existing WebView lives in. Unverified here, and this emulator cannot settle it: it has no working video path at all in a WebView. It hard-crashed the AVD twice on a plain