| Index: src/gpu/GrDrawContext.cpp
|
| diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
|
| index fcdb1b40781aa99c7908f3c842151164f9f9b3c4..01bd161b3010080f694098e5f1a2d77d73cd0e30 100644
|
| --- a/src/gpu/GrDrawContext.cpp
|
| +++ b/src/gpu/GrDrawContext.cpp
|
| @@ -28,7 +28,7 @@
|
|
|
| #define ASSERT_OWNED_RESOURCE(R) SkASSERT(!(R) || (R)->getContext() == fDrawingManager->getContext())
|
| #define ASSERT_SINGLE_OWNER \
|
| - SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(&fSingleOwner);)
|
| + SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fSingleOwner);)
|
| #define RETURN_IF_ABANDONED if (fDrawingManager->abandoned()) { return; }
|
| #define RETURN_FALSE_IF_ABANDONED if (fDrawingManager->abandoned()) { return false; }
|
| #define RETURN_NULL_IF_ABANDONED if (fDrawingManager->abandoned()) { return nullptr; }
|
| @@ -50,12 +50,14 @@ private:
|
| // when the drawContext attempts to use it (via getDrawTarget).
|
| GrDrawContext::GrDrawContext(GrDrawingManager* drawingMgr,
|
| GrRenderTarget* rt,
|
| - const SkSurfaceProps* surfaceProps)
|
| + const SkSurfaceProps* surfaceProps,
|
| + GrSingleOwner* singleOwner)
|
| : fDrawingManager(drawingMgr)
|
| , fRenderTarget(rt)
|
| , fDrawTarget(SkSafeRef(rt->getLastDrawTarget()))
|
| , fTextContext(nullptr)
|
| - , fSurfaceProps(SkSurfacePropsCopyOrDefault(surfaceProps)) {
|
| + , fSurfaceProps(SkSurfacePropsCopyOrDefault(surfaceProps))
|
| + , fSingleOwner(singleOwner) {
|
| SkDEBUGCODE(this->validate();)
|
| }
|
|
|
|
|