1<!DOCTYPE html>
2<!--
3Copyright (c) 2015 The Chromium Authors. All rights reserved.
4Use of this source code is governed by a BSD-style license that can be
5found in the LICENSE file.
6-->
7
8<link rel="import" href="/tracing/extras/chrome/cc/picture.html">
9<link rel="import" href="/tracing/model/object_instance.html">
10
11<script>
12'use strict';
13
14tr.exportTo('tr.e.cc', function() {
15  var ObjectSnapshot = tr.model.ObjectSnapshot;
16
17  function DisplayItemList(skp64, layerRect) {
18    tr.e.cc.Picture.apply(this, arguments);
19  }
20
21  DisplayItemList.prototype = {
22    __proto__: tr.e.cc.Picture.prototype
23  };
24
25  /**
26   * @constructor
27   */
28  function DisplayItemListSnapshot() {
29    tr.e.cc.PictureSnapshot.apply(this, arguments);
30  }
31
32  DisplayItemListSnapshot.prototype = {
33    __proto__: tr.e.cc.PictureSnapshot.prototype,
34
35    initialize: function() {
36      tr.e.cc.PictureSnapshot.prototype.initialize.call(this);
37      this.displayItems_ = this.args.params.items;
38    },
39
40    get items() {
41      return this.displayItems_;
42    }
43  };
44
45  ObjectSnapshot.register(
46      DisplayItemListSnapshot,
47      {typeNames: ['cc::DisplayItemList']});
48
49  return {
50    DisplayItemListSnapshot: DisplayItemListSnapshot,
51    DisplayItemList: DisplayItemList
52  };
53});
54</script>
55