aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-03-10 13:59:15 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-10 19:38:37 +0000
commitcccda60aca592d2320d79e2871e057778b2688ab (patch)
treecd61c576ec6ae1e85a08ab36d27392eca1d098bb /include
parentdc175eaab60f7399fd3d232d2911511be187c436 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrTypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index 654febd3ca..62e8a791b3 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -676,6 +676,9 @@ enum GrWrapOwnership {
/** Skia will assume ownership of the resource and free it. */
kAdopt_GrWrapOwnership,
+
+ /** Skia will assume ownership of the resource, free it, and reuse it within the cache. */
+ kAdoptAndCache_GrWrapOwnership,
};
/**