aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-11-19 14:00:02 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-19 14:00:02 -0800
commit783a4da10ba08187a5029d74cfa1507ac1b13307 (patch)
tree1ba96fe5b9ae141af2ab9692c305447f947e5deb /src/gpu/effects
parentb7361580f275bef90f28a62c58bac60ab64dc4cc (diff)
Add more batch information printouts
Diffstat (limited to 'src/gpu/effects')
-rw-r--r--src/gpu/effects/GrXfermodeFragmentProcessor.cpp9
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));