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

Unified Diff: src/gpu/GrContext.cpp

Issue 1580023002: GrAuditTrail hooks in GrContext + GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@audittrail-3-gatherframes
Patch Set: tweaks Created 4 years, 11 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 | « include/gpu/GrDrawContext.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index c37f31c0cc4994c71bfbdbfe344f24f90c74409d..e92014415c24fc573bbfa59cc7eada3dd444e82a 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -240,6 +240,7 @@ bool GrContext::writeSurfacePixels(GrSurface* surface,
RETURN_FALSE_IF_ABANDONED
ASSERT_OWNED_RESOURCE(surface);
SkASSERT(surface);
+ GR_AUDIT_TRAIL_AUTO_FRAME(&fAuditTrail, "GrContext::writeSurfacePixels");
this->testPMConversionsIfNecessary(pixelOpsFlags);
@@ -379,6 +380,7 @@ bool GrContext::readSurfacePixels(GrSurface* src,
RETURN_FALSE_IF_ABANDONED
ASSERT_OWNED_RESOURCE(src);
SkASSERT(src);
+ GR_AUDIT_TRAIL_AUTO_FRAME(&fAuditTrail, "GrContext::readSurfacePixels");
this->testPMConversionsIfNecessary(flags);
SkAutoMutexAcquire ama(fReadPixelsMutex);
@@ -520,6 +522,8 @@ void GrContext::copySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRe
const SkIPoint& dstPoint, uint32_t pixelOpsFlags) {
ASSERT_SINGLE_OWNER
RETURN_IF_ABANDONED
+ GR_AUDIT_TRAIL_AUTO_FRAME(&fAuditTrail, "GrContext::copySurface");
+
if (!src || !dst) {
return;
}
« no previous file with comments | « include/gpu/GrDrawContext.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698