forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable asynchronous glReadPixels on Windows.
Chromium is using the GL ES 2.0 spec with ANGLE, which doesn't allow for async readback on its own. However, ANGLE also provides two extensions which, together, provide all the needed extra implementation: GL_NV_pixel_buffer_object and GL_EXT_map_buffer_range. This change enables the appropriate feature flags when the two extensions are present. It also changes the auto-generated bindings for the glMapBufferRange function so that glMapBufferRangeEXT is used instead of glMapBufferRange when ANGLE is initialized below the version 3 spec. In addition, this change adds propagation of service-side glMapBuffer() errors back to the glMapBufferCHROMIUM call client-side. In the process of writing tests for this, a minor shared memory allocation bug was revealed and also fixed. BUG=431420 Review URL: https://codereview.chromium.org/706173005 Cr-Commit-Position: refs/heads/master@{#304340}
- Loading branch information
1 parent
9c7159e
commit b70d785
Showing
7 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters