skia2/gn/samples.gni

92 lines
3.2 KiB
Plaintext
Raw Normal View History

# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Things are easiest for everyone if these source paths are absolute.
_samplecode = get_path_info("../samplecode", "abspath")
samples_sources = [
"$_samplecode/Sample.cpp",
"$_samplecode/Sample.h",
"$_samplecode/Sample2PtRadial.cpp",
"$_samplecode/Sample3D.cpp",
"$_samplecode/SampleAARectModes.cpp",
"$_samplecode/SampleAARects.cpp",
"$_samplecode/SampleAndroidShadows.cpp",
"$_samplecode/SampleAnimBlur.cpp",
"$_samplecode/SampleAnimatedImage.cpp",
"$_samplecode/SampleAnimatedText.cpp",
"$_samplecode/SampleArc.cpp",
"$_samplecode/SampleAtlas.cpp",
"$_samplecode/SampleAudio.cpp",
Revert "Move SkCamera.h to client_utils/android" This reverts commit 8a54d86c780a22796f8d535f74bf6af33a06c707. Reason for revert: Causing issues with Android CTS Original change's description: > Move SkCamera.h to client_utils/android > > Android still uses this > https://developer.android.com/reference/android/graphics/Camera > but no other client does. > > This adds a little adaption layer until Android is updated > to use the View3D version. > > Move SkCamera.h to View3D.h. Change names to android::skia::CLASS > instead of SkCLASS. (3DView is not a valid class name, so rename it to > View3D.) > > Forward-declare SkMatrix. Do not override SkNoncopyable - just delete > the copy constructor/operator=. Make fU and fV private in Patch3D. > > Make Sk3DView override View3D temporarily until Android can be switched > over to the new class. > > (View3D from http://review.skia.org/291371) > > I made Patch3D and Camera3D be private classes as they are > currently not used by Android and wanted to constrain the > exposed API as much as possible. > > Change-Id: Ibde45478421feeb610e045205c3f20c0e5b1567e > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532456 > Reviewed-by: Brian Osman <brianosman@google.com> > Reviewed-by: Leon Scroggins <scroggo@google.com> > Commit-Queue: Kevin Lubick <kjlubick@google.com> Change-Id: If6e768524a0e13e14ef886a6f081a09ddc0dc2fd Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533396 Owners-Override: Kevin Lubick <kjlubick@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-04-25 11:54:10 +00:00
"$_samplecode/SampleCamera.cpp",
"$_samplecode/SampleChart.cpp",
"$_samplecode/SampleChineseFling.cpp",
"$_samplecode/SampleCircle.cpp",
"$_samplecode/SampleClip.cpp",
"$_samplecode/SampleClock.cpp",
"$_samplecode/SampleComplexClip.cpp",
"$_samplecode/SampleCowboy.cpp",
"$_samplecode/SampleCusp.cpp",
"$_samplecode/SampleDegenerateTwoPtRadials.cpp",
"$_samplecode/SampleEffects.cpp",
"$_samplecode/SampleEmboss.cpp",
"$_samplecode/SampleFatBits.cpp",
"$_samplecode/SampleFillType.cpp",
Update image filter debug samples to use new APIs For clarity, this renames skif::Mapping::Make to skif::Mapping::DecomposeCTM to really emphasize when it should be used over just a constructor. Renames SampleBackdropBounds to SampleFilterBounds since the operations and coordinate spaces that it visualizes are the same for regular or backdrop filtering (we just swap the notion of src and dst devices, really). Technically, this is not quite true yet since regular filtering modifies the DAG with a matrix transform right now, but that's going away soon (tm). The "new" SampleFilterBounds example is updated to use the new bounds APIs that use the coord-space safe types in the skif namespace. It also visualizes a filter, and simplifies some of the bounds being drawn and reported to only those most interesting. The SampleImageFilterDAG has been updated to match the soon-to-be state of how SkCanvas processes regular image filters for a saveLayer. All implicit matrix-transform node code is removed. The bounds calculation code is similarly updated to use the new 'skif' types and functions. To simplify the visualization of each node, the 'isolated' versions of the bounds were dropped. Bug: skia:9282, skia:9283 Change-Id: If2ad2c302e5165ae009bba93cea52bf0566a543a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/326718 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Auto-Submit: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
2020-10-14 19:59:02 +00:00
"$_samplecode/SampleFilterBounds.cpp",
"$_samplecode/SampleFitCubicToCircle.cpp",
"$_samplecode/SampleFlutterAnimate.cpp",
"$_samplecode/SampleGlyphTransform.cpp",
"$_samplecode/SampleGradients.cpp",
"$_samplecode/SampleHairCurves.cpp",
"$_samplecode/SampleHairModes.cpp",
"$_samplecode/SampleImageFilterDAG.cpp",
"$_samplecode/SampleLCD.cpp",
"$_samplecode/SampleLayers.cpp",
"$_samplecode/SampleManyRects.cpp",
"$_samplecode/SampleMaterialShadows.cpp",
"$_samplecode/SampleMegaStroke.cpp",
"$_samplecode/SampleMixer.cpp",
"$_samplecode/SamplePatch.cpp",
"$_samplecode/SamplePath.cpp",
"$_samplecode/SamplePathClip.cpp",
"$_samplecode/SamplePathEffects.cpp",
"$_samplecode/SamplePathOverstroke.cpp",
"$_samplecode/SamplePathText.cpp",
"$_samplecode/SamplePolyToPoly.cpp",
"$_samplecode/SampleQuadStroker.cpp",
"$_samplecode/SampleRectanizer.cpp",
"$_samplecode/SampleRepeatTile.cpp",
"$_samplecode/SampleSBIX.cpp",
"$_samplecode/SampleSG.cpp",
"$_samplecode/SampleSVGFile.cpp",
"$_samplecode/SampleShadowColor.cpp",
"$_samplecode/SampleShadowReference.cpp",
"$_samplecode/SampleShadowUtils.cpp",
"$_samplecode/SampleShip.cpp",
"$_samplecode/SampleSimpleStroker.cpp",
"$_samplecode/SampleSlides.cpp",
"$_samplecode/SampleStringArt.cpp",
"$_samplecode/SampleStrokePath.cpp",
"$_samplecode/SampleStrokeRect.cpp",
"$_samplecode/SampleStrokeVerb.cpp",
"$_samplecode/SampleTextBox.cpp",
"$_samplecode/SampleTextureUpload.cpp",
"$_samplecode/SampleThinAA.cpp",
"$_samplecode/SampleTiming.cpp",
"$_samplecode/SampleVariableWidthStroker.cpp",
"$_samplecode/SampleVertices.cpp",
"$_samplecode/SampleWritePixels.cpp",
"$_samplecode/SampleXfer.cpp",
"$_samplecode/SampleXfermodesBlur.cpp",
"$_samplecode/vertexdump.cpp",
]
skgpu_v1_samples_sources = [
"$_samplecode/SampleDegenerateQuads.cpp",
"$_samplecode/SamplePathTessellators.cpp",
]
samples_sources += skgpu_v1_samples_sources