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

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

Issue 471393002: Revert of Make profiling lock global rather than per Target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/profiler/ProfilesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35733ebac8d045b392ee8424db61e0994e268d60..370687ca0961da5edf4d498b556a4a01980e71cc 100644
--- a/Source/devtools/front_end/profiler/CanvasProfileView.js
+++ b/Source/devtools/front_end/profiler/CanvasProfileView.js
@@ -700,22 +700,22 @@
_runSingleFrameCapturing: function()
{
var frameId = this._selectedFrameId();
- WebInspector.profilingLock.acquire();
+ this._target.profilingLock.acquire();
CanvasAgent.captureFrame(frameId, this._didStartCapturingFrame.bind(this, frameId));
- WebInspector.profilingLock.release();
+ this._target.profilingLock.release();
},
_startFrameCapturing: function()
{
var frameId = this._selectedFrameId();
- WebInspector.profilingLock.acquire();
+ this._target.profilingLock.acquire();
CanvasAgent.startCapturing(frameId, this._didStartCapturingFrame.bind(this, frameId));
},
_stopFrameCapturing: function()
{
if (!this._lastProfileHeader) {
- WebInspector.profilingLock.release();
+ this._target.profilingLock.release();
return;
}
var profileHeader = this._lastProfileHeader;
@@ -726,7 +726,7 @@
profileHeader._updateCapturingStatus();
}
CanvasAgent.stopCapturing(traceLogId, didStopCapturing);
- WebInspector.profilingLock.release();
+ this._target.profilingLock.release();
},
/**
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/profiler/ProfilesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698