Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: tracing/tracing/extras/chrome/cc/output_surface.html

Issue 2466023004: Add UI for output surface debugging.
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/extras/chrome/cc/cc.html ('k') | tracing/tracing/ui/extras/chrome/cc/cc.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « tracing/tracing/extras/chrome/cc/cc.html ('k') | tracing/tracing/ui/extras/chrome/cc/cc.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698