Skip to content
  • dino@apple.com's avatar
    Bootstrap canvas profiler · 31858a66
    dino@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=119652
    <rdar://problem/14703665>
    
    Reviewed by Joseph Pecoraro.
    
    Add enough to get an empty Canvas profile recording
    and displayed.
    
    * Localizations/en.lproj/localizedStrings.js: Add canvas strings.
    * UserInterface/CanvasProfileObject.js: Added. Mostly copied from CSS Selector Profiles.
    * UserInterface/CanvasProfileType.js: Added. Ditto.
    * UserInterface/CanvasDataGridNode.js: Added. Ditto.
    * UserInterface/CanvasProfileView.js: Added. Ditto.
    * UserInterface/ContentView.js:
    (WebInspector.ContentView): Add support for the new View type.
    (WebInspector.ContentView.isViewable):
    * UserInterface/InstrumentSidebarPanel.js:
    (WebInspector.InstrumentSidebarPanel): Add support for canvas profiles.
    (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphMousedOver):
    (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphMousedDown):
    (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphClicked):
    (WebInspector.InstrumentSidebarPanel.prototype._profileTypeWasSelected):
    (WebInspector.InstrumentSidebarPanel.prototype._profilesCleared):
    * UserInterface/Main.html: Load the new files.
    * UserInterface/ProfileManager.js: New methods and support for canvas profiles.
    (WebInspector.ProfileManager):
    (WebInspector.ProfileManager.prototype.initialize):
    (WebInspector.ProfileManager.prototype.isProfilingCanvas):
    (WebInspector.ProfileManager.prototype.startProfilingCanvas):
    (WebInspector.ProfileManager.prototype.stopProfilingCanvas):
    (WebInspector.ProfileManager.prototype._checkForInterruptions):
    (WebInspector.ProfileManager.prototype._attemptToResumeProfiling):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    31858a66