DescriptionTrack GL buffer state based on unique resource ID
Reworks GrGLGpu to track GL buffer state based on the unique
GrGpuResource ID. This eliminates the need to notify the gpu object
whenever a buffer is deleted.
This change also allows us to remove the type specifier from GrBuffer.
At this point a buffer is just a chunk of memory, and the type
given at creation time is just a suggestion to the GL backend about
which target to bind to for updates.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854283004
Committed: https://skia.googlesource.com/skia/+/deacc97bc63513b5eacaf21f858727f6e8b98ce5
Committed: https://skia.googlesource.com/skia/+/e2e71c2df4e72e897bbe745752be0444aee5c29f
Patch Set 1 #
Total comments: 6
Patch Set 2 : comments #Patch Set 3 : rebase #Patch Set 4 : uglify for msvc #Patch Set 5 : Rebase on null context fix #
Total comments: 2
Patch Set 6 : undo layer test change #Patch Set 7 : fix for GR_GL_USE_BUFFER_DATA_NULL_HINT=0 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 49 (22 generated)
|