Treat cross context images as Ganesh-created resources
authorBrian Osman <brianosman@google.com>
Fri, 10 Mar 2017 18:59:15 +0000 (13:59 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 10 Mar 2017 19:38:37 +0000 (19:38 +0000)
commitcccda60aca592d2320d79e2871e057778b2688ab
treecd61c576ec6ae1e85a08ab36d27392eca1d098bb
parentdc175eaab60f7399fd3d232d2911511be187c436
Treat cross context images as Ganesh-created resources

Always create them budgeted, and register them with the cache (not as
wrapped resources).

BUG=skia:

Change-Id: Id18ecf6e9e512db4be21b4f2bfd8e8c060bbe805
Reviewed-on: https://skia-review.googlesource.com/9497
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
include/gpu/GrTypes.h
src/gpu/gl/GrGLGpu.cpp
src/gpu/vk/GrVkGpu.cpp
src/gpu/vk/GrVkTexture.cpp
src/gpu/vk/GrVkTextureRenderTarget.cpp
src/image/SkImage_Gpu.cpp
tests/CrossContextImageTest.cpp
tests/ResourceCacheTest.cpp