skia2/gn/utils.gni

117 lines
3.7 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.
_src = get_path_info("../src", "abspath")
_include = get_path_info("../include", "abspath")
skia_utils_public = [
"$_include/utils/SkAnimCodecPlayer.h",
"$_include/utils/SkBase64.h",
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
"$_include/utils/SkCamera.h",
"$_include/utils/SkCanvasStateUtils.h",
"$_include/utils/SkCustomTypeface.h",
"$_include/utils/SkEventTracer.h",
"$_include/utils/SkNWayCanvas.h",
"$_include/utils/SkNoDrawCanvas.h",
"$_include/utils/SkNullCanvas.h",
"$_include/utils/SkOrderedFontMgr.h",
"$_include/utils/SkPaintFilterCanvas.h",
"$_include/utils/SkParse.h",
"$_include/utils/SkParsePath.h",
"$_include/utils/SkRandom.h",
"$_include/utils/SkShadowUtils.h",
#mac
"$_include/utils/mac/SkCGUtils.h",
]
skia_utils_sources = [
"$_src/utils/SkAnimCodecPlayer.cpp",
"$_src/utils/SkBase64.cpp",
"$_src/utils/SkBitSet.h",
Reland "Reland "Adding a trace to nanobench for RP/VM comparison"" This reverts commit 0e48516aae7e63dc50f16e9fb0080039f4f06d88. Reason for revert: Again trying to land this CL Original change's description: > Revert "Reland "Adding a trace to nanobench for RP/VM comparison"" > > This reverts commit 94b8dd67108d105f13d0fcd60e8c427e92355a64. > > Reason for revert: https://ci.chromium.org/p/chromium/builders/try/android-marshmallow-x86-rel appears to either not support this instruction or it is disabled. > > Original change's description: > > Reland "Adding a trace to nanobench for RP/VM comparison" > > > > This reverts commit 39728eb9804cced26933f38d6bcf5652dd8d24bc. > > > > Reason for revert: Need to reland after I figure out what happened > > > > Original change's description: > > > Revert "Adding a trace to nanobench for RP/VM comparison" > > > > > > This reverts commit e855b1273fee6a2b3505ea27aec56e8fc82749e3. > > > > > > Reason for revert: breaking the tree > > > > > > Original change's description: > > > > Adding a trace to nanobench for RP/VM comparison > > > > > > > > Run nanobench with --compare key and collect data for comparison: > > > > ./out/Release/nanobench --csv --config 8888 --skvm --compare --loops 100 --samples 1 --match $(ls skps | grep --invert-match svg ) 2>&1 | tee VM.data > > > > ./out/Release/nanobench --csv --config 8888 --forceRasterPipeline --compare --loops 100 --samples 1 --match $(ls skps | grep --invert-match svg ) 2>&1 | tee RP.data > > > > awk 'BEGIN {OFS=","; fileNum = 0} ($2 ~ /MB/) && fileNum == 0 {vmvmcycles[$3] = $6; vmvmscan[$3] = $8; vmvmpixels[$3] = $10; vmvminterp[$3] = $11; vmrpcycle[$3] = $14; vmrpscan[$3] = $16; vmrppixels[$3] = $18} ($2 ~ /MB/) && fileNum == 1 {print $3, vmvmcycles[$3], vmvmscan[$3], vmvmpixels[$3], vmvminterp[$3], $6, $8, $10, $11, $14, $16, $18} ENDFILE {fileNum += 1}' VM.data RP.data > compare.csv > > > > > > > > You can see an example of comparison table here: > > > > https://docs.google.com/spreadsheets/d/1Q57oz6Jn8JPQkPzUbtO0fcZh2VhwPhxwsLaHnSb9uR0/edit#gid=406063636 > > > > > > > > Change-Id: I8fa35e3fb087bce00ab19355a3bc021334aa7a80 > > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/501337 > > > > Reviewed-by: Herb Derby <herb@google.com> > > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > > > Change-Id: I6799b90ffd8bc05c65d1185bfc07a06af05e2038 > > > No-Presubmit: true > > > No-Tree-Checks: true > > > No-Try: true > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/507182 > > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > Change-Id: I3668b5a40f310598e23c922b1eb6f93db4dac13c > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/507183 > > Reviewed-by: Herb Derby <herb@google.com> > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > Change-Id: I5d0174fca1aeaa0f3e75a8e1f643265701068f42 > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/508396 > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > Commit-Queue: Ben Wagner <bungeman@google.com> Change-Id: Ibf7c8957427dc8a1cdc133774608b48ab6715c7f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/508536 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Julia Lavrova <jlavrova@google.com>
2022-02-14 14:20:50 +00:00
"$_src/utils/SkBlitterTrace.h",
"$_src/utils/SkBlitterTraceCommon.h",
"$_src/utils/SkCallableTraits.h",
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
"$_src/utils/SkCamera.cpp",
"$_src/utils/SkCanvasStack.cpp",
"$_src/utils/SkCanvasStack.h",
"$_src/utils/SkCanvasStateUtils.cpp",
"$_src/utils/SkCharToGlyphCache.cpp",
"$_src/utils/SkCharToGlyphCache.h",
"$_src/utils/SkClipStackUtils.cpp",
"$_src/utils/SkClipStackUtils.h",
"$_src/utils/SkCustomTypeface.cpp",
Reland "Reland "Adding a trace to nanobench for RP/VM comparison"" This reverts commit 0e48516aae7e63dc50f16e9fb0080039f4f06d88. Reason for revert: Again trying to land this CL Original change's description: > Revert "Reland "Adding a trace to nanobench for RP/VM comparison"" > > This reverts commit 94b8dd67108d105f13d0fcd60e8c427e92355a64. > > Reason for revert: https://ci.chromium.org/p/chromium/builders/try/android-marshmallow-x86-rel appears to either not support this instruction or it is disabled. > > Original change's description: > > Reland "Adding a trace to nanobench for RP/VM comparison" > > > > This reverts commit 39728eb9804cced26933f38d6bcf5652dd8d24bc. > > > > Reason for revert: Need to reland after I figure out what happened > > > > Original change's description: > > > Revert "Adding a trace to nanobench for RP/VM comparison" > > > > > > This reverts commit e855b1273fee6a2b3505ea27aec56e8fc82749e3. > > > > > > Reason for revert: breaking the tree > > > > > > Original change's description: > > > > Adding a trace to nanobench for RP/VM comparison > > > > > > > > Run nanobench with --compare key and collect data for comparison: > > > > ./out/Release/nanobench --csv --config 8888 --skvm --compare --loops 100 --samples 1 --match $(ls skps | grep --invert-match svg ) 2>&1 | tee VM.data > > > > ./out/Release/nanobench --csv --config 8888 --forceRasterPipeline --compare --loops 100 --samples 1 --match $(ls skps | grep --invert-match svg ) 2>&1 | tee RP.data > > > > awk 'BEGIN {OFS=","; fileNum = 0} ($2 ~ /MB/) && fileNum == 0 {vmvmcycles[$3] = $6; vmvmscan[$3] = $8; vmvmpixels[$3] = $10; vmvminterp[$3] = $11; vmrpcycle[$3] = $14; vmrpscan[$3] = $16; vmrppixels[$3] = $18} ($2 ~ /MB/) && fileNum == 1 {print $3, vmvmcycles[$3], vmvmscan[$3], vmvmpixels[$3], vmvminterp[$3], $6, $8, $10, $11, $14, $16, $18} ENDFILE {fileNum += 1}' VM.data RP.data > compare.csv > > > > > > > > You can see an example of comparison table here: > > > > https://docs.google.com/spreadsheets/d/1Q57oz6Jn8JPQkPzUbtO0fcZh2VhwPhxwsLaHnSb9uR0/edit#gid=406063636 > > > > > > > > Change-Id: I8fa35e3fb087bce00ab19355a3bc021334aa7a80 > > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/501337 > > > > Reviewed-by: Herb Derby <herb@google.com> > > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > > > Change-Id: I6799b90ffd8bc05c65d1185bfc07a06af05e2038 > > > No-Presubmit: true > > > No-Tree-Checks: true > > > No-Try: true > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/507182 > > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > > > Change-Id: I3668b5a40f310598e23c922b1eb6f93db4dac13c > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/507183 > > Reviewed-by: Herb Derby <herb@google.com> > > Commit-Queue: Julia Lavrova <jlavrova@google.com> > > Change-Id: I5d0174fca1aeaa0f3e75a8e1f643265701068f42 > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/508396 > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > Commit-Queue: Ben Wagner <bungeman@google.com> Change-Id: Ibf7c8957427dc8a1cdc133774608b48ab6715c7f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/508536 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Julia Lavrova <jlavrova@google.com>
2022-02-14 14:20:50 +00:00
"$_src/utils/SkCycles.h",
"$_src/utils/SkDashPath.cpp",
"$_src/utils/SkDashPathPriv.h",
"$_src/utils/SkEventTracer.cpp",
"$_src/utils/SkFloatToDecimal.cpp",
"$_src/utils/SkFloatToDecimal.h",
"$_src/utils/SkFloatUtils.h",
"$_src/utils/SkJSON.cpp",
"$_src/utils/SkJSON.h",
"$_src/utils/SkJSONWriter.cpp",
"$_src/utils/SkJSONWriter.h",
"$_src/utils/SkMatrix22.cpp",
"$_src/utils/SkMatrix22.h",
"$_src/utils/SkMultiPictureDocument.cpp",
"$_src/utils/SkNWayCanvas.cpp",
"$_src/utils/SkNullCanvas.cpp",
"$_src/utils/SkOSPath.cpp",
"$_src/utils/SkOSPath.h",
"$_src/utils/SkOrderedFontMgr.cpp",
"$_src/utils/SkPaintFilterCanvas.cpp",
"$_src/utils/SkParse.cpp",
"$_src/utils/SkParseColor.cpp",
"$_src/utils/SkParsePath.cpp",
"$_src/utils/SkPatchUtils.cpp",
"$_src/utils/SkPatchUtils.h",
"$_src/utils/SkPolyUtils.cpp",
"$_src/utils/SkPolyUtils.h",
"$_src/utils/SkShaderUtils.cpp",
"$_src/utils/SkShaderUtils.h",
"$_src/utils/SkShadowTessellator.cpp",
"$_src/utils/SkShadowTessellator.h",
"$_src/utils/SkShadowUtils.cpp",
"$_src/utils/SkShaperJSONWriter.cpp",
"$_src/utils/SkShaperJSONWriter.h",
"$_src/utils/SkTestCanvas.h",
"$_src/utils/SkTextUtils.cpp",
"$_src/utils/SkThreadUtils_pthread.cpp",
"$_src/utils/SkThreadUtils_win.cpp",
"$_src/utils/SkUTF.cpp",
"$_src/utils/SkUTF.h",
"$_src/utils/SkVMVisualizer.cpp",
"$_src/utils/SkVMVisualizer.h",
#mac
"$_src/utils/mac/SkCGBase.h",
"$_src/utils/mac/SkCGGeometry.h",
"$_src/utils/mac/SkCTFont.cpp",
"$_src/utils/mac/SkCTFont.h",
"$_src/utils/mac/SkCreateCGImageRef.cpp",
"$_src/utils/mac/SkUniqueCFRef.h",
#windows
"$_src/utils/win/SkAutoCoInitialize.cpp",
"$_src/utils/win/SkAutoCoInitialize.h",
"$_src/utils/win/SkDWrite.cpp",
"$_src/utils/win/SkDWrite.h",
"$_src/utils/win/SkDWriteFontFileStream.cpp",
"$_src/utils/win/SkDWriteFontFileStream.h",
"$_src/utils/win/SkDWriteGeometrySink.cpp",
"$_src/utils/win/SkDWriteGeometrySink.h",
"$_src/utils/win/SkDWriteNTDDI_VERSION.h",
"$_src/utils/win/SkHRESULT.cpp",
"$_src/utils/win/SkHRESULT.h",
"$_src/utils/win/SkIStream.cpp",
"$_src/utils/win/SkIStream.h",
"$_src/utils/win/SkObjBase.h",
"$_src/utils/win/SkTScopedComPtr.h",
"$_src/utils/win/SkWGL.h",
"$_src/utils/win/SkWGL_win.cpp",
]