commit | fa8930c92b40ffc48dffbcd2a1a0f6eb37260cfd | [log] [tgz] |
---|---|---|
author | Sergey Ulanov <sergeyu@chromium.org> | Fri Jan 11 00:10:37 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 11 00:10:37 2019 |
tree | d4461639345b4c1d59c18f7529ccaa364e9add7e | |
parent | 606d523ae0443a5e062bf8ca6ef9932d09b94fdb [diff] |
Add DCHECK to verify results of SkSurface::MakeFromBackendRenderTarget() CreateSkSurfaceForVulkan() in SkiaOutputSurfaceImplOnGpu wasn't handling the case when MakeFromBackendRenderTarget() fails, while calling code expects sk_surface_ to be set after CreateSkSurfaceForVulkan() completes. Add a DCHECK to verify that CreateSkSurfaceForVulkan() always succeeds. This would make it easier to debug the linked bug. Bug: 920000 Change-Id: Ieed3191b836eb690a6896833824faa5c86707f8f Reviewed-on: https://chromium-review.googlesource.com/c/1404374 Reviewed-by: Robert Kroeger <rjkroege@chromium.org> Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Cr-Commit-Position: refs/heads/master@{#621815}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .