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

Unified Diff: ppapi/examples/compositor/compositor.html

Issue 298023004: [PPAPI] Compositor API implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor_api_def_new
Patch Set: Fix review issues Created 6 years, 6 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: ppapi/examples/compositor/compositor.html
diff --git a/ppapi/examples/compositor/compositor.html b/ppapi/examples/compositor/compositor.html
new file mode 100644
index 0000000000000000000000000000000000000000..d84429af68cd6327b512ac7d7fdc6d327ca02d8a
--- /dev/null
+++ b/ppapi/examples/compositor/compositor.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+ <!--
+ Copyright 2014 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+ -->
+<head>
+ <title>GLES2 Spinning Cube Example</title>
+</head>
+
+<body>
+
+<embed id="plugin" type="application/x-ppapi-example-compositor"
+ width="800" height="600"/> <br/>
+ Total resource: <input id="total" > <br/>
+ Free resource: <input id="free" > <br/>
+<script type="text/javascript">
+ var plugin = document.getElementById('plugin');
+ var total = document.getElementById('total');
+ var free = document.getElementById('free');
+ plugin.addEventListener('message', function(message) {
+ total.value = message.data.total_resource;
+ free.value = message.data.free_resource;
+ }, false);
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698