chore: bump chromium to 146.0.7635.0 (main) (#49408)

* chore: bump chromium in DEPS to 146.0.7635.0

* chore: update patch hunk headers

* 7078551: [wasm] Refactor caching API

https://chromium-review.googlesource.com/c/v8/v8/+/7078551

* 7141498: [api] Remove unused context parameter from FixedArray::Get

https://chromium-review.googlesource.com/c/v8/v8/+/7141498

* 7454865: Add timeouts to content API for CopyFromSurface

https://chromium-review.googlesource.com/c/chromium/src/+/7454865

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
electron-roller[bot]
2026-01-19 15:37:02 +01:00
committed by GitHub
parent 7851a34c2d
commit 486a9a61d2
32 changed files with 180 additions and 68 deletions

View File

@@ -3609,6 +3609,7 @@ v8::Local<v8::Promise> WebContents::CapturePage(gin::Arguments* args) {
bitmap_size = gfx::ScaleToCeiledSize(view_size, scale);
view->CopyFromSurface(gfx::Rect(rect.origin(), view_size), bitmap_size,
base::TimeDelta(),
base::BindOnce(&OnCapturePageDone, std::move(promise),
std::move(capture_handle)));
return handle;

View File

@@ -498,9 +498,10 @@ uint32_t OffScreenRenderWidgetHostView::GetCaptureSequenceNumber() const {
void OffScreenRenderWidgetHostView::CopyFromSurface(
const gfx::Rect& src_rect,
const gfx::Size& output_size,
base::TimeDelta timeout,
base::OnceCallback<void(const content::CopyFromSurfaceResult&)> callback) {
delegated_frame_host()->CopyFromCompositingSurface(src_rect, output_size,
std::move(callback));
delegated_frame_host()->CopyFromCompositingSurface(
src_rect, output_size, base::TimeDelta(), std::move(callback));
}
display::ScreenInfo OffScreenRenderWidgetHostView::GetScreenInfo() const {

View File

@@ -148,6 +148,7 @@ class OffScreenRenderWidgetHostView
void CopyFromSurface(
const gfx::Rect& src_rect,
const gfx::Size& output_size,
base::TimeDelta timeout,
base::OnceCallback<void(const content::CopyFromSurfaceResult&)> callback)
override;
display::ScreenInfo GetScreenInfo() const override;