| 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>
|
|
|