commit | ebdc72fd7b26780550c311455accbfc45f043985 | [log] [tgz] |
---|---|---|
author | Antoine Labour <piman@chromium.org> | Fri Oct 19 17:01:47 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 19 17:01:47 2018 |
tree | b435f1bab09bce7f8642ceb0116e645756077592 | |
parent | 1db3dc04678b2815a8e86612961385ac3814ad0a [diff] |
Simplify internalformat handling for GpuMemoryBuffer For any given BufferFormat, there is a single internal format that it is compatible with (note, the converse isn't true), as defined by gpu::IsImageFormatCompatibleWithGpuMemoryBufferFormat. Rather than leaving guess-work to the client, instead expose it via a gpu::InternalFormatForGpuMemoryBufferFormat. This in turns simplifies quite a few things, and in particular we don't need to send redundant information in IPC (BufferFormat vs internalformat) that we then need to validate. Bug: 870116 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_layout_tests_slimming_paint_v2;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I34a12c71c252ba2a5199f47ce983a02307df351b Reviewed-on: https://chromium-review.googlesource.com/c/1290192 Reviewed-by: Zhenyao Mo <zmo@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: Fernando Serboncini <fserb@chromium.org> Commit-Queue: Antoine Labour <piman@chromium.org> Cr-Commit-Position: refs/heads/master@{#601193}
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 .