OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "GrDrawContext.h" | 8 #include "GrDrawContext.h" |
9 #include "GrDrawingManager.h" | 9 #include "GrDrawingManager.h" |
10 #include "GrDrawTarget.h" | 10 #include "GrDrawTarget.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 return pr; | 190 return pr; |
191 } | 191 } |
192 | 192 |
193 GrDrawContext* GrDrawingManager::drawContext(GrRenderTarget* rt, | 193 GrDrawContext* GrDrawingManager::drawContext(GrRenderTarget* rt, |
194 const SkSurfaceProps* surfaceProps)
{ | 194 const SkSurfaceProps* surfaceProps)
{ |
195 if (this->abandoned()) { | 195 if (this->abandoned()) { |
196 return nullptr; | 196 return nullptr; |
197 } | 197 } |
198 | 198 |
199 return new GrDrawContext(this, rt, surfaceProps, fContext->getAuditTrail(),
fSingleOwner); | 199 return new GrDrawContext(fContext, this, rt, surfaceProps, fContext->getAudi
tTrail(), |
| 200 fSingleOwner); |
200 } | 201 } |
OLD | NEW |