diff options
author | robertphillips <robertphillips@google.com> | 2015-11-16 09:06:59 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-16 09:06:59 -0800 |
commit | e004bfc0a5e28cc083158f1a75e981ffd58a8134 (patch) | |
tree | 77ac623a0e5b6264d4933ae53da831e7220bfbf7 /src/gpu/effects/GrTextureDomain.h | |
parent | a7a21cffe1d56d52bac9accd05001e9c970e76f3 (diff) |
Increase the amount of debug information printed out by batches
Untangling MDB bugs requires more information. In particular the render targets.
BUG=skia:4094
TBR=bsalomon@google.com
Review URL: https://codereview.chromium.org/1443763002
Diffstat (limited to 'src/gpu/effects/GrTextureDomain.h')
-rw-r--r-- | src/gpu/effects/GrTextureDomain.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h index aa1db00905..cd06304639 100644 --- a/src/gpu/effects/GrTextureDomain.h +++ b/src/gpu/effects/GrTextureDomain.h @@ -174,6 +174,15 @@ public: const char* name() const override { return "TextureDomain"; } + SkString dumpInfo() const override { + SkString str; + str.appendf("Domain: [L: %.2f, T: %.2f, R: %.2f, B: %.2f] ", + fTextureDomain.domain().fLeft, fTextureDomain.domain().fTop, + fTextureDomain.domain().fRight, fTextureDomain.domain().fBottom); + str.append(INHERITED::dumpInfo()); + return str; + } + const GrTextureDomain& textureDomain() const { return fTextureDomain; } protected: |