From 65fa8ca85ef146340ddea61bb08c182df499ca62 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Wed, 10 Jan 2018 17:06:31 -0500 Subject: 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 Reviewed-by: Chris Dalton --- tests/LazyProxyTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/LazyProxyTest.cpp') 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; -- cgit v1.2.3