Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: src/gpu/GrDrawingManager.cpp

Issue 1521453002: Move all text stuff to its own folder (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext11textutils2
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrFontScaler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrFontScaler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698