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 /tests/LazyProxyTest.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 'tests/LazyProxyTest.cpp')
-rw-r--r-- | tests/LazyProxyTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/LazyProxyTest.cpp b/tests/LazyProxyTest.cpp index a5cda4edcf..a55593134d 100644 --- a/tests/LazyProxyTest.cpp +++ b/tests/LazyProxyTest.cpp @@ -54,8 +54,8 @@ public: DEFINE_OP_CLASS_ID Op(LazyProxyTest* test, bool nullTexture) : GrDrawOp(ClassID()), fTest(test) { - fProxy = GrSurfaceProxy::MakeLazy([this, nullTexture](GrResourceProvider* rp, - GrSurfaceOrigin* origin) { + fProxy = GrSurfaceProxy::MakeFullyLazy([this, nullTexture](GrResourceProvider* rp, + GrSurfaceOrigin* origin) { REPORTER_ASSERT(fTest->fReporter, !fTest->fHasOpTexture); fTest->fHasOpTexture = true; *origin = kTopLeft_GrSurfaceOrigin; @@ -105,8 +105,8 @@ public: : GrFragmentProcessor(kTestFP_ClassID, kNone_OptimizationFlags) , fTest(test) , fAtlas(atlas) { - fLazyProxy = GrSurfaceProxy::MakeLazy([this](GrResourceProvider* rp, - GrSurfaceOrigin* origin) { + fLazyProxy = GrSurfaceProxy::MakeFullyLazy([this](GrResourceProvider* rp, + GrSurfaceOrigin* origin) { REPORTER_ASSERT(fTest->fReporter, !fTest->fHasClipTexture); fTest->fHasClipTexture = true; *origin = kBottomLeft_GrSurfaceOrigin; |