| Index: tracing/tracing/extras/chrome/cc/output_surface.html
|
| diff --git a/tracing/tracing/extras/chrome/gpu/state.html b/tracing/tracing/extras/chrome/cc/output_surface.html
|
| similarity index 51%
|
| copy from tracing/tracing/extras/chrome/gpu/state.html
|
| copy to tracing/tracing/extras/chrome/cc/output_surface.html
|
| index 68ac8e1594d79cf30752f826d38e2e470c45759d..e32124e7771e8283f06294191d886272a4c3e184 100644
|
| --- a/tracing/tracing/extras/chrome/gpu/state.html
|
| +++ b/tracing/tracing/extras/chrome/cc/output_surface.html
|
| @@ -1,6 +1,6 @@
|
| <!DOCTYPE html>
|
| <!--
|
| -Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +Copyright (c) 2016 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.
|
| -->
|
| @@ -11,7 +11,7 @@ found in the LICENSE file.
|
| <script>
|
| 'use strict';
|
|
|
| -tr.exportTo('tr.e.gpu', function() {
|
| +tr.exportTo('tr.e.cc', function() {
|
| var ObjectSnapshot = tr.model.ObjectSnapshot;
|
|
|
| /**
|
| @@ -25,15 +25,45 @@ tr.exportTo('tr.e.gpu', function() {
|
| __proto__: ObjectSnapshot.prototype,
|
|
|
| preInitialize: function() {
|
| + this.vsyncTime_ = undefined;
|
| + this.vsyncJsTime_ = undefined;
|
| + this.overlayTextures_ = undefined;
|
| this.screenshot_ = undefined;
|
| },
|
|
|
| initialize: function() {
|
| + if (this.args.vsyncTime)
|
| + this.vsyncTime_ = this.args.vsyncTime;
|
| + if (this.args.vsyncJsTime)
|
| + this.vsyncJsTime_ = this.args.vsyncJsTime;
|
| + if (this.args.overlayTextures)
|
| + this.overlayTextures_ = this.args.overlayTextures;
|
| if (this.args.screenshot)
|
| this.screenshot_ = this.args.screenshot;
|
| },
|
|
|
| /**
|
| + * @return {Int} VSYNC time stamp.
|
| + */
|
| + get vsyncTime() {
|
| + return this.vsyncTime_;
|
| + },
|
| +
|
| + /**
|
| + * @return {Int} VSYNC JS time stamp.
|
| + */
|
| + get vsyncJsTime() {
|
| + return this.vsyncJsTime_;
|
| + },
|
| +
|
| + /**
|
| + * @return {Int} number of overlay textures.
|
| + */
|
| + get overlayTextures() {
|
| + return this.overlayTextures_;
|
| + },
|
| +
|
| + /**
|
| * @return {String} a base64 encoded screenshot if available.
|
| */
|
| get screenshot() {
|
| @@ -43,7 +73,7 @@ tr.exportTo('tr.e.gpu', function() {
|
|
|
| ObjectSnapshot.subTypes.register(
|
| StateSnapshot,
|
| - {typeName: 'gpu::State'});
|
| + {typeName: 'cc::OutputSurface'});
|
|
|
| return {
|
| StateSnapshot: StateSnapshot
|
|
|