forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The particles version is used only when we want to demo brand-new APIs. These demos should be using stuff that has baked in for a while. No-Try: true Change-Id: I3a6cb9d4f384fe43c4acaae32416820f47adb440 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/553018 Auto-Submit: Kevin Lubick <[email protected]> Reviewed-by: Chris Mumford <[email protected]> Commit-Queue: Chris Mumford <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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://particles.skia.org/dist/canvaskit.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/bin/full/canvaskit.js"></script> | ||
<script type="text/javascript" src="textapi_utils.js"></script> | ||
<script type="text/javascript" src="spiralshader.js"></script> | ||
|
||
|
@@ -22,7 +22,7 @@ <h1>TextEdit in CanvasKit</h1> | |
<script type="text/javascript" charset="utf-8"> | ||
let CanvasKit; | ||
onload = async () => { | ||
CanvasKit = await CanvasKitInit({ locateFile: (file) => 'https://particles.skia.org/dist/'+file }); | ||
CanvasKit = await CanvasKitInit({ locateFile: (file) => 'https://unpkg.com/[email protected]/bin/full/'+file }); | ||
ParagraphAPI2(); | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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://particles.skia.org/dist/canvaskit.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/bin/full/canvaskit.js"></script> | ||
|
||
<style> | ||
canvas { | ||
|
@@ -29,7 +29,7 @@ <h1>User Defined Textures</h1> | |
</body> | ||
|
||
<script type="text/javascript" charset="utf-8"> | ||
const ckLoaded = CanvasKitInit({ locateFile: (file) => 'https://particles.skia.org/dist/' + file }); | ||
const ckLoaded = CanvasKitInit({ locateFile: (file) => 'https://unpkg.com/[email protected]/bin/full/' + file }); | ||
const canvasEle = document.getElementById('draw'); | ||
const imgEle = document.getElementById('sourceImage'); | ||
const videoEle = document.getElementById('sourceVideo'); | ||
|