Descriptiongpu: Expose internal format R8 instead of RED.
As noted in crrev.com/1703153002 GL_R8 sized internalformat should be preferred to
GL_RED.
This CL lets the users of the command buffer use GL_R8, and it takes care of
converting it to GL_RED when not supported by the underlying GL context.
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel
Committed: https://crrev.com/7b277c596c517ce4a5d0985ace0da1806f2470f4
Cr-Commit-Position: refs/heads/master@{#377222}
Patch Set 1 #Patch Set 2 : R8 is available only in >= gles2.0 and >= gl3.0. #Patch Set 3 : Add gl_version_info.h include. #Patch Set 4 : OpenGL ES 2.0 wants format == internal format. #Patch Set 5 : ResourceProvider should use R8 too. #
Total comments: 6
Patch Set 6 : Address reveman's comments. #
Total comments: 9
Patch Set 7 : Allow RED in copyTexture. #
Total comments: 1
Patch Set 8 : Revert to 'Address reveman's comments'. #
Messages
Total messages: 30 (10 generated)
|