diff options
author | Robert Phillips <robertphillips@google.com> | 2018-02-13 11:13:51 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-13 21:25:53 +0000 |
commit | ce5209a8a5711fde34f28c740f5cd74bdb560e21 (patch) | |
tree | 772f3427bf4f1a73d2c7db727b3750b7c56b65d0 /src/gpu/GrProxyProvider.h | |
parent | 6a46fb210b810553b2a03a5f316109ccd9710ebc (diff) |
Make fully lazy proxies possess an origin
Change-Id: Icd3d68bce78568562aa12167a58b6d6e5064b124
Reviewed-on: https://skia-review.googlesource.com/106901
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrProxyProvider.h')
-rw-r--r-- | src/gpu/GrProxyProvider.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpu/GrProxyProvider.h b/src/gpu/GrProxyProvider.h index 48037584c5..7e7f852d91 100644 --- a/src/gpu/GrProxyProvider.h +++ b/src/gpu/GrProxyProvider.h @@ -141,8 +141,7 @@ public: GrSurfaceOrigin origin, int sampleCnt); - using LazyInstantiateCallback = std::function<sk_sp<GrSurface>(GrResourceProvider*, - GrSurfaceOrigin* outOrigin)>; + using LazyInstantiateCallback = std::function<sk_sp<GrSurface>(GrResourceProvider*)>; enum class Textureable : bool { kNo = false, kYes = true @@ -166,8 +165,12 @@ public: sk_sp<GrTextureProxy> createLazyProxy(LazyInstantiateCallback&&, const GrSurfaceDesc&, GrMipMapped, SkBackingFit, SkBudgeted); + /** + * Fully lazy proxies have unspecified width and height. Methods that rely on those values + * (e.g., width, height, getBoundsRect) should be avoided. + */ sk_sp<GrTextureProxy> createFullyLazyProxy(LazyInstantiateCallback&&, - Renderable, GrPixelConfig); + Renderable, GrSurfaceOrigin, GrPixelConfig); sk_sp<GrRenderTargetProxy> createLazyRenderTargetProxy(LazyInstantiateCallback&&, const GrSurfaceDesc&, Textureable, |