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

Unified Diff: sky/examples/spinning-square.sky

Issue 803283006: Add a fps-counter widget to some Sky demos (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
Index: sky/examples/spinning-square.sky
diff --git a/sky/examples/spinning-square.sky b/sky/examples/spinning-square.sky
index b4c1c7042a4da2d9341716ddcc51fa9fdcfe6c8e..c5239406677ab842eefec62e582641d4ca075790 100644
--- a/sky/examples/spinning-square.sky
+++ b/sky/examples/spinning-square.sky
@@ -1,5 +1,6 @@
#!mojo mojo:sky_viewer
<sky>
+<import src="fps-counter.sky" />
<style>
square {
margin: 50px;
@@ -8,7 +9,8 @@ square {
background-color: green;
}
</style>
-<square></square>
+<square />
+<fps-counter showHistory="true" />
<script>
var square = document.querySelector('square');
var timeBase = 0;

Powered by Google App Engine
This is Rietveld 408576698