Skip to content

Use UIImage instead of CGImage for brush-texture interfaces - #800

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_975731621
Sep 10, 2026
Merged

Use UIImage instead of CGImage for brush-texture interfaces#800
copybara-service[bot] merged 1 commit into
mainfrom
test_975731621

Conversation

@copybara-service

Copy link
Copy Markdown

Use UIImage instead of CGImage for brush-texture interfaces

UIImage has the advantage of being memory-managed and owning the underlying CGImage. The disadvantage is that it can also wrap CIImage and behaves differently depending on which it wraps. The code is updated to handle both cases, though there's a performance penalty if the UIImage isn't pre-loaded (the wrapping-CIImage case).

@copybara-service
copybara-service Bot force-pushed the test_975731621 branch 4 times, most recently from 133c5ec to e635201 Compare September 10, 2026 18:05
UIImage has the advantage of being memory-managed and owning the underlying CGImage. The disadvantage is that it can also wrap CIImage and behaves differently depending on which it wraps. The code is updated to handle both cases, though there's a performance penalty if the UIImage isn't pre-loaded (the wrapping-CIImage case).

PiperOrigin-RevId: 979292670
@copybara-service
copybara-service Bot merged commit 27e8e43 into main Sep 10, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_975731621 branch September 10, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant