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

Side by Side Diff: src/gpu/GrTraceMarker.h

Issue 378933002: Improve gpu tracing when applying markers directly to gpu target (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrTraceMarker.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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkTDArray.h" 9 #include "SkTDArray.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 int count() const; 48 int count() const;
49 49
50 /** 50 /**
51 * First sorts fMarkerArray and returns a string of the format 51 * First sorts fMarkerArray and returns a string of the format
52 * MarkerName1(#,#,...)%MarkerName2(#,#,...):... where MarkerName is the 52 * MarkerName1(#,#,...)%MarkerName2(#,#,...):... where MarkerName is the
53 * marker string used in the TraceMarker and the (#,#,..) is a list of insta nce 53 * marker string used in the TraceMarker and the (#,#,..) is a list of insta nce
54 * id's for the the given marker string 54 * id's for the the given marker string
55 */ 55 */
56 SkString toString() const; 56 SkString toString() const;
57 57
58 SkString toStringLast() const;
59
58 class Iter; 60 class Iter;
59 61
60 Iter begin() const; 62 Iter begin() const;
61 63
62 Iter end() const; 64 Iter end() const;
63 65
64 private: 66 private:
65 mutable SkTDArray<GrGpuTraceMarker> fMarkerArray; 67 mutable SkTDArray<GrGpuTraceMarker> fMarkerArray;
66 }; 68 };
67 69
(...skipping 21 matching lines...) Expand all
89 Iter(const GrTraceMarkerSet* markers, int index) 91 Iter(const GrTraceMarkerSet* markers, int index)
90 : fMarkers(markers), fCurrentIndex(index) { 92 : fMarkers(markers), fCurrentIndex(index) {
91 SkASSERT(markers); 93 SkASSERT(markers);
92 } 94 }
93 95
94 const GrTraceMarkerSet* fMarkers; 96 const GrTraceMarkerSet* fMarkers;
95 int fCurrentIndex; 97 int fCurrentIndex;
96 }; 98 };
97 99
98 #endif 100 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrTraceMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698