WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 275100
CanvasBase owns a ImageBuffer that belongs to the CanvasRenderingContext
https://bugs.webkit.org/show_bug.cgi?id=275100
Summary
CanvasBase owns a ImageBuffer that belongs to the CanvasRenderingContext
Kimmo Kinnunen
Reported
2024-06-04 01:48:49 PDT
CanvasBase owns a ImageBuffer that belongs to the CanvasRenderingContext This is a problem because only CanvasRenderingContext2DBase really uses the ImageBuffer. Others would be better performing if the CanvasBase didn't have a ImageBuffer, rather the buffer was asked from the context.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-06-04 01:49:19 PDT
<
rdar://problem/129208981
>
Simon Fraser (smfr)
Comment 2
2024-07-05 21:04:07 PDT
> the buffer was asked from the context
This seems backwards. The buffer vends the context.
Kimmo Kinnunen
Comment 3
2024-07-31 04:32:37 PDT
(In reply to Simon Fraser (smfr) from
comment #2
)
> > the buffer was asked from the context > This seems backwards. The buffer vends the context.
The intention was to say "the |drawing or display] buffer copy was asked from the [canvas rendering] context". In this context "buffer vends the context" doesn't make sense. The specific variant of canvas rendering context should return the rendering results image, it is private logic of said rendering type. The specific variant of canvas rendering context should manage the drawing buffer backing store in the manner it needs to manage it.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug