aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrOnFlushResourceProvider.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-12-19 10:40:23 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-19 19:41:16 +0000
commit5d2de08494a912db9d1ca9038deb900de8cbf38e (patch)
tree0513120c0ddc25985c66416d066d0106736fc780 /src/gpu/GrOnFlushResourceProvider.h
parent744cbb388870bc1ae0f6b3ac0fbeaa136f55917b (diff)
Add findOrMakeStaticBuffer method to GrResourceProvider
Bug: skia: Change-Id: Ie47f00bf8542462d719df0d08972794861ec4a2b Reviewed-on: https://skia-review.googlesource.com/86283 Reviewed-by: Chris Dalton <csmartdalton@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrOnFlushResourceProvider.h')
-rw-r--r--src/gpu/GrOnFlushResourceProvider.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrOnFlushResourceProvider.h b/src/gpu/GrOnFlushResourceProvider.h
index e16bb57aef..f4e4459738 100644
--- a/src/gpu/GrOnFlushResourceProvider.h
+++ b/src/gpu/GrOnFlushResourceProvider.h
@@ -83,8 +83,8 @@ public:
sk_sp<GrBuffer> makeBuffer(GrBufferType, size_t, const void* data = nullptr);
// Either finds and refs, or creates a static GPU buffer with the given data.
- sk_sp<GrBuffer> findOrMakeStaticBuffer(const GrUniqueKey&, GrBufferType,
- size_t, const void* data);
+ sk_sp<const GrBuffer> findOrMakeStaticBuffer(GrBufferType, size_t, const void* data,
+ const GrUniqueKey&);
const GrCaps* caps() const;