Skip to content

Remove unnecessary unsafe modifier from GRContextOptions#3991

Merged
mattleibow merged 2 commits into
mainfrom
copilot/remove-unsafe-modifier-grcontextoptions
Jul 2, 2026
Merged

Remove unnecessary unsafe modifier from GRContextOptions#3991
mattleibow merged 2 commits into
mainfrom
copilot/remove-unsafe-modifier-grcontextoptions

Conversation

Copilot AI commented May 15, 2026

Copy link
Copy Markdown
Contributor

Description of Change

GRContextOptions was declared public unsafe class despite containing zero unsafe code — no pointers, no fixed blocks, no stackalloc. Remove the unnecessary modifier.

Bugs Fixed

API Changes

None.

Behavioral Changes

None.

Required skia PR

None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation

No tests needed — keyword-only removal with no behavioral or ABI impact.

Agent-Logs-Url: https://github.com/mono/SkiaSharp/sessions/a25f7a0d-002f-44d0-9122-e3a99cbfa345

Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove unnecessary class-level unsafe modifier from GRContextOptions Remove unnecessary unsafe modifier from GRContextOptions May 15, 2026
Copilot AI requested a review from mattleibow May 15, 2026 22:15
@mattleibow
mattleibow marked this pull request as ready for review July 2, 2026 19:40
@mattleibow
mattleibow merged commit 1c49b4a into main Jul 2, 2026
2 checks passed
@mattleibow
mattleibow deleted the copilot/remove-unsafe-modifier-grcontextoptions branch July 2, 2026 19:41
mattleibow pushed a commit that referenced this pull request Jul 3, 2026
Brings in the 7 commits that landed on main after this sync branch was
originally cut (yesterday's automated main-tip run):
- e00fa55 [skia-sync] Merge upstream chrome/m151 bug fixes (#4312)
- a1ecb75 docs: regenerate API diffs and polish release notes (#4322)
- 1c49b4a Remove unnecessary 'unsafe' modifier from GRContextOptions (#3991)
- 2d15749 Update docs submodule to latest main (#4304)
- 7356c75 [docs-site] Skip PR staging previews for non-site file changes (#4321)
- a95cc35 [docs-site] Add 'Moving faster with AI' dashboard to the AI page (#4318)
- 72ce599 [infra] Remove obsolete skiasharp-docker registry auth (#4310)

Conflicts resolved:
- cgmanifest.json: took origin/main (will be overwritten by
  update-versions.ps1 in the next commit with the new sync SHAs).
- externals/skia: took ours (90a2d04943 is a descendant of 98877992a5
  from PR #4312 via the corresponding submodule merge PR #278).
- docs submodule pointer: took origin/main (b64a0266c from PR #4304).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mattleibow mattleibow added this to the 4.151.0-preview.2 milestone Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[fix-finder] Remove unnecessary class-level unsafe modifier from GRContextOptions

2 participants