diff options
author | 2015-11-13 06:06:03 -0800 | |
---|---|---|
committer | 2015-11-13 06:06:03 -0800 | |
commit | 9c8605144a0f15e3e69a4e1dcd5d3e63f339380e (patch) | |
tree | 1917c14e2ade64311654c27353a32eb7e637cb37 /src/gpu/GrDrawTarget.cpp | |
parent | 7fdda6091ca0579e823cc014a000828dd53571e6 (diff) |
Update testing frameworks/tests for MDB
This CL:
Fixes an ordering problem w.r.t. drawTarget clean up in GrContext::abandonContext (for text test that abandons context)
Fixes when the lastDrawTarget field is set on a RenderTarget (now in GrDrawTarget ctor) due to GrTestTarget use case
Updates the ProgramUnitTest to use multiple drawTargets
Adds renderTarget creation to GrTestTargets (in MDB drawTargets require them)
BUG=skia:4094
Review URL: https://codereview.chromium.org/1441533003
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index 3f898ab26a..a7f4d92854 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -42,6 +42,8 @@ GrDrawTarget::GrDrawTarget(GrRenderTarget* rt, GrGpu* gpu, GrResourceProvider* r fContext = fGpu->getContext(); fClipMaskManager.reset(new GrClipMaskManager(this)); + rt->setLastDrawTarget(this); + #ifdef SK_DEBUG static int debugID = 0; fDebugID = debugID++; |