This CL adds glTexStorage support.
authorcblume <cblume@chromium.org>
Mon, 29 Feb 2016 19:13:29 +0000 (11:13 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Feb 2016 19:13:29 +0000 (11:13 -0800)
commit790d5132620d86813380d3df251e80dd2b41a409
treed2d37a00140b9bf2b88a0d248e09bf67759c2fb9
parentc58487e088fb7803b7b5fc5348c99d4a717c72df
This CL adds glTexStorage support.

For us to take advantage of immutable texture storage, we would need to
know in advance that the texture will not be changing allocated size.

In some cases we cannot know this in advance: we will sometimes later
need mipmaps to be allocated and generated. However, in the cases where
we know in advance that we are allocating mipmaps we can take advantage
of immutable storage.

BUG=476416
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1570173004

Review URL: https://codereview.chromium.org/1570173004
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLCaps.h
src/gpu/gl/GrGLGpu.cpp