diff options
author | robertphillips <robertphillips@google.com> | 2015-11-19 14:00:02 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-19 14:00:02 -0800 |
commit | 783a4da10ba08187a5029d74cfa1507ac1b13307 (patch) | |
tree | 1ba96fe5b9ae141af2ab9692c305447f947e5deb /src/gpu/effects | |
parent | b7361580f275bef90f28a62c58bac60ab64dc4cc (diff) |
Add more batch information printouts
Review URL: https://codereview.chromium.org/1457373003
Diffstat (limited to 'src/gpu/effects')
-rw-r--r-- | src/gpu/effects/GrXfermodeFragmentProcessor.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/effects/GrXfermodeFragmentProcessor.cpp b/src/gpu/effects/GrXfermodeFragmentProcessor.cpp index 3706c994b8..6ff4d32f06 100644 --- a/src/gpu/effects/GrXfermodeFragmentProcessor.cpp +++ b/src/gpu/effects/GrXfermodeFragmentProcessor.cpp @@ -154,6 +154,15 @@ public: const char* name() const override { return "ComposeOne"; } + SkString dumpInfo() const override { + SkString str; + + for (int i = 0; i < this->numChildProcessors(); ++i) { + str.append(this->childProcessor(i).dumpInfo()); + } + return str; + } + void onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override { GR_STATIC_ASSERT((SkXfermode::kLastMode & SK_MaxU16) == SkXfermode::kLastMode); b->add32(fMode | (fChild << 16)); |