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

Side by Side Diff: include/gpu/GrDrawContext.h

Issue 1706773002: Fix memory leak (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | src/gpu/GrDrawContext.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 #ifndef GrDrawContext_DEFINED 8 #ifndef GrDrawContext_DEFINED
9 #define GrDrawContext_DEFINED 9 #define GrDrawContext_DEFINED
10 10
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 bool useAA, 303 bool useAA,
304 const SkPath&, 304 const SkPath&,
305 const GrStrokeInfo&); 305 const GrStrokeInfo&);
306 306
307 // This entry point allows the GrTextContext-derived classes to add their ba tches to 307 // This entry point allows the GrTextContext-derived classes to add their ba tches to
308 // the drawTarget. 308 // the drawTarget.
309 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); 309 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch);
310 310
311 GrDrawTarget* getDrawTarget(); 311 GrDrawTarget* getDrawTarget();
312 312
313 GrDrawingManager* fDrawingManager; 313 GrDrawingManager* fDrawingManager;
314 GrRenderTarget* fRenderTarget; 314 GrRenderTarget* fRenderTarget;
315 315
316 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 316 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
317 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 317 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
318 GrDrawTarget* fDrawTarget; 318 GrDrawTarget* fDrawTarget;
319 GrAtlasTextContext* fAtlasTextContext; 319 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext;
320 GrContext* fContext; 320 GrContext* fContext;
321 321
322 SkSurfaceProps fSurfaceProps; 322 SkSurfaceProps fSurfaceProps;
323 GrAuditTrail* fAuditTrail; 323 GrAuditTrail* fAuditTrail;
324 324
325 // In debug builds we guard against improper thread handling 325 // In debug builds we guard against improper thread handling
326 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 326 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
327 }; 327 };
328 328
329 #endif 329 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698