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

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

Issue 1691503002: Pass a GrContext pointer in GrDrawContext constructor (Closed) Base URL: https://skia.googlesource.com/skia.git@tc-cleanup-4
Patch Set: rebase Created 4 years, 10 months 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') | no next file » | 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 "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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698