1<!DOCTYPE html> 2<!-- 3Copyright (c) 2013 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/util.html"> 9<link rel="import" href="/tracing/base/rect.html"> 10<link rel="import" href="/tracing/model/object_instance.html"> 11 12<script> 13'use strict'; 14 15tr.exportTo('tr.e.cc', function() { 16 var ObjectSnapshot = tr.model.ObjectSnapshot; 17 18 /** 19 * @constructor 20 */ 21 function RenderPassSnapshot() { 22 ObjectSnapshot.apply(this, arguments); 23 } 24 25 RenderPassSnapshot.prototype = { 26 __proto__: ObjectSnapshot.prototype, 27 28 preInitialize: function() { 29 tr.e.cc.preInitializeObject(this); 30 }, 31 32 initialize: function() { 33 tr.e.cc.moveRequiredFieldsFromArgsToToplevel( 34 this, ['quadList']); 35 } 36 }; 37 38 ObjectSnapshot.register(RenderPassSnapshot, {typeName: 'cc::RenderPass'}); 39 40 return { 41 RenderPassSnapshot: RenderPassSnapshot 42 }; 43}); 44</script> 45