| Index: content/browser/resources/gpu/browser_bridge.js
|
| diff --git a/content/browser/resources/gpu/browser_bridge.js b/content/browser/resources/gpu/browser_bridge.js
|
| index cb4133a3398e7597af92113471021217bf3fcdf9..1cf980fe74cab86c24adcb033b5e29f873f8e962 100644
|
| --- a/content/browser/resources/gpu/browser_bridge.js
|
| +++ b/content/browser/resources/gpu/browser_bridge.js
|
| @@ -36,9 +36,11 @@ cr.define('gpu', function() {
|
| applySimulatedData_: function applySimulatedData(data) {
|
| // set up things according to the simulated data
|
| this.gpuInfo_ = data.gpuInfo;
|
| + this.gpuMemoryBufferInfo_ = data.gpuMemoryBufferInfo;
|
| this.clientInfo_ = data.clientInfo;
|
| this.logMessages_ = data.logMessages;
|
| cr.dispatchSimpleEvent(this, 'gpuInfoUpdate');
|
| + cr.dispatchSimpleEvent(this, 'gpuMemoryBufferInfoUpdate');
|
| cr.dispatchSimpleEvent(this, 'clientInfoChange');
|
| cr.dispatchSimpleEvent(this, 'logMessagesChange');
|
| },
|
| @@ -95,6 +97,21 @@ cr.define('gpu', function() {
|
| },
|
|
|
| /**
|
| + * Get gpuMemoryBufferInfo data.
|
| + */
|
| + get gpuMemoryBufferInfo() {
|
| + return this.gpuMemoryBufferInfo_;
|
| + },
|
| +
|
| + /**
|
| + * Called from gpu c++ code when GpuMemoryBuffer Info is updated.
|
| + */
|
| + onGpuMemoryBufferInfoUpdate: function(gpuMemoryBufferInfo) {
|
| + this.gpuMemoryBufferInfo_ = gpuMemoryBufferInfo;
|
| + cr.dispatchSimpleEvent(this, 'gpuMemoryBufferInfoUpdate');
|
| + },
|
| +
|
| + /**
|
| * This function begins a request for the ClientInfo. If it comes back
|
| * as undefined, then we will issue the request again in 250ms.
|
| */
|
|
|