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 "GrAtlasTextContext.h" | |
9 #include "GrDrawContext.h" | 8 #include "GrDrawContext.h" |
10 #include "GrDrawingManager.h" | 9 #include "GrDrawingManager.h" |
11 #include "GrDrawTarget.h" | 10 #include "GrDrawTarget.h" |
12 #include "GrResourceProvider.h" | 11 #include "GrResourceProvider.h" |
13 #include "GrSoftwarePathRenderer.h" | 12 #include "GrSoftwarePathRenderer.h" |
14 #include "GrStencilAndCoverTextContext.h" | |
15 #include "SkTTopoSort.h" | 13 #include "SkTTopoSort.h" |
16 | 14 |
| 15 #include "text/GrAtlasTextContext.h" |
| 16 #include "text/GrStencilAndCoverTextContext.h" |
17 | 17 |
18 void GrDrawingManager::cleanup() { | 18 void GrDrawingManager::cleanup() { |
19 for (int i = 0; i < fDrawTargets.count(); ++i) { | 19 for (int i = 0; i < fDrawTargets.count(); ++i) { |
20 fDrawTargets[i]->makeClosed(); // no drawTarget should receive a new co
mmand after this | 20 fDrawTargets[i]->makeClosed(); // no drawTarget should receive a new co
mmand after this |
21 fDrawTargets[i]->clearRT(); | 21 fDrawTargets[i]->clearRT(); |
22 | 22 |
23 fDrawTargets[i]->unref(); | 23 fDrawTargets[i]->unref(); |
24 } | 24 } |
25 | 25 |
26 fDrawTargets.reset(); | 26 fDrawTargets.reset(); |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 } | 188 } |
189 | 189 |
190 GrDrawContext* GrDrawingManager::drawContext(GrRenderTarget* rt, | 190 GrDrawContext* GrDrawingManager::drawContext(GrRenderTarget* rt, |
191 const SkSurfaceProps* surfaceProps)
{ | 191 const SkSurfaceProps* surfaceProps)
{ |
192 if (this->abandoned()) { | 192 if (this->abandoned()) { |
193 return nullptr; | 193 return nullptr; |
194 } | 194 } |
195 | 195 |
196 return new GrDrawContext(this, rt, surfaceProps); | 196 return new GrDrawContext(this, rt, surfaceProps); |
197 } | 197 } |
OLD | NEW |