mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
chore: bump chromium to 143.0.7483.0 (main) (#48590)
* chore: bump chromium in DEPS to 143.0.7482.0 * chore: bump chromium in DEPS to 143.0.7483.0 * [CodeHealth] Remove RenderWidgetHostImpl::is_hidden() | https://chromium-review.googlesource.com/c/chromium/src/+/7050059 * chore: update mas_avoid_private_macos_api_usage.patch.patch [graphite] Refactor backpressure fences on Mac to avoid GLContext | https://chromium-review.googlesource.com/c/chromium/src/+/7047167 * chore: update disable_compositor_recycling.patch no manual changes; patch applied with fuzz [CodeHealth] Remove RenderWidgetHostImpl::is_hidden() | https://chromium-review.googlesource.com/c/chromium/src/+/7050059 * chore: update allow_disabling_blink_scheduler_throttling_per_renderview.patch [CodeHealth] Remove RenderWidgetHostImpl::is_hidden() | https://chromium-review.googlesource.com/c/chromium/src/+/7050059 * chore: update feat_allow_code_cache_in_custom_schemes.patch [url] Change Add*Scheme*(...) functions to accept std::string_view | https://chromium-review.googlesource.com/c/chromium/src/+/7046471 * chore: e patches all * [memory] Replace bool success with MemoryDumpRequestOutcome enum. | https://chromium-review.googlesource.com/c/chromium/src/+/7029767 * [CodeHealth] Remove RenderWidgetHostImpl::is_hidden() | https://chromium-review.googlesource.com/c/chromium/src/+/7050059 --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
committed by
GitHub
parent
46c344fb1c
commit
00a3031357
@@ -2303,7 +2303,7 @@ void WebContents::SetBackgroundThrottling(bool allowed) {
|
||||
rwh_impl->disable_hidden_ = !background_throttling_;
|
||||
web_contents()->GetRenderViewHost()->SetSchedulerThrottling(allowed);
|
||||
|
||||
if (rwh_impl->is_hidden()) {
|
||||
if (rwh_impl->IsHidden()) {
|
||||
rwh_impl->WasShown({});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#include "electron/mas.h"
|
||||
#include "services/resource_coordinator/public/cpp/memory_instrumentation/global_memory_dump.h"
|
||||
#include "services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation.h"
|
||||
// #include
|
||||
// "services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom.h"
|
||||
#include "shell/browser/browser.h"
|
||||
#include "shell/common/application_info.h"
|
||||
#include "shell/common/gin_converters/file_path_converter.h"
|
||||
@@ -212,7 +214,7 @@ v8::Local<v8::Promise> ElectronBindings::GetProcessMemoryInfo(
|
||||
v8::Global<v8::Context> context(isolate, isolate->GetCurrentContext());
|
||||
memory_instrumentation::MemoryInstrumentation::GetInstance()
|
||||
->RequestGlobalDumpForPid(
|
||||
base::GetCurrentProcId(), std::vector<std::string>(),
|
||||
base::GetCurrentProcId(), {} /* allocator_dump_names */,
|
||||
base::BindOnce(&ElectronBindings::DidReceiveMemoryDump,
|
||||
std::move(context), std::move(promise),
|
||||
base::GetCurrentProcId()));
|
||||
@@ -236,7 +238,7 @@ void ElectronBindings::DidReceiveMemoryDump(
|
||||
v8::Global<v8::Context> context,
|
||||
gin_helper::Promise<gin_helper::Dictionary> promise,
|
||||
base::ProcessId target_pid,
|
||||
bool success,
|
||||
const memory_instrumentation::mojom::RequestOutcome outcome,
|
||||
std::unique_ptr<memory_instrumentation::GlobalMemoryDump> global_dump) {
|
||||
DCHECK(electron::IsBrowserProcess());
|
||||
v8::Isolate* isolate = promise.isolate();
|
||||
@@ -245,7 +247,7 @@ void ElectronBindings::DidReceiveMemoryDump(
|
||||
v8::Local<v8::Context>::New(isolate, context);
|
||||
v8::Context::Scope context_scope(local_context);
|
||||
|
||||
if (!success) {
|
||||
if (outcome != memory_instrumentation::mojom::RequestOutcome::kSuccess) {
|
||||
promise.RejectWithErrorMessage("Failed to create memory dump");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include "base/memory/scoped_refptr.h"
|
||||
#include "base/process/process_metrics.h"
|
||||
#include "services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom-forward.h"
|
||||
#include "shell/common/node_bindings.h"
|
||||
#include "uv.h" // NOLINT(build/include_directory)
|
||||
|
||||
@@ -59,7 +60,7 @@ class ElectronBindings {
|
||||
v8::Global<v8::Context> context,
|
||||
gin_helper::Promise<gin_helper::Dictionary> promise,
|
||||
base::ProcessId target_pid,
|
||||
bool success,
|
||||
memory_instrumentation::mojom::RequestOutcome outcome,
|
||||
std::unique_ptr<memory_instrumentation::GlobalMemoryDump> dump);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user