Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: LayoutTests/fast/canvas/webgl/draw-webgl-to-canvas-2d-after-to-data-url-without-context-expected.txt

Issue 750273003: canvas: calling toDataURL without context doesn't create a buffer of canvas 2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix typo Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 PASS successfullyParsed is true
2
3 TEST COMPLETE
4 Check for drawing webgl to canvas 2d on the same frame.
5 1) when drawingBuffer is preserved.
6 PASS imgdata[0] is 255
7 PASS imgdata[1] is 0
8 PASS imgdata[2] is 0
9 PASS imgdata[0] is 0
10 PASS imgdata[1] is 255
11 PASS imgdata[2] is 0
12 2) when drawingBuffer is not preserved.
13 PASS imgdata[0] is 255
14 PASS imgdata[1] is 0
15 PASS imgdata[2] is 0
16 PASS imgdata[0] is 0
17 PASS imgdata[1] is 255
18 PASS imgdata[2] is 0
19 Check for drawing webgl to canvas 2d several frames after drawing webgl contents .
20 1) when drawingBuffer is preserved.
21 PASS imgdata[0] is 255
22 PASS imgdata[1] is 0
23 PASS imgdata[2] is 0
24 PASS imgdata[0] is 0
25 PASS imgdata[1] is 255
26 PASS imgdata[2] is 0
27 2) when drawingBuffer is not preserved. It leads to undefined behavior.
28 PASS imgdata[0] is 255
29 PASS imgdata[1] is 0
30 PASS imgdata[2] is 0
31 PASS imgdata[0] is 255
32 PASS imgdata[1] is 0
33 PASS imgdata[2] is 0
34 Everything is same to draw-webgl-to-canvas-2d.html except for calling redundant toDataURL(). Canvas spec allows to call toDataURL() without a context. Some bad things can happen if we call toDataURL() without a context and then create a con text and then call toDataURL() again.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698