Revert of Track GL buffer state based on unique resource ID (patchset #6 id:100001...
authormtklein <mtklein@google.com>
Thu, 7 Apr 2016 01:24:34 +0000 (18:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 Apr 2016 01:24:34 +0000 (18:24 -0700)
commit044d3c185876f9960f07b88f068cf08d78311e33
tree94deb4d2c100f848df9abf863470de1af0d3e0f2
parent6e077e140a6b603192e2395ba0adac7b670b3f03
Revert of Track GL buffer state based on unique resource ID (patchset #6 id:100001 of https://codereview.chromium.org/1854283004/ )

Reason for revert:
Chrome roll's broken, seems to be missing fTarget:

https://codereview.chromium.org/1861473005

Original issue's description:
> Track 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

TBR=bsalomon@google.com,jvanverth@google.com,cdalton@nvidia.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review URL: https://codereview.chromium.org/1870553002
21 files changed:
include/gpu/GrTypesPriv.h
src/gpu/GrBuffer.h
src/gpu/GrBufferAllocPool.cpp
src/gpu/GrGpu.cpp
src/gpu/GrGpu.h
src/gpu/GrResourceProvider.cpp
src/gpu/GrResourceProvider.h
src/gpu/batches/GrTessellatingPathRenderer.cpp
src/gpu/gl/GrGLBuffer.cpp
src/gpu/gl/GrGLBuffer.h
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLGpu.cpp
src/gpu/gl/GrGLGpu.h
src/gpu/gl/GrGLVertexArray.cpp
src/gpu/gl/GrGLVertexArray.h
src/gpu/vk/GrVkGpu.cpp
src/gpu/vk/GrVkGpu.h
src/gpu/vk/GrVkIndexBuffer.cpp
src/gpu/vk/GrVkTransferBuffer.cpp
src/gpu/vk/GrVkVertexBuffer.cpp
tools/gpu/GrTest.cpp