aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/webrender/debugger/src/components/PassViewPage.vue
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webrender/debugger/src/components/PassViewPage.vue')
-rw-r--r--third_party/webrender/debugger/src/components/PassViewPage.vue37
1 files changed, 37 insertions, 0 deletions
diff --git a/third_party/webrender/debugger/src/components/PassViewPage.vue b/third_party/webrender/debugger/src/components/PassViewPage.vue
new file mode 100644
index 00000000000..0ab6d7c4464
--- /dev/null
+++ b/third_party/webrender/debugger/src/components/PassViewPage.vue
@@ -0,0 +1,37 @@
+<template>
+ <div class="box">
+ <h1 class="title">Passes <a :disabled="disabled" v-on:click="fetch" class="button is-info">Refresh</a></h1>
+ <hr/>
+ <div v-for="(pass, pass_index) in passes">
+ <p class="has-text-black-bis">Pass {{pass_index}}</p>
+ <div v-for="(target, target_index) in pass.targets">
+ <p style="text-indent: 2em;" class="has-text-grey-dark">Target {{target_index}} ({{target.kind}})</p>
+ <div v-for="(batch, batch_index) in target.batches">
+ <p style="text-indent: 4em;" class="has-text-grey">Batch {{batch_index}} ({{batch.description}}, {{batch.kind}}, {{batch.count}} instances)</p>
+ </div>
+ </div>
+ <hr/>
+ </div>
+ </div>
+</template>
+
+<script>
+export default {
+ methods: {
+ fetch: function() {
+ this.$store.dispatch('sendMessage', "fetch_passes");
+ }
+ },
+ computed: {
+ disabled() {
+ return !this.$store.state.connected
+ },
+ passes() {
+ return this.$store.state.passes
+ }
+ },
+}
+</script>
+
+<style>
+</style>