提交 5fef6170 编写于 作者: Z zhangxinyue

bug fix

Signed-off-by: Nzhangxinyue <zhangxinyue38@huawei.com>
上级 672b01da
......@@ -55,7 +55,6 @@ struct GlobalExample {
}
testOffscreenCanvas() {
var offContext = new OffscreenCanvas(300, 300);
var offCanvas2 = this.offContext.getContext("2d");
var img = new Image();
img.src = "/images/bg.jpg";
......@@ -66,7 +65,6 @@ struct GlobalExample {
}
testImageData() {
var offContext = new OffscreenCanvas(300, 300);
var offCanvas2 = this.offContext.getContext("2d");
var imageData = offCanvas2.createImageData(100, 100);
var imgData = imageData.data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册