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

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 link issue 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
« no previous file with comments | « ppapi/examples/compositor/compositor.cc ('k') | ppapi/examples/compositor/spinning_cube.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a0dcfbefc2ee4ad9a7277b38446c2c7de80abc4c
--- /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>
« no previous file with comments | « ppapi/examples/compositor/compositor.cc ('k') | ppapi/examples/compositor/spinning_cube.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698