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

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

Issue 2215323003: Start using RenderTargetProxy (omnibus) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 1 month 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/GrContext.cpp ('k') | src/gpu/GrPipeline.cpp » ('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 "GrDrawingManager.h" 8 #include "GrDrawingManager.h"
9 9
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // TODO: although this is true right now it isn't cool 158 // TODO: although this is true right now it isn't cool
159 return SkRef((GrRenderTargetOpList*) fOpLists[0]); 159 return SkRef((GrRenderTargetOpList*) fOpLists[0]);
160 } 160 }
161 #endif 161 #endif
162 162
163 GrRenderTargetOpList* opList = new GrRenderTargetOpList(rtp, 163 GrRenderTargetOpList* opList = new GrRenderTargetOpList(rtp,
164 fContext->getGpu(), 164 fContext->getGpu(),
165 fContext->resourcePr ovider(), 165 fContext->resourcePr ovider(),
166 fContext->getAuditTr ail(), 166 fContext->getAuditTr ail(),
167 fOptionsForOpLists); 167 fOptionsForOpLists);
168
169 *fOpLists.append() = opList; 168 *fOpLists.append() = opList;
170 169
171 // DrawingManager gets the creation ref - this ref is for the caller 170 // DrawingManager gets the creation ref - this ref is for the caller
172 return SkRef(opList); 171 return SkRef(opList);
173 } 172 }
174 173
175 GrAtlasTextContext* GrDrawingManager::getAtlasTextContext() { 174 GrAtlasTextContext* GrDrawingManager::getAtlasTextContext() {
176 if (!fAtlasTextContext) { 175 if (!fAtlasTextContext) {
177 fAtlasTextContext.reset(GrAtlasTextContext::Create()); 176 fAtlasTextContext.reset(GrAtlasTextContext::Create());
178 } 177 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 fContext->getAuditTrail( ), fSingleOwner)); 240 fContext->getAuditTrail( ), fSingleOwner));
242 } 241 }
243 } 242 }
244 243
245 return sk_sp<GrRenderTargetContext>(new GrRenderTargetContext(fContext, this , std::move(rtp), 244 return sk_sp<GrRenderTargetContext>(new GrRenderTargetContext(fContext, this , std::move(rtp),
246 std::move(colo rSpace), 245 std::move(colo rSpace),
247 surfaceProps, 246 surfaceProps,
248 fContext->getA uditTrail(), 247 fContext->getA uditTrail(),
249 fSingleOwner)) ; 248 fSingleOwner)) ;
250 } 249 }
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698