// 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. 'use strict'; base.require('base.rect'); base.require('tracing.trace_model.object_instance'); base.require('cc.util'); base.exportTo('cc', function() { var ObjectSnapshot = tracing.trace_model.ObjectSnapshot; /** * @constructor */ function RenderPassSnapshot() { ObjectSnapshot.apply(this, arguments); } RenderPassSnapshot.prototype = { __proto__: ObjectSnapshot.prototype, preInitialize: function() { cc.preInitializeObject(this); }, initialize: function() { cc.moveRequiredFieldsFromArgsToToplevel( this, ['quadList']); } }; ObjectSnapshot.register('cc::RenderPass', RenderPassSnapshot); return { RenderPassSnapshot: RenderPassSnapshot }; });