[chromecast] Use null SkSurface instead of bitmap-backed one.
On audio-only devices there is no need to perform rasterization for real. We just need a dummy SkSurface that simply ignores all draw calls. Using the null surface saves 3.6M memory and draw calls are much faster. Bug: 737726 Change-Id: Ic11ee7afc80dd71a6ae5d5d2ba5e4aae513fcb61 Reviewed-on: https://chromium-review.googlesource.com/594643Reviewed-by:Luke Halliwell <halliwell@chromium.org> Commit-Queue: Alok Priyadarshi <alokp@chromium.org> Cr-Commit-Position: refs/heads/master@{#490794}
Showing
Please register or sign in to comment