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

Unified Diff: src/gpu/GrTracing.h

Issue 1323823003: Remove GrGpuTraceMarker hooks until we rethink the design (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: compiler warning 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/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | 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 3851a95195eeaa6b8aaf5779408bf89684a44b1e..0eb203fbc445810556739e75986c0e7c333b64eb 100644
--- a/src/gpu/GrTracing.h
+++ b/src/gpu/GrTracing.h
@@ -20,41 +20,39 @@
*/
class GrGpuTraceMarkerGenerator : public ::SkNoncopyable {
public:
- GrGpuTraceMarkerGenerator(GrDrawTarget* target) : fTarget(target) {}
+ GrGpuTraceMarkerGenerator(GrDrawTarget* target) {}
~GrGpuTraceMarkerGenerator() {
if (fTraceMarker.isValid()) {
- fTarget->removeGpuTraceMarker(fTraceMarker.get());
+ // TODO remove trace marker
}
}
void initialize(const char* marker_str, int* marker_counter) {
- GrGpuTraceMarker* traceMarker = fTraceMarker.init(marker_str, *marker_counter);
- fTarget->addGpuTraceMarker(traceMarker);
+ // GrGpuTraceMarker* traceMarker = fTraceMarker.init(marker_str, *marker_counter);
+ // TODO add trace marker
}
private:
- GrDrawTarget* fTarget;
SkTLazy<GrGpuTraceMarker> fTraceMarker;
};
class GrGpuTraceMarkerGeneratorContext : public ::SkNoncopyable {
public:
- GrGpuTraceMarkerGeneratorContext(GrContext* context) : fContext(context) {}
+ GrGpuTraceMarkerGeneratorContext(GrContext* context) {}
~GrGpuTraceMarkerGeneratorContext() {
if (fTraceMarker.isValid()) {
- fContext->removeGpuTraceMarker(fTraceMarker.get());
+ // TODO remove trace marker
}
}
void initialize(const char* marker_str, int* marker_counter) {
- GrGpuTraceMarker* traceMarker = fTraceMarker.init(marker_str, *marker_counter);
- fContext->addGpuTraceMarker(traceMarker);
+ // GrGpuTraceMarker* traceMarker = fTraceMarker.init(marker_str, *marker_counter);
+ // TODO add trace marker
}
private:
- GrContext* fContext;
SkTLazy<GrGpuTraceMarker> fTraceMarker;
};
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698