aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrOnFlushResourceProvider.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-02-09 09:56:56 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-09 16:32:31 +0000
commitcd5099c75fd9ddc530347b976cb0e91abf85da00 (patch)
treee32c4a8af36233c0cf7fecfc923e28ca61b345ec /src/gpu/GrOnFlushResourceProvider.h
parent7af65446a085f9525c8cecc66aef49a831440875 (diff)
Make atlases instantiate themselves at flush time
Change-Id: I5ed9794bd78c8e5d999e892f5672b9c590b44285 Reviewed-on: https://skia-review.googlesource.com/106000 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOnFlushResourceProvider.h')
-rw-r--r--src/gpu/GrOnFlushResourceProvider.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gpu/GrOnFlushResourceProvider.h b/src/gpu/GrOnFlushResourceProvider.h
index f4e4459738..633abe1411 100644
--- a/src/gpu/GrOnFlushResourceProvider.h
+++ b/src/gpu/GrOnFlushResourceProvider.h
@@ -69,15 +69,17 @@ private:
*/
class GrOnFlushResourceProvider {
public:
- sk_sp<GrRenderTargetContext> makeRenderTargetContext(const GrSurfaceDesc& desc,
- sk_sp<SkColorSpace> colorSpace,
- const SkSurfaceProps* props);
+ sk_sp<GrRenderTargetContext> makeRenderTargetContext(const GrSurfaceDesc&,
+ sk_sp<SkColorSpace>,
+ const SkSurfaceProps*);
// TODO: we only need this entry point as long as we have to pre-allocate the atlas.
// Remove it ASAP.
- sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy> proxy,
- sk_sp<SkColorSpace> colorSpace,
- const SkSurfaceProps* props);
+ sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy>,
+ sk_sp<SkColorSpace>,
+ const SkSurfaceProps*);
+
+ bool instatiateProxy(GrSurfaceProxy*);
// Creates a GPU buffer with a "dynamic" access pattern.
sk_sp<GrBuffer> makeBuffer(GrBufferType, size_t, const void* data = nullptr);