[webkit-changes] [WebKit/WebKit] 0d88ee: ProcessThrottler should use smart pointers instead...

Ryosuke Niwa noreply at github.com
Tue Aug 1 15:15:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0d88eebace38331e70dc2c4a08a38b5ca3f28fb5
      https://github.com/WebKit/WebKit/commit/0d88eebace38331e70dc2c4a08a38b5ca3f28fb5
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M Source/WebKit/UIProcess/ProcessThrottler.cpp
    M Source/WebKit/UIProcess/ProcessThrottler.h

  Log Message:
  -----------
  ProcessThrottler should use smart pointers instead of raw pointers
https://bugs.webkit.org/show_bug.cgi?id=259500

Reviewed by Chris Dumez.

Deploy smart pointers around ProcessThrottler.

* Source/WebKit/UIProcess/ProcessThrottler.cpp:
(WebKit::ProcessThrottler::addActivity):
(WebKit::ProcessThrottler::removeActivity):
(WebKit::ProcessThrottler::invalidateAllActivities):
(WebKit::ProcessThrottler::expectedThrottleState):
(WebKit::ProcessThrottler::setThrottleState):
(WebKit::ProcessThrottler::setAllowsActivities):
(WebKit::logActivityNames):
* Source/WebKit/UIProcess/ProcessThrottler.h:
(WebKit::ProcessThrottlerTimedActivity::activity const):
(WebKit::ProcessThrottler::shouldBeRunnable const):

Canonical link: https://commits.webkit.org/266496@main




More information about the webkit-changes mailing list