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

Unified Diff: content/browser/resources/gpu/info_view.js

Issue 1375663002: Show GpuMemoryBuffer feature in chrome://gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl formatted and removed "Formats"/"Native usage support" value pair Created 5 years, 2 months 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 | « content/browser/resources/gpu/info_view.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/gpu/info_view.js
diff --git a/content/browser/resources/gpu/info_view.js b/content/browser/resources/gpu/info_view.js
index 20c6b8e9cc8ca74a9f02a2541ad77e9784853125..3566369cd704db9c9fd76fdbc5dc635a506cec6e 100644
--- a/content/browser/resources/gpu/info_view.js
+++ b/content/browser/resources/gpu/info_view.js
@@ -23,6 +23,8 @@ cr.define('gpu', function() {
cr.ui.TabPanel.prototype.decorate.apply(this);
browserBridge.addEventListener('gpuInfoUpdate', this.refresh.bind(this));
+ browserBridge.addEventListener('gpuMemoryBufferInfoUpdate',
+ this.refresh.bind(this));
browserBridge.addEventListener('logMessagesChange',
this.refresh.bind(this));
browserBridge.addEventListener('clientInfoChange',
@@ -152,6 +154,7 @@ cr.define('gpu', function() {
var workaroundsDiv = this.querySelector('.workarounds-div');
var workaroundsList = this.querySelector('.workarounds-list');
var gpuInfo = browserBridge.gpuInfo;
+ var gpuMemoryBufferInfo = browserBridge.gpuMemoryBufferInfo;
var i;
if (gpuInfo) {
// Not using jstemplate here for blacklist status because we construct
@@ -216,6 +219,12 @@ cr.define('gpu', function() {
problemsList.hidden = true;
workaroundsList.hidden = true;
}
+ if (gpuMemoryBufferInfo.gpu_memory_buffer_info)
+ this.setTable_('gpu-memory-buffer-info',
+ gpuMemoryBufferInfo.gpu_memory_buffer_info);
+ else
+ this.setTable_('gpu-memory-buffer-info', []);
+
if (gpuInfo.basic_info)
this.setTable_('basic-info', gpuInfo.basic_info);
else
« no previous file with comments | « content/browser/resources/gpu/info_view.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698