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

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

Issue 886393008: fixing GrBatch leak (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | 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 2011 Google Inc. 2 * Copyright 2011 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 "GrAAHairLinePathRenderer.h" 8 #include "GrAAHairLinePathRenderer.h"
9 9
10 #include "GrBatch.h" 10 #include "GrBatch.h"
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 devRect.outset(2, 2); 1051 devRect.outset(2, 2);
1052 1052
1053 AAHairlineBatch::Geometry geometry; 1053 AAHairlineBatch::Geometry geometry;
1054 geometry.fColor = color; 1054 geometry.fColor = color;
1055 geometry.fCoverage = newCoverage; 1055 geometry.fCoverage = newCoverage;
1056 geometry.fViewMatrix = viewMatrix; 1056 geometry.fViewMatrix = viewMatrix;
1057 geometry.fPath = path; 1057 geometry.fPath = path;
1058 SkDEBUGCODE(geometry.fDevBounds = devRect;) 1058 SkDEBUGCODE(geometry.fDevBounds = devRect;)
1059 geometry.fDevClipBounds = devClipBounds; 1059 geometry.fDevClipBounds = devClipBounds;
1060 1060
1061 GrBatch* batch = AAHairlineBatch::Create(geometry, fLinesIndexBuffer, fQuads IndexBuffer); 1061 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf fer,
1062 fQuadsIndexBuffer));
1062 target->drawBatch(pipelineBuilder, batch, &devRect); 1063 target->drawBatch(pipelineBuilder, batch, &devRect);
1063 1064
1064 return true; 1065 return true;
1065 } 1066 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698