blob: 0d8f307d2d480968e10f58527cf2fc0a7322e57c [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2013 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.
-->
<link rel="stylesheet" href="/extras/cc/picture_view.css">
<link rel="import" href="/extras/cc/picture.html">
<link rel="import" href="/extras/cc/picture_debugger.html">
<link rel="import" href="/core/analysis/generic_object_view.html">
<link rel="import" href="/core/analysis/object_snapshot_view.html">
<link rel="import" href="/core/analysis/util.html">
<script>
'use strict';
tv.exportTo('tv.e.cc', function() {
/*
* Displays a picture snapshot in a human readable form.
* @constructor
*/
var PictureSnapshotView = tv.b.ui.define(
'picture-snapshot-view',
tv.c.analysis.ObjectSnapshotView);
PictureSnapshotView.prototype = {
__proto__: tv.c.analysis.ObjectSnapshotView.prototype,
decorate: function() {
this.classList.add('picture-snapshot-view');
this.pictureDebugger_ = new tv.e.cc.PictureDebugger();
this.appendChild(this.pictureDebugger_);
},
updateContents: function() {
if (this.objectSnapshot_ && this.pictureDebugger_)
this.pictureDebugger_.picture = this.objectSnapshot_;
}
};
tv.c.analysis.ObjectSnapshotView.register(
PictureSnapshotView,
{
typeNames: ['cc::Picture', 'cc::LayeredPicture'],
showInstances: false
});
return {
PictureSnapshotView: PictureSnapshotView
};
});
</script>