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

Unified Diff: src/gpu/GrTracing.h

Issue 1283183003: Use forwarding with SkTLazy::init. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add && in deducing context. Created 5 years, 4 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/GrTracing.h
diff --git a/src/gpu/GrTracing.h b/src/gpu/GrTracing.h
index 5fea60bb9ed438684d2cd8771fa29cf93f086242..3851a95195eeaa6b8aaf5779408bf89684a44b1e 100644
--- a/src/gpu/GrTracing.h
+++ b/src/gpu/GrTracing.h
@@ -12,6 +12,7 @@
#include "GrDrawTarget.h"
#include "GrGpu.h"
#include "GrTraceMarker.h"
+#include "SkTLazy.h"
#include "SkTraceEvent.h"
/**
@@ -28,9 +29,7 @@ public:
}
void initialize(const char* marker_str, int* marker_counter) {
- GrGpuTraceMarker* traceMarker = fTraceMarker.init();
- traceMarker->fMarker = marker_str;
- traceMarker->fID = *marker_counter;
+ GrGpuTraceMarker* traceMarker = fTraceMarker.init(marker_str, *marker_counter);
fTarget->addGpuTraceMarker(traceMarker);
}
@@ -50,9 +49,7 @@ public:
}
void initialize(const char* marker_str, int* marker_counter) {
- GrGpuTraceMarker* traceMarker = fTraceMarker.init();
- traceMarker->fMarker = marker_str;
- traceMarker->fID = *marker_counter;
+ GrGpuTraceMarker* traceMarker = fTraceMarker.init(marker_str, *marker_counter);
fContext->addGpuTraceMarker(traceMarker);
}
« 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