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

Unified Diff: src/gpu/GrTraceMarker.cpp

Issue 341583002: Modify gpu debug markers to store gpu device markers when a flush occurs. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrTraceMarker.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTraceMarker.cpp
diff --git a/src/gpu/GrTraceMarker.cpp b/src/gpu/GrTraceMarker.cpp
index 16c90c2985a59e3dfe2d49857582b1e95198a795..11cdd5e2c2532340c0998cd1b32f576d65d9845f 100644
--- a/src/gpu/GrTraceMarker.cpp
+++ b/src/gpu/GrTraceMarker.cpp
@@ -13,36 +13,6 @@
////////////////////////////////////////////////////////////////////////////////
-class GrTraceMarkerSet::Iter {
-public:
- Iter() {};
- Iter& operator=(const Iter& i) {
- fCurrentIndex = i.fCurrentIndex;
- fMarkers = i.fMarkers;
- return *this;
- }
- bool operator==(const Iter& i) const {
- return fCurrentIndex == i.fCurrentIndex && fMarkers == i.fMarkers;
- }
- bool operator!=(const Iter& i) const { return !(*this == i); }
- const GrGpuTraceMarker& operator*() const { return fMarkers->fMarkerArray[fCurrentIndex]; }
- Iter& operator++() {
- SkASSERT(*this != fMarkers->end());
- ++fCurrentIndex;
- return *this;
- }
-
-private:
- friend class GrTraceMarkerSet;
- Iter(const GrTraceMarkerSet* markers, int index)
- : fMarkers(markers), fCurrentIndex(index) {
- SkASSERT(markers);
- }
-
- const GrTraceMarkerSet* fMarkers;
- int fCurrentIndex;
-};
-
////////////////////////////////////////////////////////////////////////////////
GrTraceMarkerSet::GrTraceMarkerSet(const GrTraceMarkerSet& other) {
@@ -114,3 +84,4 @@ GrTraceMarkerSet::Iter GrTraceMarkerSet::begin() const {
GrTraceMarkerSet::Iter GrTraceMarkerSet::end() const {
return Iter(this, this->fMarkerArray.count());
}
+
« no previous file with comments | « src/gpu/GrTraceMarker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698