skia2/include/private
Kevin Lubick ee62fad9a4 [bazel] Add "skia_internal" target that exposes private API for tests/tools.
Organization v3.5, if we are keeping track :)

This splits the "srcs" filegroup into "srcs" and "private_hdrs",
and renames "hdrs" to "public_hdrs".

To assist with the split, I created the macro split_srcs_and_hdrs.
Rather than keep two separate lists of header and source files,
I figured it would be easiest, at least for the common case,
to keep one list of files and then have a for loop split them
apart. I've tried to be consistent with having the list
of files be named with a _FILES suffix - maybe we can use this
as a marker to generate .gni files in the future?

Suggested review order:
 - //bazel/macros.bzl. Note this needs a corresponding
   G3 change (http://cl/452279799) as well. The exports_files_legacy
   change is the better approach to something I manually
   handled yesterday when fixing the G3 roll.
 - //BUILD.bazel to see the new target skia_internal and
   the previous skia_core renamed to skia_public.
 - //src/core/BUILD.bazel to see a typical usage of
   split_srcs_and_hdrs.
 - //include/... to see the change to public_hdrs and
   private_hdrs
 - //src/... to see many more usages of split_srcs_and_hdrs
 - //tools/... to see changes to skia_internal where
   appropriate.
 - Everything else. Note that //modules/... might also need
   to be built with skia_internal instead of skia_public,
   but we can fix that up later, if necessary.

Change-Id: Ie1cc969455d97b029b2d77faa222c4a9bad70671
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/545716
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2022-06-02 11:23:50 +00:00
..
chromium [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
gpu [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
BUILD.bazel [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
OWNERS Reland "Add OWNERS to include (and include/private) to enforce API review" 2021-09-27 18:20:19 +00:00
SingleOwner.h [graphite] Add basic stubs for ResourceCache. 2022-02-04 19:25:11 +00:00
SkBitmaskEnum.h Fix modifier key handling in OS X to allow command-keys to work. 2020-07-01 16:07:03 +00:00
SkChecksum.h Add std::string/string_view support to SkGoodHash. 2022-03-03 18:09:00 +00:00
SkColorData.h Convert color data to skvx::float4 from Sk4f 2022-05-19 19:45:23 +00:00
SkDeque.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SkEncodedInfo.h [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
SkFixed.h move SkTPin to include/private 2020-10-16 19:45:11 +00:00
SkFloatBits.h
SkFloatingPoint.h Remove old sk_float_rsqrt_portable code 2022-03-23 13:14:09 +00:00
SkHalf.h Convert color data to skvx::float4 from Sk4f 2022-05-19 19:45:23 +00:00
SkIDChangeListener.h Remove bug-prone SkIDChangeListener singleThreaded arg 2021-02-26 17:05:53 +00:00
SkImageInfoPriv.h Reland "Add kR8_unorm_SkColorType" 2022-02-10 18:00:19 +00:00
SkMacros.h Make SkScalerContext enums scoped. 2022-03-08 16:24:47 +00:00
SkMalloc.h [fuzz] Standardize, document, and backport fuzzing defines. 2020-09-14 13:36:10 +00:00
SkMutex.h Assert in ~SkMutex that the mutex is unowned. 2022-02-14 15:23:12 +00:00
SkNoncopyable.h
SkOnce.h
SkOpts_spi.h Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
SkPathRef.h Reland "[includes] Remove include link between SkPathRef.h and SkRRect.h" 2022-03-07 15:15:05 +00:00
SkSafe32.h
SkSafe_math.h
SkSemaphore.h
SkShadowFlags.h Add ShadowFlag to use only blurs for concave shapes. 2022-04-27 18:02:26 +00:00
SkSLDefines.h Add ExpressionArray::clone. 2022-01-24 14:25:46 +00:00
SkSLIRNode.h Switched SkSL positions from int to Position 2022-03-14 17:06:17 +00:00
SkSLLayout.h Remove no-op versions of skstd::to_string. 2022-02-03 22:33:41 +00:00
SkSLModifiers.h Switched SkSL positions from int to Position 2022-03-14 17:06:17 +00:00
SkSLProgramElement.h Switched SkSL positions from int to Position 2022-03-14 17:06:17 +00:00
SkSLProgramKind.h Rename SkCustomMesh to SkMesh 2022-05-09 13:36:21 +00:00
SkSLSampleUsage.h Use varyings to implement MatrixEffects applied to DeviceCoord FPs. 2021-08-02 19:39:13 +00:00
SkSLStatement.h Remove InlineMarker IR node. 2022-04-29 17:40:58 +00:00
SkSLString.h [includes] Enforce IWYU on sksl code 2022-03-21 12:43:02 +00:00
SkSLSymbol.h Switched SkSL positions from int to Position 2022-03-14 17:06:17 +00:00
SkSpinlock.h
SkStringView.h Remove skstd::string_view entirely. 2022-02-01 21:16:41 +00:00
SkTArray.h Disable the CFI sanitizer only when casting pointers. 2022-06-01 15:10:35 +00:00
SkTDArray.h Add explicit int -> size_t casts to SkTDArray.h 2020-12-28 17:23:49 +00:00
SkTemplates.h Remove static from template functions in headers. 2022-02-08 20:17:04 +00:00
SkTFitsIn.h
SkTHash.h Use SkTHashMap for the MetalCodeGenerator. 2022-03-04 19:01:18 +00:00
SkThreadAnnotations.h Update Google3 thread annotations. 2022-02-09 15:47:22 +00:00
SkThreadID.h Mark SkGetThreadID SK_SPI in debug. 2020-07-07 21:50:55 +00:00
SkTLogic.h Remove skstd::size and skstd::data. 2022-02-03 20:47:16 +00:00
SkTo.h
SkTPin.h switch SkTPin impl to pin NaN to lo 2020-10-16 21:08:51 +00:00
SkUniquePaintParamsID.h [graphite] Move ShaderCodeDictionary, SkPaintParamsKey, and UniquePaintParamsID to include/private 2022-01-13 14:22:11 +00:00
SkVx.h Update Sk4px to use skvx instead of SkNx 2022-05-23 17:41:53 +00:00
SkWeakRefCnt.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00