Commit Graph

13 Commits

Author SHA1 Message Date
Kevin Lubick
8e89f60c49 [canvaskit] Update docs to account for API changes
canvas.flush() was removed. This updates all examples to
use surface.requestAnimationFrame(), which is cleaner.

Change-Id: I79fa308dc321865318b7f5d4723f3f803c0b071a
No-Try: true
Docs-Preview: https://skia.org/?cl=414856
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/414856
Reviewed-by: Herb Derby <herb@google.com>
2021-06-02 14:15:18 +00:00
Heather Miller
0ea0e75a3d Update release notes for m92 cut, m93 begin
Change-Id: I216fa16d6dfd57214def9099cb3fa1b5cb281f23
Docs-Preview: https://skia.org/?cl=411299
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/411299
Reviewed-by: Heather Miller <hcm@google.com>
Commit-Queue: Heather Miller <hcm@google.com>
2021-05-21 18:18:03 +00:00
Ravi Mistry
e5be65e998 Update references to master branch
Change-Id: I1bfd1b655af6cdfbd64452b1e594a276425095fe
Bug: skia:11987
Docs-Preview: https://skia.org/?cl=410790
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/410790
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
2021-05-21 15:18:16 +00:00
Brian Osman
e5877456ef Restore cube demo to canvaskit demo page
Lighting isn't quite right, but this is far better than nothing.

Change-Id: I5ad663be01554da68d878a383855cd719a9952f2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/399338
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-04-21 21:55:27 +00:00
Brian Osman
e37660b43c Use SkRuntimeEffect::MakeForShader in CanvasKit
The old factory is deprecated. The new factory does stricter checking on
the signature of main and calls to sample - verifying that the SkSL is
valid as an SkShader (vs SkColorFilter) at effect creation time.

Bug: skia:11813
Change-Id: I8d70f81b5c3fa78b05add1b591caf1d26dd70402
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/399077
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-04-21 17:44:12 +00:00
Brian Osman
8f1dff6a9e Remove layout(marker) from runtime effect SkSL
This is another strange, experimental feature that clutters the
implementation and isn't used by anyone (to my knowledge).

Change-Id: I538b7eca0cd28aab32f4739b23459731ade9105e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/398226
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-04-19 18:48:45 +00:00
Eric Boren
532b799173 [sk] Add documentation
Change-Id: Ibf8cad25af60f61541ebe064a27d235dceea442b
No-Try: true
Docs-Preview: https://skia.org/docs/dev/tools/sk?cl=397037
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/397037
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
2021-04-15 16:02:51 +00:00
Heather Miller
5571865673 update release notes for M91 branch
Change-Id: I5bddb5aa3543953cf5fb6090a247359ab69a239c
Docs-Preview: https://skia.org/docs/user/release/release_notes?cl=395097
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/395097
Reviewed-by: Heather Miller <hcm@google.com>
Commit-Queue: Heather Miller <hcm@google.com>
Auto-Submit: Heather Miller <hcm@google.com>
2021-04-09 19:31:57 +00:00
Brian Osman
0351d5af88 Add user docs about Skia coordinate spaces
Includes a general explanation of device vs. local, how shaders don't
move with geometry, and how to use canvas transforms. Also shows
localMatrix on an SkShader. Finally, links to that from the SkSL page,
and adds SkSL-specific notes about coordinates.

Bug: skia:11763
Change-Id: I31462aff66ff8514392098b972a10e7c96e4f254
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/393516
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2021-04-09 13:50:19 +00:00
Joe Gregorio
e296c56735 [docs] Fix all 404s.
Change-Id: I1b89db473582f9fcc4d87436a590ee36e869fe45
No-Try: true
Docs-Preview: https://skia.org/docs/user/build?cl=392717
Docs-Preview: https://skia.org/docs/dev/contrib/?cl=392717
Docs-Preview: https://skia.org/docs/dev/gardening/?cl=392717
Docs-Preview: https://skia.org/docs/user/tips?cl=392717
Docs-Preview: https://skia.org/docs/dev/tools/debugger?cl=392717
Docs-Preview: https://skia.org/docs/user/modules/pathkit?cl=392717
Docs-Preview: https://skia.org/docs/dev/testing/fuzz?cl=392717
Docs-Preview: https://skia.org/docs/dev/testing/ios?cl=392717
Docs-Preview: https://skia.org/docs/roles?cl=392717
Docs-Preview: https://skia.org/docs/user/api/?cl=392717
Docs-Preview: https://skia.org/docs/dev/testing/swarmingbots?cl=392717
Docs-Preview: https://skia.org/docs/dev/chrome/changes?cl=392717
Docs-Preview: https://skia.org/docs/user/download?cl=392717
Docs-Preview: https://skia.org/docs/dev/flutter/?cl=392717
Docs-Preview: https://skia.org/docs/user/modules/quickstart?cl=392717
Docs-Preview: https://skia.org/docs/user/api/skcanvas_creation?cl=392717
Docs-Preview: https://skia.org/docs/user/sample/viewer?cl=392717
Docs-Preview: https://skia.org/docs/dev/design/pdftheory?cl=392717
Docs-Preview: https://skia.org/docs/user/api/SkBlendMode_Overview?cl=392717
Docs-Preview: https://skia.org/docs/user/api/skcanvas_overview?cl=392717
Docs-Preview: https://skia.org/docs/?cl=392717
Docs-Preview: https://skia.org/docs/dev/contrib/submit?cl=392717
Docs-Preview: https://skia.org/docs/user/api/SkPath_Overview?cl=392717
Docs-Preview: https://skia.org/docs/user/modules/skottie?cl=392717
Docs-Preview: https://skia.org/docs/user/modules/canvaskit?cl=392717
Fixed: skia:404
Docs-Preview: https://skia.org/docs/dev/tools/calendar?cl=392717
Docs-Preview: https://skia.org/docs/dev/gardening/android?cl=392717
Docs-Preview: https://skia.org/docs/dev/contrib/style?cl=392717
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/392717
Reviewed-by: Heather Miller <hcm@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
2021-04-05 16:20:10 +00:00
Joe Gregorio
9601185bb6 [docs] Add back in all images and fix broken image links.
Change-Id: I0ffd838880746dbfe534ea615277fc24cd26b7ec
No-Try: true
Docs-Preview: https://skia.org/docs/dev/design/conical/corollary2.3.3?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Digests?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Status?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Cluster?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Perf?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/corollary2.3.2?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/lemma4?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/IssueHighlight?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/lemma3.1?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/tracing?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/BlameView?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/corollary2.2.2?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/download?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Isolate?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Search?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/end?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/image?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Grid?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/corollary2.2.1?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/debugger?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/pdftheory?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/resources?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/playcommands?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/DotDiagram?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Ignores?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/onlinedebugger?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/crosshair?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/frameplayback?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/corollary2.3.1?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/buttons?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/ClusterConfig?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/lemma3.2?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/skiaperf?cl=392736
Docs-Preview: https://skia.org/docs/dev/contrib/SuggestedReviewers?cl=392736
Docs-Preview: https://skia.org/docs/user/modules/PathKit_effects?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/Regression?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/ByTest?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/settings?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/conical/lemma1?cl=392736
Docs-Preview: https://skia.org/docs/dev/design/PdfLogicalDocumentStructure?cl=392736
Docs-Preview: https://skia.org/docs/dev/testing/skiagold?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/expand?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/tracing_load?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/layers?cl=392736
Docs-Preview: https://skia.org/docs/dev/tools/gpuop?cl=392736
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/392736
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
2021-04-05 13:20:45 +00:00
Joe Gregorio
5fa3b130fe [docsyserver] Add more documentation on Hugo/Docsy capabilities.
Bug: skia:11799
Change-Id: I504fd0cd65dd4dbf31d77b4b0efc692f072d94e8
No-Try: true
Docs-Preview: https://skia.org/docs/dev/tools/markdown/?cl=391876
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/391876
Reviewed-by: Heather Miller <hcm@google.com>
2021-04-01 17:27:37 +00:00
Joe Gregorio
10d45b867f [docysserver] Move to the Hugo/Docsy set of files as the primary documentation.
Bug: skia:11799
Change-Id: Ic9e9bc6a91cf1a7c9166ca1eae4aec6b00eb5e2a
Docs-Preview: https://skia.org/?cl=391436
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/391436
Reviewed-by: Heather Miller <hcm@google.com>
2021-03-31 19:16:09 +00:00