Descriptioncanvas: calling toDataURL without context doesn't create a buffer of canvas 2d.
Currently, calling toDataURL without context creates a software buffer for canvas 2d.
After it, we can create a webgl context, but canvas implementation reuses the software
buffer for webgl. It works well because webgl has software fallback code but it causes
unnecessary slow performance when copying webgl contents to other webgl or canvas 2d.
This CL doesn't make a buffer when a context doesn't exist because we don't know which
context will be created.
TEST=fast/canvas/webgl/draw-webgl-to-canvas-2d-after-to-data-url-without-context.html
BUG=331181
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185933
Patch Set 1 #Patch Set 2 : Change the goal: fix webgl bug #Patch Set 3 : Add fast/canvas/webgl/draw-webgl-to-canvas-2d-after-to-data-url-without-context.html #Patch Set 4 : Fix fast/canvas/canvas-toDataURL-crash.html #
Total comments: 1
Patch Set 5 : add the description of new test #
Total comments: 1
Patch Set 6 : fix typo #
Total comments: 2
Messages
Total messages: 28 (5 generated)
|