Fix up_scaling and image_sampling demos.
Bump CanvasKit version to latest (0.34.1) to fix incompatibilities with current version of these demos. The first code incompatibility with the previous CanvasKit (0.25.0) was introduced in Change-Id I8cf958acf9214d0de903a4097647afd74f2a659e. Bug: skia:13456 Change-Id: Idc8c9935698743b4478ff61b8c10d8385093527c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/551762 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Chris Mumford <cmumford@google.com>
This commit is contained in:
parent
62b0049ddb
commit
cdda3902be
@ -3,7 +3,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="text/javascript" src="https://unpkg.com/canvaskit-wasm@0.25.0/bin/full/canvaskit.js"></script>
|
||||
<script type="text/javascript" src="https://unpkg.com/canvaskit-wasm@0.34.1/bin/full/canvaskit.js"></script>
|
||||
|
||||
<style>
|
||||
figcaption {
|
||||
@ -41,7 +41,7 @@
|
||||
</body>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
const ckLoaded = CanvasKitInit({ locateFile: (file) => 'https://unpkg.com/canvaskit-wasm@0.25.0/bin/full/' + file });
|
||||
const ckLoaded = CanvasKitInit({ locateFile: (file) => 'https://unpkg.com/canvaskit-wasm@0.34.1/bin/full/' + file });
|
||||
|
||||
ckLoaded.then((CanvasKit) => {
|
||||
if (!CanvasKit.RuntimeEffect) {
|
||||
|
@ -5,7 +5,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="text/javascript" src="https://unpkg.com/canvaskit-wasm@0.25.0/bin/full/canvaskit.js"></script>
|
||||
<script type="text/javascript" src="https://unpkg.com/canvaskit-wasm@0.34.1/bin/full/canvaskit.js"></script>
|
||||
|
||||
<style>
|
||||
canvas {
|
||||
@ -27,7 +27,7 @@ canvas {
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
let CanvasKit;
|
||||
onload = async () => {
|
||||
CanvasKit = await CanvasKitInit({ locateFile: (file) => "https://unpkg.com/canvaskit-wasm@0.25.0/bin/full/" + file });
|
||||
CanvasKit = await CanvasKitInit({ locateFile: (file) => "https://unpkg.com/canvaskit-wasm@0.34.1/bin/full/" + file });
|
||||
init();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user