Commit fa20ed6
committed
Detached OffscreenCanvas should not transfer ImageBuffer
https://bugs.webkit.org/show_bug.cgi?id=275144
rdar://129270155
Reviewed by Simon Fraser.
The buffer cannot contain anything, as only the context-less
OffscreenCanvases can be detached.
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::SerializedScriptValue::computeMemoryCost const):
* Source/WebCore/html/OffscreenCanvas.cpp:
(WebCore::DetachedOffscreenCanvas::DetachedOffscreenCanvas):
(WebCore::OffscreenCanvas::create):
(WebCore::OffscreenCanvas::detach):
(WebCore::DetachedOffscreenCanvas::takeImageBuffer): Deleted.
(WebCore::OffscreenCanvas::takeImageBuffer const): Deleted.
* Source/WebCore/html/OffscreenCanvas.h:
(WebCore::DetachedOffscreenCanvas::originClean const):
(WebCore::DetachedOffscreenCanvas::memoryCost const): Deleted.
Canonical link: https://commits.webkit.org/279775@main1 parent d637301 commit fa20ed6
File tree
3 files changed
+4
-44
lines changed- Source/WebCore
- bindings/js
- html
3 files changed
+4
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5873 | 5873 | | |
5874 | 5874 | | |
5875 | 5875 | | |
5876 | | - | |
5877 | | - | |
5878 | | - | |
5879 | | - | |
5880 | | - | |
5881 | | - | |
5882 | 5876 | | |
5883 | 5877 | | |
5884 | 5878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
| 96 | + | |
| 97 | + | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 105 | | |
114 | 106 | | |
115 | 107 | | |
| |||
138 | 130 | | |
139 | 131 | | |
140 | 132 | | |
141 | | - | |
142 | 133 | | |
143 | 134 | | |
144 | 135 | | |
| |||
473 | 464 | | |
474 | 465 | | |
475 | 466 | | |
476 | | - | |
| 467 | + | |
477 | 468 | | |
478 | 469 | | |
479 | 470 | | |
| |||
535 | 526 | | |
536 | 527 | | |
537 | 528 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | 529 | | |
553 | 530 | | |
554 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | 87 | | |
90 | 88 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 89 | | |
99 | 90 | | |
100 | 91 | | |
101 | | - | |
102 | 92 | | |
103 | 93 | | |
104 | 94 | | |
| |||
181 | 171 | | |
182 | 172 | | |
183 | 173 | | |
184 | | - | |
185 | 174 | | |
186 | 175 | | |
187 | 176 | | |
| |||
0 commit comments