aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrOnFlushResourceProvider.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-06-20 11:35:59 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-20 19:08:19 +0000
commit6081ebb6892e1779678b9d638f4b2a398e412f00 (patch)
treee9faf01868d7a1b90eae63992c3a87133fd5e1ad /src/gpu/GrOnFlushResourceProvider.h
parentffa8484eb0610048a0e8cc4f1594fd9607c5b555 (diff)
Add makeBuffer and caps to GrOnFlushResourceProvider
Bug: skia: Change-Id: Ie3101ca20743a953621815bdae886c995d39c9e6 Reviewed-on: https://skia-review.googlesource.com/20315 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrOnFlushResourceProvider.h')
-rw-r--r--src/gpu/GrOnFlushResourceProvider.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrOnFlushResourceProvider.h b/src/gpu/GrOnFlushResourceProvider.h
index 6b2570a3ac..fdf34fe40a 100644
--- a/src/gpu/GrOnFlushResourceProvider.h
+++ b/src/gpu/GrOnFlushResourceProvider.h
@@ -68,6 +68,11 @@ public:
sk_sp<SkColorSpace> colorSpace,
const SkSurfaceProps* props);
+ // Creates a GPU buffer with a "dynamic" access pattern.
+ sk_sp<GrBuffer> makeBuffer(GrBufferType, size_t, const void* data = nullptr);
+
+ const GrCaps* caps() const;
+
private:
explicit GrOnFlushResourceProvider(GrDrawingManager* drawingMgr) : fDrawingMgr(drawingMgr) {}
GrOnFlushResourceProvider(const GrOnFlushResourceProvider&) = delete;