diff options
author | Greg Daniel <egdaniel@google.com> | 2018-01-10 17:06:31 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-12 19:36:08 +0000 |
commit | 65fa8ca85ef146340ddea61bb08c182df499ca62 (patch) | |
tree | c8795e3ecf0c2c45929249b03dcbe108f52e2445 /src/gpu/GrResourceAllocator.cpp | |
parent | e2330261a704e2db762e2de0d297bf8b4dc510f1 (diff) |
Updating lazy proxys to support the case where we know a lot more info about the texture.
This is needed for future DDL texture work.
Bug: skia:
Change-Id: I07e0b9c67509e63b9cac00adc355254d03784df8
Reviewed-on: https://skia-review.googlesource.com/91500
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrResourceAllocator.cpp')
-rw-r--r-- | src/gpu/GrResourceAllocator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrResourceAllocator.cpp b/src/gpu/GrResourceAllocator.cpp index 5f40a92a41..d346a7ee5b 100644 --- a/src/gpu/GrResourceAllocator.cpp +++ b/src/gpu/GrResourceAllocator.cpp @@ -81,7 +81,7 @@ void GrResourceAllocator::addInterval(GrSurfaceProxy* proxy, unsigned int start, #ifdef SK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION // FIXME: remove this once we can do the lazy instantiation from assign instead. - if (proxy->isPendingLazyInstantiation()) { + if (GrSurfaceProxy::LazyState::kNot != proxy->lazyInstantiationState()) { proxy->priv().doLazyInstantiation(fResourceProvider); } #endif @@ -236,7 +236,7 @@ bool GrResourceAllocator::assign(int* startIndex, int* stopIndex) { continue; } - if (cur->proxy()->isPendingLazyInstantiation()) { + if (GrSurfaceProxy::LazyState::kNot != cur->proxy()->lazyInstantiationState()) { cur->proxy()->priv().doLazyInstantiation(fResourceProvider); } else if (sk_sp<GrSurface> surface = this->findSurfaceFor(cur->proxy(), needsStencil)) { // TODO: make getUniqueKey virtual on GrSurfaceProxy |