3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
8 <link rel="import" href="/tvcm.html">
9 <link rel="import" href="/tracing/trace_model/object_instance.html">
14 tvcm.exportTo('gpu', function() {
15 var ObjectSnapshot = tracing.trace_model.ObjectSnapshot;
20 function StateSnapshot() {
21 ObjectSnapshot.apply(this, arguments);
24 StateSnapshot.prototype = {
25 __proto__: ObjectSnapshot.prototype,
27 preInitialize: function() {
28 this.screenshot_ = undefined;
31 initialize: function() {
32 if (this.args.screenshot)
33 this.screenshot_ = this.args.screenshot;
37 * @return {String} a base64 encoded screenshot if available.
40 return this.screenshot_;
44 ObjectSnapshot.register('gpu::State', StateSnapshot);
47 StateSnapshot: StateSnapshot