Trace events in backend texture APIs and GrDataUtils
Bug: chromium:919885
Change-Id: I517afb5817d29ff8082cee63b8cce18f34a8ceac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/223339
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 9cf02d7..f3ac376 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -322,6 +322,7 @@
GrMipMapped mipMapped,
GrRenderable renderable,
GrProtected isProtected) {
+ TRACE_EVENT0("skia.gpu", TRACE_FUNC);
if (!this->asDirectContext()) {
return GrBackendTexture();
}
@@ -365,6 +366,7 @@
const SkColor4f& color,
GrMipMapped mipMapped,
GrRenderable renderable) {
+ TRACE_EVENT0("skia.gpu", TRACE_FUNC);
if (!this->asDirectContext()) {
return GrBackendTexture();
}
@@ -404,6 +406,7 @@
}
void GrContext::deleteBackendTexture(GrBackendTexture backendTex) {
+ TRACE_EVENT0("skia.gpu", TRACE_FUNC);
if (this->abandoned() || !backendTex.isValid()) {
return;
}