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

Unified Diff: Source/devtools/front_end/profiler/CanvasProfileView.js

Issue 475803002: Make profiling lock global rather than per Target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Extracted Lock.js Created 6 years, 4 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
Index: Source/devtools/front_end/profiler/CanvasProfileView.js
diff --git a/Source/devtools/front_end/profiler/CanvasProfileView.js b/Source/devtools/front_end/profiler/CanvasProfileView.js
index 370687ca0961da5edf4d498b556a4a01980e71cc..35733ebac8d045b392ee8424db61e0994e268d60 100644
--- a/Source/devtools/front_end/profiler/CanvasProfileView.js
+++ b/Source/devtools/front_end/profiler/CanvasProfileView.js
@@ -700,22 +700,22 @@ WebInspector.CanvasProfileType.prototype = {
_runSingleFrameCapturing: function()
{
var frameId = this._selectedFrameId();
- this._target.profilingLock.acquire();
+ WebInspector.profilingLock.acquire();
CanvasAgent.captureFrame(frameId, this._didStartCapturingFrame.bind(this, frameId));
- this._target.profilingLock.release();
+ WebInspector.profilingLock.release();
},
_startFrameCapturing: function()
{
var frameId = this._selectedFrameId();
- this._target.profilingLock.acquire();
+ WebInspector.profilingLock.acquire();
CanvasAgent.startCapturing(frameId, this._didStartCapturingFrame.bind(this, frameId));
},
_stopFrameCapturing: function()
{
if (!this._lastProfileHeader) {
- this._target.profilingLock.release();
+ WebInspector.profilingLock.release();
return;
}
var profileHeader = this._lastProfileHeader;
@@ -726,7 +726,7 @@ WebInspector.CanvasProfileType.prototype = {
profileHeader._updateCapturingStatus();
}
CanvasAgent.stopCapturing(traceLogId, didStopCapturing);
- this._target.profilingLock.release();
+ WebInspector.profilingLock.release();
},
/**

Powered by Google App Engine
This is Rietveld 408576698