DescriptionPPAPI: Make GLES2 calls resilient to bad/dead resources.
Currently, if PPB_OpenGLES2 is passed a bad resource, or if a bad resource is
set prior to OpenGLES2 calls, our code happily dereferences a NULL pointer.
This CL tries to address that by handling failure in a way that's consistent
with our other Pepper interfaces.
It also appears that the "old" approach to locking would end up locking twice
per call. Once to get the PPB_GLES2Impl, then unlocked, and then locked
again inside the LockingCommandBuffer (meaning that the PPB_GLES2Impl
might not actually be valid at the time we dereference it!!). This change
simplifies that and removes the old/hacky way of locking.
BUG=275815
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226017
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Patch Set 3 : re-gen ppb_opengles2_shared.cc #
Total comments: 12
Patch Set 4 : tiny simplification in build_gles2_cmd_buffer.py #
Total comments: 2
Patch Set 5 : teravest@ review comments #Patch Set 6 : Add AssertAcquiredDebugOnly #
Total comments: 1
Patch Set 7 : Update test #Patch Set 8 : merge #Patch Set 9 : merge #
Messages
Total messages: 15 (0 generated)
|