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

Side by Side Diff: tools/VisualBench/VisualBench.h

Issue 1239103002: Fix visual bench memory leak (Closed) Base URL: https://skia.googlesource.com/skia.git@fixvb1
Patch Set: tweaks Created 5 years, 5 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 | tools/VisualBench/VisualBench.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 8
9 #ifndef VisualBench_DEFINED 9 #ifndef VisualBench_DEFINED
10 #define VisualBench_DEFINED 10 #define VisualBench_DEFINED
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void preWarm(State nextState); 61 void preWarm(State nextState);
62 62
63 int fCurrentSample; 63 int fCurrentSample;
64 int fCurrentFrame; 64 int fCurrentFrame;
65 int fFlushes; 65 int fFlushes;
66 int fLoops; 66 int fLoops;
67 SkTArray<Record> fRecords; 67 SkTArray<Record> fRecords;
68 WallTimer fTimer; 68 WallTimer fTimer;
69 State fState; 69 State fState;
70 SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream; 70 SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream;
71 Benchmark* fBenchmark; 71 SkAutoTUnref<Benchmark> fBenchmark;
72 72
73 // support framework 73 // support framework
74 SkAutoTUnref<SkSurface> fSurface; 74 SkAutoTUnref<SkSurface> fSurface;
75 SkAutoTUnref<GrContext> fContext; 75 SkAutoTUnref<GrContext> fContext;
76 SkAutoTUnref<GrRenderTarget> fRenderTarget; 76 SkAutoTUnref<GrRenderTarget> fRenderTarget;
77 AttachmentInfo fAttachmentInfo; 77 AttachmentInfo fAttachmentInfo;
78 SkAutoTUnref<const GrGLInterface> fInterface; 78 SkAutoTUnref<const GrGLInterface> fInterface;
79 79
80 typedef SkOSWindow INHERITED; 80 typedef SkOSWindow INHERITED;
81 }; 81 };
82 82
83 #endif 83 #endif
OLDNEW
« no previous file with comments | « no previous file | tools/VisualBench/VisualBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698