Home | History | Annotate | Download | only in cc
      1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 'use strict';
      6 
      7 base.require('base.rect');
      8 base.require('tracing.trace_model.object_instance');
      9 base.require('cc.util');
     10 
     11 base.exportTo('cc', function() {
     12 
     13   var ObjectSnapshot = tracing.trace_model.ObjectSnapshot;
     14 
     15   /**
     16    * @constructor
     17    */
     18   function TileSnapshot() {
     19     ObjectSnapshot.apply(this, arguments);
     20   }
     21 
     22   TileSnapshot.prototype = {
     23     __proto__: ObjectSnapshot.prototype,
     24 
     25     preInitialize: function() {
     26       cc.preInitializeObject(this);
     27     },
     28 
     29     initialize: function() {
     30       cc.moveOptionalFieldsFromArgsToToplevel(
     31           this, ['layerId']);
     32     }
     33   };
     34 
     35   ObjectSnapshot.register('cc::Tile', TileSnapshot);
     36 
     37   return {
     38     TileSnapshot: TileSnapshot
     39   };
     40 });
     41