Debian Codegraph @

RELEASE_NOTES.md

raw
1 Skia Graphics Release Notes
2
3 This file includes a list of high level updates for each milestone release.
4
5 Milestone 146
6 -------------
7 * `skgpu::graphite::ContextOptions.fClientWillExternallySynchronizeAllThreads` has been removed in
8 preparation for removing the legacy Vulkan Memory Allocator behavior.
9 * `GrContextOptions.fVulkanVMALargeHeapBlockSize` and `skgpu::graphite::ContextOptions.fVulkanVMALargeHeapBlockSize` have been removed in preparation for removing the legacy Vulkan Memory Allocator behavior.
10 * As an undocumented feature, `SK_FONT_FILE_PREFIX` could be defined to override how the Android fontmgr searched for system fonts. This has been removed as it was untested and believed to be unused.
11 * `SkSurfaces::WrapBackendTexture` no longer requires providing an `SkColorType`. A closest
12 compatible SkColorType will be chosen, so long as the backend texture's format is supported as
13 renderable.
14 * Graphite's InsertStatus now has an additional kOutOfOrderRecording to differentiate this
15 unrecoverable error from programming errors that would lead to kInvalidRecording. Out of order
16 recordings can currently arise "naturally" if prior dependent recordings failed due to resource
17 creation or update errors from the GPU driver.
18 * Add SkColorSpacePrimaries::operator==.
19 * SkDeserialProcs::fTypefaceProc has been replaced with SkDeserialProcs::fTypefaceStreamProc.
20 * The header `include/effects/SkGradientShader.h` and the functions that it declared have been removed.
21 The factory functions in `include/effects/SkGradient.h` should now be used to create gradient shaders.
22 * More public path utilities now take SkPathBuilder instead of SkPath. This allows the caller to avoid a potential extra copy of path data when calling these functions. This affects SkContourMeasure::getSegment, SkPathEffect::filterPath, SkPathMeasure::getSegment, and skpathutils::FillPathWithPaint.
23 * Add VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION (and VK_EXT_QUEUE_FAMILY_FOREIGN
24 which it depends on) to VulkanPreferredFeatures when building for Android.
25
26 * * *
27
28 Milestone 145
29 -------------
30 * Add `skhdr::Agtm` interface.
31
32 Provide an interface to to create SMPTE ST 2094-50 (also known as Adaptive
33 Global Tone Mapping) metadata. This interface includes parsing, serialization,
34 and tone mapping (via an SkColorFilter).
35
36 Add interface to set and get serialized AGTM metadata to `skhdr::Metadata`.
37 * Backend specific texture infos, e.g. `DawnTextureInfo`,
38 `VulkanTextureInfo`, and `MtlTextureInfo`'s `fSampleCount` field, and the
39 `ContextOptions::fInternalMultisampleCount` field are now `SampleCount`. A helper
40 function, `ToSampleCount(uint32_t) -> SampleCount` is provided if needing to convert a variable value vs. just updating a constant.
41 * `SkCodec::Options` now contains `fMaxDecodeMemory`. If Skia detects or estimates it would use more
42 than that amount of memory (in aggregate) for decoding the image, it will return nullptr instead
43 of attempting to decode it. Failures in this way will result in returning the new
44 `SkCodec::Result::kOutOfMemory`.
45 * Add the function `SkData::Equals`.
46
47 This function can compare two `SkData`s, even when both are nullptr.
48
49 * * *
50
51 Milestone 144
52 -------------
53 * `SkSerialProcs` now are expected to return a pointer-to-const data. This was implied before, but
54 is now made explicit.
55 * `SkImage::refEncodedData()` and `SkImageGenerator::refEncodedData()` now returns a pointer to
56 const SkData to more explicitly signal that this is a read-only view into the data.
57 * Define a new public enum, `SampleCount`, that enforces the valid sample count values that Graphite
58 supports (1, 2, 4, 8, 16). `TextureInfo::numSamples() -> uint8_t` is replaced with
59 `TextureInfo::sampleCount() -> SampleCount`.
60
61 Backend specific texture infos, e.g. `DawnTextureInfo`,
62 `VulkanTextureInfo`, and `MtlTextureInfo` still represent sample count as a `uint8_t` for
63 convience with the backend APIs. This `uint8_t` value is validated when wrapping the backend info
64 into a `TextureInfo`; if it's not a `SampleCount` value, then an empty `TextureInfo` is returned.
65 * The existing ContextOptions `PipelineCallback` has been deprecated in favor of the new `PipelineCachingCallback`.
66
67 The new callback provides extra information to the user allowing determination of how often a Pipeline is used and if any Precompiled Pipelines were unused. This information can be used to create a more effective set of Precompile PaintOptions.
68 * New `SkSVGCanvas::Make` overload allows explicitly specifying which PNG encoder
69 should be used. This enables avoiding a hardcoded, transitive dependency on
70 either `libpng` or Rust PNG.
71 * `kR16_unorm_SkColorType` added to `SkColorType`.
72 * `include/docs/SkXPSLibpngHelpers.h` and `include/docs/SkXPSRustPngHelpers.h`
73 have been removed - please use a small lambda instead (e.g. see
74 https://crrev.com/c/7090470).
75
76 * * *
77
78 Milestone 143
79 -------------
80 * Added `detachAsVector` method to `SkDynamicMemoryStream`.
81 * Added new public APIs to `SkPngRustEncoder` for
82 encoding an `SkImage` or `SkPixmap` into `SkData`.
83 * A new persistent pipeline storage feature has been added to Graphite. For now, it is only relevant to Graphite's native Vulkan backend. The API consists of:
84
85 1) A new PersistentPipelineStorage abstract base class which can be implemented to persist Pipeline data across Context lifetimes.
86
87 2) A matching ContextOptions::fPersistentPipelineStorage member variable which can be used to pass the PersistentPipelineStorage-derived object to Graphite.
88
89 3) A Context::syncPipelineData method that, when possible, passes the current Pipeline data to the ContextOptions::fPersistentPipelineStorage object.
90 * `SkMemoryStream` now takes in a `const SkData`, as it's a read-only view into that data.
91 `SkMemory::getData()` now returns a `const sk_sp<SkData>`.
92 * SkPath is migrating to become immutable (its geometry).
93
94 In this new version, SkPath will lose all of its methds like moveTo(), lineTo(), etc. and rely on SkPathBuilder for creating paths. Additionally, there are now additional Factories for creating paths in one-call, so often a pathbuilder object may not be needed.
95
96 static SkPath Raw(...);
97 static SkPath Rect(...);
98 static SkPath Oval(...);
99 static SkPath Circle(...);
100 static SkPath RRect(...);
101 static SkPath Polygon(...);
102 static SkPath Line(...);
103
104 Clients that create or edit paths need to switch over to using these factories and/or SkPathBuilder.
105
106 The flag that triggers this is SK_HIDE_PATH_EDIT_METHODS. This means that for now Skia can be built in either way -- but in a subsequent release, this flag will be removed, and SkPath will permanently be in its immutable form.
107 * The `SkPathBuilder::rArcTo` (relative arc to) method has been updated to align with
108 the absolute version (`SkPathBuilder::arcTo`).
109 * `SkPixmap::addrN` and `SkImageInfo::computeOffset` will now assert for negative values of x and y in debug mode.
110 * New `SkXPS::MakeDocument` overload allows explicitly specifying which
111 PNG encoder should be used. This enables avoiding a hardcoded, transitive
112 dependency on either `libpng` or Rust PNG. To ease the transition, two
113 new helper functions have been added to the `SkXPS` namespace:
114 `EncodePngUsingLibpng` and `EncodePngUsingRust`.
115
116 * * *
117
118 Milestone 142
119 -------------
120 * Add enum class `skgpu::graphite::MarkFrameBoundary` to be used to specify whether a submission is the last logical submission for a frame.
121
122 Add struct `skgpu::graphite::SubmitInfo` to hold metadata used for submitting workloads for execution. Allow specifying through `skgpu::graphite::SubmitInfo` whether submission is a frame boundary (last logical submission for a frame) and frameID (uint64_t) with default values to match prior behavior.
123
124 Use struct `skgpu::graphite::SubmitInfo` in `skgpu::graphite::QueueManager::submitToGpu`, `skgpu::graphite::QueueManager::onSubmitToGpu` and all derived classes.
125 * Change `SkNamedTransferFn::kRec709` to match the pure gamma 2.4 definition from
126 ITU-R BT.1886.
127
128 Apply this to transfer characteristics values 1, 6, 11, 14, and 16, since they
129 use the same definition.
130
131 Add reference text to the comments to clarify that this comes from the EOTF
132 definition, and that the ITU-T H.273 table 3 function definitions are not
133 necessarily inverse EOTFs, but are sometimes OETFs (as is the case for
134 `kRec709`).
135 * `SkPngRustDecoder` and `SkPngRustEncoder` APIs are now part of the official,
136 non-experimental public API surface of Skia.
137 * Remove the members `fICCProfile` and `fICCProfileDescription` from
138 `SkPngEncoder::Options`, `SkJpegEncoder::Options`, and
139 `SkWebpEncoder::Options`.
140 * Add HDR metadata support to `SkPngDecoder`, `SkPngRustDecoder`, and
141 `SkPngEncoder`.
142 * Add the `skhdr::Metadata` structure that contains all HDR metadata that can be
143 attached to an image.
144
145 Add `skhdr::ContentLightLevelInfo` and `skhdr::MasteringDisplayColorVolume`
146 structures.
147
148 * * *
149
150 Milestone 141
151 -------------
152 * `GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat` is replaced by
153 `AHardwareBufferUtils::GetSkColorTypeFromBufferFormat`, which is shared between Graphite and Ganesh.
154 * Graphite's `ContextOptions` struct now has an `fExecutor` member. This allows clients to give Graphite threads on which it can perform work. Initially, this facility will be used to compile Pipelines in parallel.
155 * Change `SkNamedTransferFn::kHLG` and `SkNamedTransferFn::kPQ` to use the
156 new skcms representations.
157
158 This will have the side-effect of changing `SkColorSpace::MakeCICP` to
159 use the new representations.
160 * ##`SkPath::asArc() removed`
161
162 This method reported true if the path was internally recognized as an "Arc" segment.
163 This functionality is now removed, so the method has also been removed.
164 * `SkShader::makeWithWorkingColorSpace()` now accepts an optional output
165 colorspace parameter. If it is null (the default), it's assumed to be the same
166 as the input or working colorspace parameter. This allows shaders to actively
167 participate in colorspace conversion and inform Skia about the space changes
168 that they apply.
169
170 * * *
171
172 Milestone 140
173 -------------
174 * `Context::insertRecording` now returns an object that behaves like an enum or a true/false bool
175 to assist migrating from the old bool return type to something that provides more details as
176 to why the Recording couldn't be played back.
177
178 This shouldn't break any existing usage of `insertRecording` but migrating to check against
179 `InsertStatus::kSuccess` is recommended to avoid future breaking changes.
180 * `SkImage::isValid(GrRecordingContext*)` has been deprecated in favor of the `SkRecorder*` version.
181 To migrate do something like `image->isValid(ctx->asRecorder())`.
182
183 `SkImage::makeSubset(GrDirectContext*, ...)` has been deprecated in favor of the `SkRecorder*`
184 version. To migrate, do something like `image->makeSubset(ctx->asRecorder, ..., {})`
185
186 `SkImage::makeColorSpace(GrDirectContext*, ...)` has been deprecated in favor of the `SkRecorder*`
187 version. To migrate, do something like `image->makeColorSpace(ctx->asRecorder, ..., {})`
188
189 `SkImage::makeColorTypeAndColorSpace(GrDirectContext*, ...)` has been deprecated in favor of the
190 `SkRecorder*` version. To migrate, do something like
191 `image->makeColorTypeAndColorSpace(ctx->asRecorder, ..., {})`
192
193 In the case you are working with CPU-backed images, `skcpu::Recorder::TODO()` should work until
194 a `skcpu::Context` and `skcpu::Recorder` can be used properly.
195 * `skia_ports_fontmgr_android_sources` has been split with the new `skia_ports_fontmgr_android_parser_sources` containing the parser sources.
196 `skia_ports_fontmgr_android_ndk_sources` now depends on `skia_ports_fontmgr_android_parser_sources`.
197 * Virtuals in `SkTypeface` subclasses (5 of them) now take SkSpan instead of ptr/count. This
198 is part of the larger change where public APIs are being converted to take SkSpan where
199 applicable.
200
201 No real functionality change, but this new signature allows some of the methods to perform
202 range-checking, whereas before they could not.
203
204 * * *
205
206 Milestone 139
207 -------------
208 * A new `kAnalyticClip` value has been added to the `DrawTypeFlags` enum.
209 This allows Precompilation clients to have an analytic clip added to
210 the Pipeline generated from the PaintOptions.
211 * SK_DNG_VERSION has been added to SkUserConfig.h to indicate the dng_sdk version
212 being compiled against. SkRawCodec has been updated to support both DNG SDK versions
213 1.4 and 1.7.1
214 * `SkFontMgr_New_FontConfig` with 1 parameter has been deprecated and will be removed in a future
215 release. Clients will need to call the other version providing an SkFontScanner (e.g.
216 `SkFontScanner_Make_FreeType()`)
217 * The Vulkan implementation of Ganesh now requires Vulkan 1.1 as the minimum Vulkan version.
218 * Support for iOS12 is removed.
219 * Support for macOS 10.15 is removed.
220 * New public API: `VulkanPreferredFeatures` to automatically query and add Vulkan extensions and features that Skia would benefit from having available. Clients that use this API to allow Skia to enable its preferred extensions and features are then automatically opted in to future Skia support for leveraging more of these and do not need to manually turn on newly-supported features. This class is found in `VulkanBackendContext.h`.
221
222 * * *
223
224 Milestone 138
225 -------------
226 * The Precompile API has been extended to support Vulkan YCbCr Images.
227 To use the new API one should use the PrecompileShaders::VulkanYCbCrImage factory function.
228 An example usage can be found in PrecompileTestUtils.cpp.
229
230 * * *
231
232 Milestone 137
233 -------------
234 * `RecorderOptions.fRequireOrderedRecordings` can now be used to specify a per-`Recorder` ordering
235 policy for how its `Recordings` must be inserted into a `Context`. If not provided, the `Recorder`
236 will default to the value in `ContextOptions`.
237
238 * * *
239
240 Milestone 136
241 -------------
242 * The Fontations SkTypeface backend has a new factory method to create a typeface from `SkData`,
243 not only from `SkStreamAsset`. The new signature is
244 `sk_sp<SkTypeface> SkTypeface_Make_Fontations(sk_sp<SkData> fontData, const SkFontArguments& args)`.
245 * `SkColorPriv.h` has been removed from the public API
246
247 * * *
248
249 Milestone 135
250 -------------
251 * The `SkCodec` class has a new `isAnimated` method which helps to disambiguate
252 the meaning of `codec->getRepetitionCount()` returning `0`.
253 * The `PrecompileContext` now has a `getPipelineLabel` method that will return a human-readable version of a serialized Pipeline key. Relatedly, `SkRuntimeEffect::Options` now has an `fName` member variable
254 which allows clients to provide names for their created runtime effects. The latter API addition is particularly appropriate for user-defined known runtime effects.
255 * Graphite's backend specific headers are being renamed to be more consistent between backends:
256 * DawnTypes.h -> DawnGraphiteTypes.h
257 * DawnUtils.h's content moved to DawnBackendContext.h
258 * MtlGraphiteTypesUtils.h -> DwnGraphiteTypes_cpp.h (the non-Obj-C portion of
259 MtlGraphiteTypes.h).
260 * MtlGraphiteUtils.h's content moved to MtlBackendContext.h
261 * VulkanGraphiteUtils.h -> VulkanGraphiteContext.h (there is a shared
262 VulkanBackendContext.h header for both Ganesh and Graphite already).
263
264 The deprecated headers now just forward to the new header names and will be removed in a future
265 release.
266 * `SkPDF::MakeDocument(SkWStream*)` [one argument] has been deprecated and will be removed. This is because SkPDFMetdata has added 2 required fields `jpegDecoder` and `jpegEncoder`. In order to make a reasonable PDF, those must be supplied (using the two argument factory). To make these easier to supply `include/docs/SkPDFJpegHelpers.h` has been added, which will use Skia's built-in jpeg encoder and decoder.
267 * The `PrecompileContext` now allows clients to precompile previously serialized Pipelines via the `PrecompileContext::precompile` entry point. Serialized keys can be obtained by implementing a `ContextOptions::PipelineCallback` handler.
268 * `ContextOptions` now contains an `fUserDefinedKnownRuntimeEffects` member variable.
269 Clients can add `SkRuntimeEffects` to this `SkSpan` and have them be registered as *known*
270 runtime effects. Such runtime effects can then be represented in the serialized Pipeline keys.
271
272 * * *
273
274 Milestone 134
275 -------------
276 * `SkShaders::Color(SkColor4f, sk_sp<SkColorSpace>)` now always applies the color
277 space to the color, even if rendering to a legacy `SkSurface` that is not
278 color managed. In this case, the target color space is assumed to be sRGB.
279 * The A98 RGB, ProPhoto RGB, Display P3 and Rec2020 color spaces can now be used
280 for gradient interpolation.
281 * The `PrecompileContext` now allows client timed-based purging of Pipelines via
282 the new `PrecompileContext::purgePipelinesNotUsedInMs` call.
283
284 * * *
285
286 Milestone 133
287 -------------
288 * Graphite's `Context` now provides an interface to report the GPU time spent processing a recording. The client provides
289 a different finished proc of type `skgpu::graphite::GpuFinishedWithStatsProc` using
290 `skgpu::graphite::InsertRecordingInfo::fFinishedWithStatsProc` and sets the flag
291 `skgpu::graphite::InsertRecordingInfo::fGpuStatsFlag` to `skgpu::GpuStatsFlags::kElapsedTime`. The new callback takes a
292 new struct, `skgpu::GpuStats`, which has an `elapsedTime` field that will indicate the amount of GPU time used by the
293 recording. This is implemented for the Dawn backend only. In WASM on WebGPU the reported time excludes any GPU transfers
294 that occur before the first render/compute pass or after the last pass because of limitations in the WebGPU timestamp
295 query API.
296
297 `GrDirectContext` provides a similar interface to report the GPU time spent in a flush. The client uses a new callback
298 type, `GrGpuFinishedWithStatsProc` and sets the same flag on `GrFlushInfo`. This is implemented for GL
299 (including GLES and WebGL).
300 * Graphite's logging priority can now be adjusted by defining
301 `SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY` in `SkUserConfig.h` to a value specified by the
302 `skgpu::graphite::LogPriority` enum.
303
304 For example:
305 ```
306 #define SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY skgpu::graphite::LogPriority::kWarning
307 ```
308
309 Would cause Graphite to log warnings, non-fatal errors, and fatal errors. However, debug logs would
310 be omitted.
311
312 `SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY` will default to `kWarning` in debug builds, and `kError`
313 in release builds.
314 * Split MtlGraphiteTypes.h into two files. MtlGraphiteTypes.h defines MtlTextureInfo, which is only available in Objective-C++. MtlGraphiteTypesUtils.h declares the utility functions that are callable from C++.
315 * `SK_CANVAS_SAVE_RESTORE_PREALLOC_COUNT` has been added to SkUserConfig.h and SkCanvas.h to let clients control
316 how much space is allocated for calls to `SkCanvas::save()`. Clients that don't make many calls can reduce the RAM used by `SkCanvas` by setting this (defaults to about 3kb).
317 * New public API: `SkColorSpace::MakeCICP` to create an `SkColorSpace` from code
318 points specified in Rec. ITU-T H.273.
319 * The ability to dump a SkSL::DebugTrace to JSON has been removed from the public API.
320 * `approximateFilteredBounds` has been removed from SkMaskFilter.
321 * A new PrecompileContext object has been added to assist Precompilation. The old API of the form:\
322 bool Precompile(Context*, ...);\
323 has been deprecated and replaced with the API:\
324 bool Precompile(PrecompileContext*, ...)\
325 The new PrecompileContext object can be obtained via the Context::makePrecompileContext call.
326
327 As an example of a possible Compilation/Precompilation threading model, one could employ 4 threads:
328
329 2 for creating Recordings (\<r1\> and \<r2\>) \
330 1 for precompiling (\<p1\>) \
331 and the main thread - which owns the Context and submits Recordings.
332
333 Start up for this scenario would look like:
334
335 the main thread moves a PrecompileContext to <p1> and begins precompiling there\
336 the main thread creates two Recorders and moves them to <r1> and <r2> to create Recordings\
337 the main thread continues on - calling Context::insertRecording on the posted Recordings.
338
339 The PrecompileContext can safely outlive the Context that created it, but it will
340 effectively be shut down at that point.
341 * Graphite has a new `ContextOptions::fRequiredOrderedRecordings` flag that enables certain optimizations when the
342 client knows that recordings are played back in order. Otherwise Graphite will need to clear some caches at the
343 start of each recording to ensure proper playback, which can significantly affect performance.
344
345 This replaces the old `ContextOptions::fDisableCachedGlyphUploads` flag.
346
347 * * *
348
349 Milestone 132
350 -------------
351 * A new `SkCodec` method has been added: `hasHighBitDepthEncodedData`.
352 * `GrGLInterface` completeness requirements are modified to support using timer queries when available in the GL context.
353 The interface must have relevant functions initialized on OpenGL 3.3 or with GL_EXT_timer_query or GL_ARB_timerquery, on OpenGL ES with
354 GL_EXT_disjoint_timer_query, and on WebGL with GL_EXT_disjoint_timer_query or GL_EXT_disjoint_timer_query_webgl2.
355 * `GrGLInterface` now expects functions that take two `GLuints` instead of one `GLuint64` for `glWaitSync` and `glClientWaitSync`
356 when building with Emscripten. `GrGLMakeAssembledWebGLInterface` binds directly to the `emscipten_gl*` functions declared in the `<webgl/*>` headers rather than the functions declared
357 in `GLES3/gl32.h` and `GLES3/gl2ext.h`.
358 * `SkPathEffect::DashType`, `SkPathEffect::DashInfo` and `SkPathEffect::asADash` have been removed from the public API.
359
360 * * *
361
362 Milestone 131
363 -------------
364 * `SkCanvas::SaveLayerRec` can optionally specify a tilemode to apply to backdrop
365 content when the new layer's effects would sample outside of the previous
366 layer's image.
367 * GrContextOptions::fSharpenMipmappedTextures has been restored. It is now enabled
368 by default but allows clients to disable this feature if desired.
369
370 * * *
371
372 Milestone 130
373 -------------
374 * Add version of `SkAndroidCodec::getGainmapAndroidCodec` which returns an `SkAndroidCodec` instead
375 of an `SkStream`. Mark as deprecated the version that returns an `SkStream`.
376 * `SkColorFilter::filterColor` has been removed. Please use `SkColorFilter::filterColor4f` instead.
377 * SkFourByteTag has been moved to its own file: `include/core/SkFourByteTag.h`
378 * Ganesh files have been moved out of include/gpu/ into include/gpu/ganesh/. Shims have been left in place, but clients should migrate to the new paths.
379 * GR_GL_CUSTOM_SETUP_HEADER will be removed. Configuration in a client provided
380 SkUserConfig.h file (or defines set during compilation) are sufficient to affect
381 settings in GrGLConfig.h
382 * `GR_MAKE_BITFIELD_CLASS_OPS` and `GR_DECL_BITFIELD_CLASS_OPS_FRIENDS` have been removed
383 from the public API
384 * `SkMSec` has been removed from the public API, including `SkParse::FindMSec`
385 * A noop change to our SkSL runtime effect builder APIs. Moved make functions from subclasses
386 SkRuntimeShaderBuilder, SkRuntimeColorFilterBuilder, and SkRuntimeBlendBuilder to the base class
387 SkRuntimeEffectBuilder.
388
389 * * *
390
391 Milestone 129
392 -------------
393 * The Dawn-specific constructors and methods on `skgpu::graphite::TextureInfo`,
394 `skgpu::graphite::BackendTexture`, have been deprecated and
395 moved to be functions in `DawnTypes.h`
396 * `SkImageFilters::DropShadow` and `SkImageFilters::DropShadowOnly` now accept
397 `SkColor4f` and `SkColorSpace` for the shadow color.
398 * `SkScalerContext::MakeRecAndEffects` now converts `SkFont::isEmbolden` to the `kEmbolden_Flag`.
399 It no longer automatically converts embolden requests into (more) stroking.
400 This can now (optionally) be done in `SkTypeface::onFilterRec` by calling the new `SkScalerContextRec::useStrokeForFakeBold()`.
401 * Skia no longer tests building against iOS 11.
402 The minimum deployment target is now iOS 12 as this is the minimum deplyment target for Xcode 15.
403 * The Vulkan-specific constructors and methods on `skgpu::graphite::TextureInfo`,
404 `skgpu::graphite::BackendTexture`, `skgpu::graphite::BackendSemaphore` have been deprecated and
405 moved to be functions in `VulkanGraphiteTypes.h`
406
407 * * *
408
409 Milestone 128
410 -------------
411 * SkSL now properly reports an error if user code includes various GLSL reserved keywords.
412 Previously, Skia would correctly reject keywords that were included in "The OpenGL ES
413 Shading Language, Version 1.00," but did not detect reserved keywords added in more modern
414 GLSL versions. Instead, Skia would allow such code to compile during the construction of a
415 runtime effect, but actually rendering the effect using a modern version of OpenGL would
416 silently fail (or assert) due to the presence of the reserved name in the the code.
417
418 Examples of reserved names which SkSL will now reject include `dmat3x3`, `atomic_uint`,
419 `isampler2D`, or `imageCubeArray`.
420
421 For a more thorough list of reserved keywords, see the "3.6 Keywords" section of the
422 OpenGL Shading Language documentation.
423 * The following symbols (and their files) have been deleted in favor of their
424 GPU-backend-agnostic form:
425 - `GrVkBackendContext` -> `skgpu::VulkanBackendContext`
426 - `GrVkExtensions` -> `skgpu::VulkanExtensions`
427 - `GrVkMemoryAllocator` = `skgpu::VulkanMemoryAllocator`
428 - `GrVkBackendMemory` = `skgpu::VulkanBackendMemory`
429 - `GrVkAlloc` = `skgpu::VulkanAlloc`
430 - `GrVkYcbcrConversionInfo` = `skgpu::VulkanYcbcrConversionInfo`
431 - `GrVkGetProc` = `skgpu::VulkanGetProc`
432 * The Metal-specific constructors and methods on `skgpu::graphite::TextureInfo`,
433 `skgpu::graphite::BackendTexture`, `skgpu::graphite::BackendSemaphore` have been deprecated and
434 moved to be functions in `MtlGraphiteTypes.h`
435 * SkImage now has a method makeScaled(...) which returns a scaled version of
436 the image, retaining its original "domain"
437 - raster stays raster
438 - ganesh stays ganesh
439 - graphite stays graphite
440 - lazy images become raster (just like with makeSubset)
441
442 * * *
443
444 Milestone 127
445 -------------
446 * SkSL now properly recognizes the types `uvec2`, `uvec3` or `uvec4`.
447
448 Unsigned types are not supported in Runtime Effects, as they did not exist in GLSL ES2; however,
449 SkSL should still recognize these typenames and reject them if they are used in a program.
450 That is, we should not allow `uvec3` to be used as a variable or function name. We will now properly
451 detect and reject this as an error.
452 * The following deprecated fields have been removed from `GrVkBackendContext`:
453 - `fMinAPIVersion`. Use `fMaxAPIVersion` instead.
454 - `fInstanceVersion`. Use `fMaxAPIVersion` instead.
455 - `fFeatures`. Use `fDeviceFeatures` or `fDeviceFeatures2` instead.
456 - `fOwnsInstanceAndDevice`. No replacement, as it had no effect.
457
458 `GrVkBackendContext` is now an alias for `skgpu::VulkanBackendContext`. Clients should use the latter, as the former will be eventually removed.
459 * SkShaderMaskFilters and SkTableMaskFilters have been deprecated. They will be removed entirely in an upcoming Skia release.
460
461 * * *
462
463 Milestone 126
464 -------------
465 * Skia's internal array class (`skia_private::TArray<T>`) now protects its unused capacity when
466 [Address Sanitizer (ASAN)](https://clang.llvm.org/docs/AddressSanitizer.html) is enabled. Code which
467 inadvertently writes past the end of a Skia internal structure is now more likely to trigger an ASAN
468 error.
469 * `SkFloat2Bits` and `SkBits2Float` have been removed from the Skia public headers. These were always
470 private API (since they lived in `/include/private`) but they had leaked into some example code, and
471 tended to be available once a handful of Skia headers were #included.
472 * SkSL now allows the ++ and -- operators on vector and matrix variables.
473
474 Previously, attempting to use these operators on a vector or matrix would lead to an error. This was
475 a violation of the GLSL expression rules (5.9): "The arithmetic unary operators negate (-), post-
476 and pre-increment and decrement (-- and ++) operate on integer or floating-point values (including
477 vectors and matrices)."
478 * `SkScalarIsFinite`, `SkScalarsAreFinite`, and `SkScalarIsNaN` have been removed from the Skia API.
479 These calls can be replaced with the functionally-equivalent `std::isfinite` and `std::isnan`.
480 * Clients can explicitly make a Ganesh GL backend for iOS with
481 `GrGLInterfaces::MakeIOS` from `include/gpu/ganesh/gl/ios/GrGLMakeIOSInterface.h`
482 * Clients can explicitly make a Ganesh GL backend for Mac with
483 `GrGLInterfaces::MakeMac` from `include/gpu/ganesh/gl/mac/GrGLMakeMacInterface.h`
484 * The following headers have been relocated (notice "ganesh" in the filepath):
485 - include/gpu/gl/egl/GrGLMakeEGLInterface.h -> include/gpu/ganesh/gl/egl/GrGLMakeEGLInterface.h
486 - include/gpu/gl/glx/GrGLMakeGLXInterface.h -> include/gpu/ganesh/gl/glx/GrGLMakeGLXInterface.h
487 - include/gpu/gl/epoxy/GrGLMakeEpoxyEGLInterface.h -> include/gpu/ganesh/gl/epoxy/GrGLMakeEpoxyEGLInterface.h
488
489 * * *
490
491 Milestone 125
492 -------------
493 * The size of the GPU memory cache budget can now be queried using member `maxBudgetedBytes` of `skgpu::graphite::Context` and `skgpu::graphite::Recorder`.
494 * Added `skgpu::graphite::Context::maxTextureSize()`, which exposes the maximum
495 texture dimension supported by the underlying backend.
496 * Using a MTLBinaryArchive to pre-load the MSL shader cache is no longer
497 supported in Ganesh, and the fBinaryArchive member of GrMtlBackendContext
498 has been removed.
499 * The `sksl-minify` tool can now eliminate unnecessary braces. For instance,
500 given the following SkSL code:
501
502 ```
503 if (condition) {
504 return 1;
505 } else {
506 return 2;
507 }
508 ```
509
510 The minifier will now emit:
511
512 ```
513 if(a)return 1;else return 2;
514 ```
515 * Added `SkBitmap::setColorSpace`. This API allows the colorspace of an existing
516 `SkBitmap` to be reinterpreted. The pixel data backing the bitmap will be left
517 as-is. The colorspace will be honored when the bitmap is accessed via APIs which
518 support colorspace conversion, like `readPixels`.
519 * `SkDrawLooper` has been removed completely from Skia. It was previously deprecated.
520 * Metal-specific constructors and methods have been removed from `GrBackendFormat`,
521 `GrBackendTexture`, and `GrBackendRenderTarget` and moved to
522 `include/gpu/ganesh/mtl/GrMtlBackendSurface.h`
523 * By default, //modules/skottie and //modules/svg will use primitive text shaping.
524 Clients that wish to use harfbuzz/icu for more correct shaping will need to
525 use one of the builders and call `setTextShapingFactory` with a newly-created
526 `SkShapers::Factory` implementation during construction.
527
528 For ease of configuration, `modules/skshaper/utils/FactoryHelpers.h` can be used
529 to provide this, but only if the client is depending on the correct skshaper
530 and skunicode modules (which should set defines such as `SK_SHAPER_HARFBUZZ_AVAILABLE`).
531
532 For example `builder.setTextShapingFactory(SkShapers::BestAvailable())` will use
533 Harfbuzz or CoreText for shaping if they were compiled in to the clients binary.
534
535 * * *
536
537 Milestone 124
538 -------------
539 * `SkColorFilter::filterColor` is now deprecated and will eventually be removed in favor of `filterColor4f`.
540 * The Perlin noise shaders (`MakeFractalNoise` and `MakeTurbulence`) will now properly rotate when
541 transformed. On raster surfaces, the performance of Perlin noise has also been significantly
542 improved.
543 * Graphite's `SkImages::WrapTexture` now takes an additional parameter that indicates whether
544 a mipmapped texture should be used as is or whether Graphite should generate the upper level
545 contents from the base level contents.
546 * `GrBackendSemaphore::initMetal`, `GrBackendSemaphore::mtlSemaphore`, and
547 `GrBackendSemaphore::mtlValue` have been replaced with `GrBackendSemaphores::MakeMtl`,
548 `GrBackendSemaphores::GetMtlHandle`, and `GrBackendSemaphores::GetMtlValue`, defined in
549 `include/gpu/ganesh/mtl/GrMtlBackendSemaphore.h`
550 * `GrDirectContext::MakeMetal` has been moved to `GrDirectContexts::MakeMetal`, located in
551 `include/gpu/ganesh/mtl/GrMtlDirectContext.h`. The APIs that passed in void* have been removed
552 in that change, so clients who use those need to create a `GrMtlBackendContext` themselves.
553
554 `include/gpu/mtl/GrMtlTypes.h` and `include/gpu/mtl/GrMtlBackendContext.h` have been relocated to
555 `include/gpu/ganesh/mtl/GrMtlTypes.h` and `include/gpu/ganesh/mtl/GrMtlBackendContext.h`
556 respectively.
557 * Added `SkCodecs::DeferredImage` which is similar to `SkImages::DeferredFromEncodedData` except it
558 allows the caller to pass in a `SkCodec` directly instead of depending on compiled-in codecs.
559 * The following SkShaper functions have been moved or deleted:
560 - SkShaper::MakePrimitive() -> SkShapers::Primitive()
561 - SkShaper::MakeShaperDrivenWrapper() -> SkShapers::HB::ShaperDrivenWrapper()
562 - SkShaper::MakeShapeThenWrap() -> SkShapers::HB::ShapeThenWrap()
563 - SkShaper::MakeShapeDontWrapOrReorder() -> SkShapers::HB::ShapeDontWrapOrReorder()
564 - SkShaper::MakeCoreText() -> SkShapers::CT::CoreText()
565 - SkShaper::Make() -> deleted, use one of the above directly,
566 - SkShaper::MakeSkUnicodeBidiRunIterator() -> SkShapers::unicode::BidiRunIterator()
567 - SkShaper::MakeBiDiRunIterator() -> deleted, use SkShapers::unicode::BidiRunIterator() or SkShapers::TrivialBiDiRunIterator()
568 - SkShaper::MakeIcuBiDiRunIterator() -> deleted, use SkShapers::unicode::BidiRunIterator()
569 - SkShaper::MakeSkUnicodeHbScriptRunIterator() -> SkShapers::HB::ScriptRunIterator()
570 - SkShaper::MakeHbIcuScriptRunIterator() -> SkShapers::HB::ScriptRunIterator()
571 - SkShaper::MakeScriptRunIterator() -> deleted, use SkShapers::HB::ScriptRunIterator() or SkShapers::TrivialScriptRunIterator
572
573 Additionally, two `SkShaper::shape` method overloads have been removed - clients now need to
574 specify all 10 arguments (although it is common to pass in nullptr for features).
575 * `SkStream::getData()` has been added as a virtual. Subclasses can implement this if it is efficient
576 to turn the underlying contents into an SkData (e.g. SkStreamMemory). `SkStreamMemory::asData()`
577 has been renamed to `getData()` as a result of this change and will be removed in a future release.
578
579 * * *
580
581 Milestone 123
582 -------------
583 * When `SkCodec::SelectionPolicy::kPreferStillImage` is passed to `SkWuffsCodec`/`SkGifDecoder`
584 creation, and the input stream cannot be rewound, the resulting `SkWuffsCodec` will no longer copy
585 the stream. Because it will now have a non-seekable stream, it no longer supports `getFrameCount`,
586 which will now simply report `1`, or `getFrameInfo`, which is useful only for animation anyway.
587 Chromium uses `kPreferStillImage`, simply because it is the default, but will not be affected by
588 this change because it always supplies a seekable stream.
589 * A `kDefault_Flag = 0` value has been added to the `SkSurfaceProps::Flags` enum. This is just a
590 self-documenting zero-value that aims to improve code readability, e.g.:
591
592 ```
593 // The two lines below are equivalent.
594
595 SkSurfaceProps(/* surfaceFlags= */ 0, kRGB_H_SkPixelGeometry);
596
597 SkSurfaceProps(SkSurfaceProps::kDefault_Flag, kRGB_H_SkPixelGeometry);
598 ```
599 * In native builds the default use of `wgpu::Device::Tick` to detect GPU progress has been updated
600 to use `wgpu::Instance::ProcessEvents` instead. To simulate the non-yielding behavior of `Context`
601 in native `DawnBackendContext::fTick` may still be explicitly set to `nullptr`.
602 * The Vulkan backend for both Ganesh and Graphite will now invoke an optional client-provided callback
603 function when a `VK_ERROR_DEVICE_LOST` error code is returned from the Vulkan driver. Additional
604 debugging information will be passed from the driver to this callback if the `VK_EXT_device_fault`
605 extension is supported and enabled.
606
607 This optional callback can be be provided via the `fDeviceLostContext` and `fDeviceLostProc` fields
608 on `GrVkBackendContext` (Ganesh) and `VulkanBackendContext` (Graphite).
609 * `SkAnimCodecPlayer` has been removed from the public API.
610 * `SkCodec::getImage()` will now respect the origin in the metadata (e.g. Exif metadata that
611 rotates the image). This may mean callers who provide an SkImageInfo may need to rotate it,
612 e.g. via `SkPixmapUtils::SwapWidthHeight`.
613
614 * * *
615
616 Milestone 122
617 -------------
618 * `graphite::BackendTexture` can be created from a `WGPUTextureView`. This comes with a
619 perfomance cost when reading pixels to or writing pixels from the CPU. An intermediate
620 WGPUTexture is created to support these operations. However, this enables creating
621 `SkSurface` or `SkImage` from `wgpu::SwapChain::GetCurrentTextureView`.
622 * SkSL now properly reports an error if the body of a for-loop declares a variable which shadows the
623 for-loop induction variable.
624
625 In other words, SkSL code like this will now generate an error:
626
627 ```
628 for (int x = 0; x < 10; ++x) {
629 int x = 123; // error: symbol 'x' was already defined
630 }
631 ```
632
633 Previously, the declaration of `x` would be allowed, in violation of the GLSL scoping rules (6.3):
634 "For both for and while loops, the sub-statement does not introduce a new scope for variable names."
635 * The PDF code now directly depends on Skia's JPEG decoder and encoder. The build
636 time shims to avoid using a JPEG decoder and encoder have been removed. In the
637 future these may be made optional again by allowing the user to supply them at
638 runtime.
639 * SkSL variables declared inside of a switch statement will now properly fall out of scope after the
640 closing brace of the switch-block, as one would expect.
641
642 In other words, SkSL code like this will now generate an error:
643
644 ```
645 switch (n) {
646 case 1:
647 int x = 123;
648 }
649 return x; // error: unknown identifier 'x'
650 ```
651
652 Previously, `x` would remain accessible after the switch's closing brace.
653 * `skgpu::graphite::ContextOptions::fNeverYieldToWebGPU` is removed. Instead, yielding in an
654 Emscripten build is controlled by installing a client-provided function on
655 `skgpu::graphite::DawnBackendContext`. The client may install a function that uses Asyncify to
656 yield to the main thread loop. If no function is installed then the Context has the same
657 restrictions as with the old option.
658
659 In native builds the default is to use `wgpu::Device::Tick` to detect GPU progress. To simulate the
660 non-yielding behavior of `Context` in native `DawnBackendContext::fTick` may be explicitly set to
661 to `nullptr`.
662
663 By externalizing the use of Asyncify it is possible to build Skia without generated JS
664 code that relies on Asyncify.
665 * SkSL will now properly report an error if a function contains a top-level variable with the same
666 name as a function parameter. SkSL intends to match the scoping rules of GLSL, in particular: "A
667 function’s parameter declarations and body together form a single scope nested in the global scope."
668
669 A program like this will now be rejected:
670
671 ```
672 void func(int var) {
673 int var;
674 }
675
676 error: 2: symbol 'var' was already defined
677 int var;
678 ^^^^^^^
679 ```
680 * `SkFont::getTypeface()` will no longer return a nullptr to indicate "the default typeface".
681 If left unspecified, SkFonts will use an empty typeface (e.g. no glyphs).
682 * `SkFontMgr::RefDefault()` has been deleted. Clients should instantiate and manage their own
683 `SkFontMgr`s and use them to explicitly create `SkTypeface`s
684 * `GrGLMakeNativeInterface` has been deprecated and will eventually be removed. Clients should
685 be calling the precise factory (e.g. `GrGLInterfaces::makeGLX`) they need. Some APIs that currently allow a nullptr GrGLInterface will be stop allowing this (e.g. `GrDirectContexts::MakeGL`).
686 * `SkFontArguments::Palette::Override`'s index member is changing from an `int`
687 type to `uint16_t` to make the size exact and remove an unneeded
688 signedness. This avoids platform/compiler-specific size ambiguiity and more
689 closely matches the OpenType CPAL table.
690
691 * * *
692
693 Milestone 121
694 -------------
695 * `SkFontConfigInterface::makeTypeface` now has a required `sk_sp<SkFontMgr>` parameter to be used for
696 parsing the font data from the stream.
697 * `skgpu::graphite::ContextOptions` has a new field, `fNeverYieldToWebGPU`. This new option
698 is only valid with the Dawn backend. It indicates that `skgpu::graphite::Context` should never yield
699 to Dawn. In native this means `wgpu::Device::Tick()` is never called. In Emscripten it
700 means `Context` never yields to the main thread event loop.
701
702 When the option is enabled, `skgpu::SyncToCpu::kYes` is ignored when passed to
703 `Context::submit()`. Moreover, it is a fatal error to have submitted but unfinished
704 GPU work before deleting `Context`. A new method, `hasUnfinishedGpuWork()` is added
705 to `Context` that can be used to test this condition.
706
707 The intent of this option is to be able to use Graphite in WASM without requiring Asyncify.
708 * Deprecated `GrMipmapped` and `GrMipMapped` alias have been removed in favor of `skgpu::Mipmapped`.
709 * Harfbuzz-backed SkShaper instances will no longer treat a null SkFontMgr as meaning "use the
710 default SkFontMgr for fallback" and instead will *not* do fallback for glyphs missing from a font.
711 * `GrBackendSemaphore::initVk` and `GrBackendSemaphore::vkSemaphore` have been replaced with
712 `GrBackendSemaphores::MakeVk` and `GrBackendSemaphores::GetVkSemaphore`, defined in
713 `include/gpu/ganesh/vk/GrVkBackendSemaphore.h`
714 * The Vulkan-specific methods and constructor of `MutableTextureState` have been deprecated in favor
715 of those found in `include/gpu/vk/VulkanMutableTextureState.h`.
716
717 * * *
718
719 Milestone 120
720 -------------
721 * `SkBase64.h` has been removed from the public API.
722 * `SkFont::refTypefaceOrDefault` and `SkFont::getTypefaceOrDefault()` have been removed from the
723 public API.
724 * `GrBackendSemaphore::initGL` and `GrBackendSemaphore::glSync` have been removed
725 from the public API.
726 * For Graphite, `SkImages::AdoptTextureFrom` has been renamed to `SkImages::WrapTexture` to
727 better reflect what is happening to the passed in texture.
728 * `GrSurfaceInfo.h` has been removed from the public API.
729 * SkMesh now allows shaders, color filters, and blenders to be used in the mesh-fragment program.
730 Pass in effects using the `children` parameter of `SkMesh::Make` or `SkMesh::MakeIndexed`.
731 For a working example, see `gm/mesh.cpp`.
732 * The behavior for SkPicture deserialization (via SkReadBuffer) to fallback to
733 `SkImages::DeferredFromEncodedData` when `SkDeserialImageProc` is not set or returns null is
734 deprecated and will be removed shortly.
735
736 `SkDeserialImageFromDataProc` has been added to SkDeserialProcs to allow clients to *safely*
737 avoid a copy when decoding image data in SkPictures.
738
739 `SkDeserialImageProc` now takes in an optional AlphaType which can be used to override the
740 AlphaType that an image was serialized with, if desired.
741 * skgpu::graphite::RecorderOptions::kDefaultRecorderBudget is now a static data member.
742 * `SkTypeface::MakeFromName`, `SkTypeface::MakeFromFile`, `SkTypeface::MakeFromStream`, and
743 `SkTypeface::MakeFromData` are deprecated and will be removed eventually. These should be replaced
744 with calls directly to the SkFontMgr that can provide the appropriate typefaces.
745
746 `SkTypeface::MakeDefault()` has been deprecated. Soon it will return an empty typeface and
747 eventually be removed.
748
749 `SkTypeface::UniqueID()` has been removed - clients should use the method instead of this static
750 function.
751 * `GrDirectContext::MakeVulkan...` has been moved to `GrDirectContexts::MakeVulkan...` which are defined
752 in `include/gpu/ganesh/vk/GrVkDirectContext.h`
753 * The various GPU wait calls on GrDirectContext, SkSurface, and GrVkSecondaryCBContext which take
754 a client supplied semaphore, now only guarantee to block the gpu transfer and fragment stages
755 instead of all gpu commands. This shouldn't affect any client since client provided gpu resources
756 (e.g. textures) are only ever used by Skia in the fragment stages.
757
758 * * *
759
760 Milestone 119
761 -------------
762 * Added new `SkImageFilters::Crop(SkRect, SkTileMode, sk_sp<SkImageFilter>)` image filter effect that crops the output from the wrapped SkImageFilter and optionally applies the SkTileMode when sampling outside of the crop rect.
763 * `GrDirectContext::MakeGL...` has been moved to `GrDirectContexts::MakeGL...` which are defined
764 in `include/gpu/ganesh/gl/GrGLDirectContext.h`
765 * `GrDirectContext::submit` and `GrDirectContext::flushAndSubmit` calls now take a GrSyncCpu enum
766 instead of a error-prone boolean.
767
768 Similarly, calls to `GrDirectContext::performDeferredCleanup` and
769 `GrDirectContext::purgeUnlockedResources` take a GrPurgeResourceOptions enum.
770 * SkMeshSpecification no longer rejects fragment programs which include `uniform shader`, `uniform
771 colorFilter` or `uniform blender`. However, `SkMesh::Make` will not allow the mesh specification
772 to be used.
773 * `SkMesh::Make` and `SkMesh::MakeIndexed` now require a span of child effects as a new parameter.
774 This functionality is still a work in progress; for now, always pass an empty span.
775 * `sksl-minify` can now minify SkMesh programs. Pass `--meshvert` or `--meshfrag` to indicate
776 that the input program is an SkMesh vertex or fragment program. When minifying a mesh program,
777 you must supply `struct Varyings` and `struct Attributes` which correspond to the
778 SkMeshSpecification; these will be eliminated from the minified output.
779 * `SkMergePathEffect`, `SkMatrixPathEffect`, `SkStrokePathEffect`, and
780 `SkStrokeAndFillPathEffect` have been removed from the public API.
781 These effects can be implemented on the SkPath objects directly using other means and clients
782 will likely find performance boosts by doing so.
783 * `SkShadowFlags` are now visible in `include/utils/SkShadowUtils.h`
784 * `SkPicture`s no longer serialize `SkImage`s to PNG encoded data by default. Clients who wish to
785 preserve this should make use of `SkSerialProcs`, specifically the `fImageProc` field.
786
787 * * *
788
789 Milestone 118
790 -------------
791 * `GrDirectContext::flush` variants now expect a SkSurface pointer only, not
792 an sk_sp<SkSurface>.
793 * `SkImage::makeWithFilter` has been deprecated. It has been replaced with three factory functions:
794
795 Ganesh: `SkImages::MakeWithFilter(GrRecordingContext*, ...);` -- declared in SkImageGanesh.h
796
797 Graphite: `SkImages::MakeWithFilter(skgpu::graphite::Recorder*, ...);` -- declared in Image.h
798
799 Raster: `SkImages::MakeWithFilter(...);` -- declared in SkImage.h
800
801 The new factories require the associated backend context object be valid. For example, the Graphite version will return nullptr if it isn't supplied with a `Recorder` object.
802 * SkSL and Runtime Effects are no longer optional features of Skia; they are always available.
803 The GN flag `skia_enable_sksl` has been removed.
804 * SkSL will now properly reject sequence-expressions containing arrays, or sequence-expressions
805 containing structures of arrays. Previously, the left-side expression of a sequence was checked,
806 but the right-side was not. In GLSL ES 1.0, and therefore in SkSL, the only operator which is
807 allowed to operate on arrays is the array subscript operator (`[]`).
808 * The Dawn backend for Ganesh has been removed. Dawn will continue to be supported in the
809 Graphite backend.
810 * We plan to remove SkTime.h from the public API. As of now, SkAutoTime has been
811 deleted as it was unused.
812 * Vulkan-specific calls are being removed from GrBackendSurface.h. Clients should use the
813 equivalents found in `include/gpu/ganesh/vk/GrVkBackendSurface.h"`
814
815 * * *
816
817 Milestone 117
818 -------------
819 * `SkGraphics::AllowJIT()` has been removed. It was previously deprecated (and did nothing).
820 * New methods are added to `SkImage`, `SkSurface`, and `skgpu::graphite::context` named
821 `asyncRescaleAndReadPixeksYUVA420`. These function identically to the existing
822 `asyncRescaleAndReadPixelsYUV420` methods but return a fourth plane containing alpha at full
823 resolution.
824 * `SkAutoGraphics` was removed. This was a helper struct that simply called `SkGraphics::Init`.
825 Any instance of `SkAutoGraphics` can be replaced with a call to `SkGraphics::Init`.
826 * `SkCanvas::flush()` has been removed. It can be replaced with:
827 ```
828 if (auto dContext = GrAsDirectContext(canvas->recordingContext())) {
829 dContext->flushAndSubmit();
830 }
831 ```
832
833 `SkCanvas::recordingContext()` and `SkCanvas::recorder()` are now const. They were implicitly const
834 but are now declared to be such.
835 * `SkCanvas::recordingContext()` and `SkCanvas::recorder()` are now const.
836 They were implicitly const but are now declared to be such.
837 * `SkMesh::MakeIndexBuffer`, `SkMesh::CopyIndexBuffer`, `SkMesh::MakeVertexBuffer`, and
838 `SkMesh::CopyVertexBuffer` have been moved to the `SkMeshes` namespace. Ganesh-specific versions
839 have been created in `include/gpu/ganesh/SkMeshGanesh.h`.
840 * SkPath now enforces an upper limit of 715 million path verbs.
841 * `SkRuntimeEffectBuilder::uniforms()`, `SkRuntimeEffectBuilder::children()`,
842 `SkRuntimeShaderBuilder::makeShader()`, `SkRuntimeColorFilterBuilder::makeColorFilter()`, and
843 `SkRuntimeBlendBuilder::makeBlender()` are now marked as const. No functional changes internally,
844 just making explicit what had been implicit.
845 * `SkRuntimeEffect::makeImage` and `SkRuntimeShaderBuilder::makeImage` have been removed.
846 * GL-specific calls have been removed from GrBackendSurface.h. Clients should use the
847 equivalents found in `include/gpu/ganesh/gl/GrGLBackendSurface.h`
848 * A new `SkTiledImageUtils` namespace (in `SkTiledImageUtils.h`) provides `DrawImage` and `DrawImageRect` methods that directly mirror `SkCanvas'` `drawImage` and `drawImageRect` calls.
849
850 The new entry points will breakup large `SkBitmap`-backed `SkImages` into tiles and draw them if they would be too large to upload to the gpu as one texture.
851
852 They will fall through to their `SkCanvas` correlates if tiling isn't needed or possible.
853
854 * * *
855
856 Milestone 116
857 -------------
858 * `SkPromiseImageTexture` has been removed from the public API, as well as
859 `SkImages::PromiseTextureFrom` and `SkImages::PromiseTextureFromYUVA`, public consumers of that
860 data type.
861 * `SkDeferredDisplayList`, `SkDeferredDisplayListRecorder`, and `SkSurfaceCharacterization` have
862 been removed from the public API.
863 * The intermediate color computed by `SkBlenders::Arithmetic` is now always clamped to between 0 and 1 (inclusive), and then `enforcePremul` is applied when that parameter is true.
864 * Added a new public type, `SkColorTable`, to own the lookup tables passed into `SkColorFilters::Table`, which allows clients and the returned `SkColorFilter` to share the table memory instead of having to duplicate it in any wrapper types that lazily create Skia representations.
865 * The deprecated `SkImageFilters::Magnifier` factory that did *not* take a lens bounds parameter has been removed.
866 * `SkImageFilters::RuntimeShader` has variations that take a maximum sample radius, which is used to provide padded input images to the runtime effect so that boundary conditions are avoided.
867 * `SkImageFilters::AlphaThreshold` has been removed. Its only use was in ChromeOS and that usage has been replaced with a `Blend(kSrcIn, input, Picture(region))` filter graph to achieve the same effect.
868 * The single-argument `SkImageFilters::Image(sk_sp<SkImage>)` factory is removed. The `SkSamplingOptions` to use when rendering the image during filtering must be provided. `SkFilterMode::kLinear` is recommended over the previous bicubic default.
869 * `GrTextureGenerator` now has a subclass `GrExternalTextureGenerator` which can be subclassed by
870 clients and used with `SkImages::DeferredFromTextureGenerator` in order to create images from
871 textures that were created outside of skia. `GrTextureGenerator` has been removed from the public
872 API in favor of `GrExternalTextureGenerator`.
873 * SkPoint now uses float for its coordinates. This starts the process of removing SkScalar from Skia.
874 SkScalar was a typedef for float, so this has no practical impact on code that uses Skia.
875 * `SkSamplingOptions(SkFilterMode)` and `SkSamplingOptions(SkCubicResampler)` are no longer marked `explicit` so that samplings can be created inline more succinctly.
876 * `SkShaders` is now a namespace (was previously a non-constructable class with only static
877 functions). `SkPerlinNoiseShader::MakeFractalNoise` and `SkPerlinNoiseShader::MakeTurbulence` have
878 been moved to the `SkShaders` namespace and `SkPerlinNoiseShader` (the public non-constructable
879 class) has been slated for moving into private internals of Skia.
880 There are no functional differences in the moved functions, however the change of some #includes
881 in `include/core/SkShader.h`, `include/effects/SkGradientShader.h`, and
882 `include/effects/SkPerlinNoiseShader.h` may cause clients who were depending on the transitive
883 dependencies to now fail to compile.
884 * The following methods have been removed from SkSurface and relocated to other methods/functions:
885 - `SkSurface::asImage` -> `SkSurfaces::AsImage` (include/gpu/graphite/Surface.h)
886 - `SkSurface::flushAndSubmit` -> `GrDirectContext::flushAndSubmit`
887 - `SkSurface::flush` -> `GrDirectContext::flush`
888 - `SkSurface::makeImageCopy` -> `SkSurfaces::AsImageCopy` (include/gpu/graphite/Surface.h)
889 - `SkSurface::resolveMSAA` -> `SkSurfaces::ResolveMSAA()` (include/gpu/ganesh/SkSurfaceGanesh.h)
890
891 Additionally, `SkSurface::BackendSurfaceAccess` is now in the `SkSurfaces` namespace.
892 * The deprecated `SkTableColorFilter` class and its methods have been removed. Clients should use
893 `SkColorFilters::Table` and `SkColorFilters::TableARGB` (defined in include/core/SkColorFilter.h).
894 * The `SkYUVAPixmapInfo::SupportedDataTypes(const GrImageContext&)` constructor has been removed from
895 the public API.
896
897 * * *
898
899 Milestone 115
900 -------------
901 * Clients now need to register codecs which Skia should use to decode raw bytes. For example:
902 `SkCodecs::Register(SkJpegDecoder::Decoder());`. Skia still provides many supported formats
903 (see `include/codec/*Decoder.h`). Clients are free to specify their own, either supplementing
904 the existing set or using a custom version instead of the one previously provided by default
905 by Skia. See `SkCodecs::Decoder` for the necessary data to provide when using a custom decoder
906 (in `include/codec/SkCodec.h`).
907
908 To ease the transition, Skia will continue (for a short while) to register codecs unless
909 `SK_DISABLE_LEGACY_INIT_DECODERS` is defined.
910 * `SkDrawable::newPictureSnapshot` is removed. Instead, call `SkDrawable::makePictureSnapshot`.
911 The old method returned a bare (but ref-counted) pointer, which was easy for clients to get wrong.
912 The new method returns an `sk_sp<SkPicture>`, which is easier to handle, and consistent with the
913 rest of skia.
914 * `SkGraphics::PurgePinnedFontCache()` has been added to allow clients to
915 explicitly trigger `SkStrikeCache` purge checks for `SkStrikes` with
916 pinners. Defining `SK_STRIKE_CACHE_DOESNT_AUTO_CHECK_PINNERS` in the
917 user configuration now disables automatic purge checking of strikes with
918 pinners.
919 * The following SkImage factories have been moved to `include/gpu/graphite/Image.h`:
920 - `SkImage::MakeGraphiteFromBackendTexture -> SkImages::AdoptTextureFrom`
921 - `SkImage::MakeGraphiteFromYUVABackendTextures -> SkImages::TextureFromYUVATextures`
922 - `SkImage::MakeGraphiteFromYUVAPixmaps -> SkImages::TextureFromYUVAPixmaps`
923 - `SkImage::MakeGraphitePromiseTexture -> SkImages::PromiseTextureFrom`
924
925 The SkImage method `makeTextureImage` has been moved to `SkImages::TextureFromImage`.
926
927 `SkImage::RequiredImageProperties` has been renamed to `SkImage::RequiredProperties`,
928 with fMipmapped turned into a boolean instead of the GPU enum.
929 * `SkImage::makeColorSpace` and `SkImage::makeColorTypeAndColorSpace` now take a `GrDirectContext`
930 as the first parameter. This should be supplied when dealing with texture-backed images and can
931 be `nullptr` otherwise.
932 * `SkImage::subset` now takes a `GrDirectContext*` as its first parameter (this can be `nullptr` for
933 non-gpu backed images. Images which are backed by a codec or picture will not be turned into a GPU
934 texture before being read. This should only impact picture-backed images, which may not be read
935 correctly if the picture contain nested texture-backed images itself. To force a conversion to
936 a texture, clients should call `SkImages::TextureFromImage`, passing in the image, and then call
937 subset on the result. Documentation has been clarified that `SkImage::subset` will return a raster-
938 backed image if the source is not backed by a texture, and texture-otherwise.
939
940 `SkImages::SubsetTextureFrom` has been added to subset an image and explicitly return a texture-
941 backed image. This allows some optimizations, especially for large images that exceed a maximum
942 texture size of a GPU.
943
944 `SkImage::makeRasterImage` and `SkImage::makeNonTextureImage` now take a `GrDirectContext*` which
945 clients should supply for reading-back pixels from texture-backed images.
946 * `SkImageFilters::Image` now returns a non-null image filter if the input `sk_sp<SkImage>` is
947 null or the src rectangle is empty or does not overlap the image. The returned filter evaluates to
948 transparent black, which is equivalent to a null or empty image. Previously, returning a null image
949 filter would mean that the dynamic source image could be surprisingly injected into the filter
950 evaluation where it might not have been intended.
951 * `SkImageFilters::Magnifier(srcRect, inset)` is deprecated. These parameters do not provide enough
952 information for the implementation to correctly respond to canvas transform or participate accurately
953 in layer bounds planning.
954
955 A new `SkImageFilters::Magnifier` function is added that takes additional parameters: the outer
956 lens bounds and the actual zoom amount (instead of inconsistently reconstructing the target zoom
957 amount, which was the prior behavior). Additionally, the new factory accepts an SkSamplingOptions
958 to control the sampling quality.
959 * `SkImageFilters::Picture` now returns a non-null image filter if the input `sk_sp<SkPicture>` is
960 null. The returned filter evaluates to transparent black, which is equivalent to a null or empty
961 picture. Previously, returning a null image filter would mean that the dynamic source image could
962 be surprisingly injected into the filter evaluation where it might not have been intended.
963 * `SkImageFilters::Shader` now returns a non-null image filter if the input `sk_sp<SkShader>` is
964 null. The returned filter evaluates to transparent black, which is equivalent to a null or empty
965 shader. Previously, returning a null image filter would mean that the dynamic source image could
966 be surprisingly injected into the filter evaluation where it might not have been intended.
967 * `SkImageGenerator::MakeFromEncoded` has been removed from the public API.
968 `SkImage::DeferredFromEncoded` or `SkCodec::MakeFromData` should be used instead.
969 * `SkSurface::getBackendTexture` and `SkSurface::getBackendRenderTarget` have been deprecated and
970 replaced with `SkSurfaces::GetBackendTexture` and `SkSurfaces::GetBackendRenderTarget` respectively.
971 These are found in `include/gpu/ganesh/SkSurfaceGanesh.h`. The supporting enum `BackendHandleAccess`
972 has also been moved to `SkSurfaces::BackendHandleAccess` as an enum class, with shorter member
973 names.
974 * SkSurface factory methods have been moved to the SkSurfaces namespace. Many have been renamed to
975 be more succinct or self-consistent. Factory methods specific to the Ganesh GPU backend are
976 defined publicly in include/gpu/ganesh/SkSurfaceGanesh.h. The Metal Ganesh backend has some
977 specific factories in include/gpu/ganesh/mtl/SkSurfaceMetal.h.
978 * SkSurface::MakeFromAHardwareBuffer -> SkSurfaces::WrapAndroidHardwareBuffer
979 * SkSurface::MakeFromBackendRenderTarget -> SkSurfaces::WrapBackendRenderTarget
980 * SkSurface::MakeFromBackendTexture -> SkSurfaces::WrapBackendTexture
981 * SkSurface::MakeFromCAMetalLayer -> SkSurfaces::WrapCAMetalLayer
982 * SkSurface::MakeFromMTKView -> SkSurfaces::WrapMTKView
983 * SkSurface::MakeGraphite -> SkSurfaces::RenderTarget
984 * SkSurface::MakeGraphiteFromBackendTexture -> SkSurfaces::WrapBackendTexture
985 * SkSurface::MakeNull -> SkSurfaces::Null
986 * SkSurface::MakeRaster -> SkSurfaces::Raster
987 * SkSurface::MakeRasterDirect -> SkSurfaces::WrapPixels
988 * SkSurface::MakeRasterDirectReleaseProc -> SkSurfaces::WrapPixels
989 * SkSurface::MakeRasterN32Premul -> SkSurfaces::Raster (clients should make SkImageInfo)
990 * SkSurface::MakeRenderTarget -> SkSurfaces::RenderTarget
991
992 * * *
993
994 Milestone 114
995 -------------
996 * The CPU backend for Runtime Effects has been rewritten. This may cause slight differences in
997 performance and image quality when runtime effects are painted onto a raster surface.
998 * Gradient shaders support interpolation in several different color spaces, by passing a
999 `SkGradientShader::Interpolation` struct to the shader factory functions. The color space and
1000 hue method options are based on the CSS Color Level 4 specfication:
1001 * https://www.w3.org/TR/css-color-4/#interpolation-space
1002 * https://www.w3.org/TR/css-color-4/#hue-interpolation
1003 * `SkImages::GetBackendTextureFromImage` has been renamed `SkImages::MakeBackendTextureFromImage`.
1004 * `SkImage::getBackendTexture()` has been moved to `SkImages::GetBackendTextureFromImage()` in
1005 `SkImageGanesh.h`.
1006 * `SkImage::makeTextureImage()` has been moved to `SkImages::TextureFromImage()` in
1007 `SkImageGanesh.h`.
1008 * `SkImage::flush()` and `SkImage::flushAndSubmit()` has been moved to
1009 `GrDirectContext::flush()` and `GrDirectContext::flushAndSubmit()` in `SkImageGanesh.h`.
1010 * `SkSurfaceProperties::kAlwaysDither_Flag` added to globally enable dithering for a specific
1011 `SkSurface` target.
1012 * `SkSerialImageProc` and `SkDeserialImageProc` are now also used to encode/decode the SkMipmap
1013 layers of certain SkImages.
1014 * The defines `SK_USE_WIC_ENCODER` and `SK_USE_CG_ENCODER` have been removed, as well as the code
1015 to use the Windows Image Codecs and Core Graphics as a way to have Skia encode files in PNG,
1016 JPEG, and WEBP format. Skia continues to support use of the NDK codecs on Android, as well
1017 as using external C++ libraries (e.g. libpng, libjpeg-turbo) to *encode* images. WIC and CG
1018 are still used to *decode* images on the appropriate platforms.
1019 * `SkImage::encodeToData` has been deprecated. Clients should use `refEncodedData` if the image
1020 was from an encoded bytestream or one of `SkPngEncoder::Encode`, `SkJpegEncoder::Encode`,
1021 `SkWebpEncoder::Encode` directly.
1022 * The following defines no longer do anything. GN clients should instead set the provided
1023 arguments (from gn/skia.gni) as necessary:
1024 - `SK_ENCODE_PNG` -> `skia_use_libjpeg_turbo_encode`
1025 - `SK_ENCODE_JPEG` -> `skia_use_libpng_encode`
1026 - `SK_ENCODE_WEBP` -> `skia_use_libwebp_encode`
1027 Other clients should make sure the appropriate `*EncoderImpl.cpp` files from `src/encode` are
1028 included in the build.
1029 * `SkImageEncoder` has been removed. Clients should use one of `SkPngEncoder::Encode`,
1030 `SkJpegEncoder::Encode` or `SkWebpEncoder::Encode` directly.
1031 * `SkImageGenerator` has a new subclass `GrTextureGenerator` which can be used if clients want to
1032 provide specialized ways of making Ganesh texture-backed Images.
1033 * `SkImageGenerator::MakeFromPicture` has been removed from the public API. Clients should be
1034 drawing the picture directly instead of turning it into an image first.
1035
1036
1037 * * *
1038
1039 Milestone 113
1040 -------------
1041 * The define SK_SUPPORT_GPU is now SK_GANESH. It is no longer detected as a 0 or 1, but
1042 as the absence or presence of that define. As a result, it defaults to off (not defined) if
1043 not defined (SK_SUPPORT_GPU would default to SK_SUPPORT_GPU=1 if not defined).
1044 * SkStrSplit is no longer part of the public API.
1045 * SkImage::encodeToData now takes a GrDirectContext. The versions which do not have that are
1046 deprecated and will be removed at some point.
1047 * SkMatrix::Scale, preScale, setScale, etc. with any scale factor of 0 correctly no longer
1048 return true from rectStaysRect(), consistent with rectStaysRect() implying a non-zero scale.
1049 * `SkImage::CompressionType` has been renamed to `SkTextureCompressionType` and moved to
1050 `include/core/SkTextureCompressionType.h`
1051 * `SkEncodedImageFormat.h` and `SkPngChunkReader.h` are now in include/codec
1052 * `SkICC.h` is now in include/encode
1053 * SkImage factory methods have been moved to the SkImages namespace. Many have been renamed to
1054 be more succinct or self-consistent. Factory methods specific to the Ganesh GPU backend are
1055 defined publicly in include/gpu/ganesh/SkImageGanesh.h.
1056 * SkImage::MakeBackendTextureFromSkImage -> SkImages::GetBackendTextureFromImage
1057 * SkImage::MakeCrossContextFromPixmap -> SkImages::CrossContextTextureFromPixmap
1058 * SkImage::MakeFromAdoptedTexture -> SkImages::AdoptTextureFrom
1059 * SkImage::MakeFromBitmap -> SkImages::RasterFromBitmap
1060 * SkImage::MakeFromCompressedTexture -> SkImages::TextureFromCompressedTexture
1061 * SkImage::MakeFromEncoded -> SkImages::DeferredFromEncodedData
1062 * SkImage::MakeFromGenerator -> SkImages::DeferredFromGenerator
1063 * SkImage::MakeFromPicture -> SkImages::DeferredFromPicture
1064 * SkImage::MakeFromRaster -> SkImages::RasterFromPixmap
1065 * SkImage::MakeFromTexture -> SkImages::BorrowTextureFrom
1066 * SkImage::MakeFromYUVAPixmaps -> SkImages::TextureFromYUVAPixmaps
1067 * SkImage::MakeFromYUVATextures -> SkImages::TextureFromYUVATextures
1068 * SkImage::MakePromiseTexture -> SkImages::PromiseTextureFrom
1069 * SkImage::MakePromiseYUVATexture -> SkImages::PromiseTextureFromYUVA
1070 * SkImage::MakeRasterCopy -> SkImages::RasterFromPixmapCopy
1071 * SkImage::MakeRasterData -> SkImages::RasterFromData
1072 * SkImage::MakeRasterFromCompressed -> SkImages::RasterFromCompressedTextureData
1073 * SkImage::MakeTextureFromCompressed -> SkImages::TextureFromCompressedTextureData
1074 To help in the transition, there is some temporary bridge code (e.g. aliases) which will
1075 eventually be removed.
1076
1077 * * *
1078
1079 Milestone 112
1080 -------------
1081 * SkImage::CubicResampler has been removed. Clients should use SkCubicResampler from
1082 include/core/SkSamplingOptions.h instead (the former was an alias for the latter).
1083 * SkRuntimeColorFilterBuilder has been added. This is a helper class for setting up color filters,
1084 analogous to SkRuntimeShaderBuilder.
1085 * SkShaders::CoordClamp has been added. It clamps the coords passed used with another
1086 shader to a rectangle.
1087 * SkRandom is no longer part of the public API.
1088 * SK_ARRAY_COUNT is no longer part of the public API. Clients should use std::size.
1089 * SK_SCALAR_IS_FLOAT is not set anymore. SkScalar is always a float (and has been since 2017).
1090 * sk_realloc_throw (an internal API) now frees up memory when 0 is passed in as the size.
1091 This should have no user-facing impacts for clients which use the default allocator, but
1092 requires custom allocators to also implement this change.
1093 * The particles module has been deleted.
1094 * SkJpegEncoder::Options includes a parameter for XMP metadata.
1095 * SkJpegEncoder includes support for encoding SkYUVAPixmaps directly.
1096
1097 * * *
1098
1099 Milestone 111
1100 -------------
1101 * SkToBool is no longer part of the public API.
1102 * A float version of SkCanvas::saveLayerAlpha now exists as SkCanvas::saveLayerAlphaf.
1103 * SkAbs32 and SkTAbs are no longer part of the public API.
1104 * SkAlign2, SkAlign4, SkAlign8, SkIsAlign2, SkIsAlign4, SkIsAlign8, SkAlignPtr, SkIsAlignPtr,
1105 and SkAlignTo are no longer part of the public API.
1106 * GrContextOptions::fSkipGLErrorChecks no longer stops checking shader compilation and program
1107 linking success.
1108 * SkBackingFit is no longer part of the public API.
1109 * SkBudgeted was moved from include/core/SkTypes.h to include/gpu/GpuTypes.h and moved into the
1110 skgpu namespace.
1111 * include/gpu/GrConfig.h has been removed; its contents were folded into other files.
1112 * SkLeftShift is no longer part of the public API.
1113 * SK_MaxS32 and related constants are no longer part of the public API.
1114 * include/core/SkMath.h is no longer part of the public API.
1115
1116 * * *
1117
1118 Milestone 110
1119 -------------
1120 * SkParsePath::ToSVGString now returns the string, rather than modifying a passed-in string.
1121 * Removed previously deprecated SkImageFilters::Paint factory. Use SkImageFilters::Shader instead.
1122 * SkMesh::Make and SkMesh::MakeIndexed now return a SkMesh and error message string.
1123 * SkPaint::getFillPath has been replaced with skpathutils::FillPathWithPaint from
1124 include/core/SkPathUtils.h. The functionality should be the same.
1125
1126 * * *
1127
1128 Milestone 109
1129 -------------
1130 * SkMesh vertex and fragment main() signatures have changed. See docs on SkMeshSpecification.
1131 * Added SkImage::RescaleMode::kLinear so that the async rescale/readback APIs can scale in a
1132 single step no matter the total scale factor (faster but lower quality than kRepeatedLinear).
1133 * SkMesh buffer factories added that make copies of CPU-backed buffers.
1134 * A utility for minifying Runtime Effect code has been added to Skia. Add the gn argument
1135 "skia_compile_modules = true" to your gn args, and a new utility called "sksl-minify" will be
1136 compiled as part of your Skia build. Run the command:
1137 `skia-minify output-file.sksl input-file.sksl`
1138 to write a minified version of the runtime shader "input-file.sksl" into a file named
1139 "output-file.sksl". By default, sksl-minify expects a shader, but you can also pass command
1140 line options `--colorfilter` or `--blender` if your program is a color-filter or a blender.
1141 A compile error will be printed to stdout if an error is found in the program.
1142 * The order of SkShader local matrix concatenation has been reversed. See skbug.com/40044836
1143 * PromiseImages have been added to Graphite. This supports both volatile and non-volatile Promise Images.
1144 See the comment for SkImage::MakeGraphitePromiseTexture for more details.
1145 * Graphite has loosened the immutability requirements of SkImages - through a new SkSurface API and careful
1146 synchronization, clients can now mutate the backend object backing an SkImage. The new API consists of
1147 SkSurface::asImage and SkSurface::makeImageCopy. We have a document that covers the expected use cases and
1148 the synchronization required for each one.
1149
1150 * * *
1151
1152 Milestone 108
1153 -------------
1154 * SkShader::asAGradient() has been removed.
1155 * SkMesh and SkMeshSpecification has separate sk_sp and bare ptr getters for ref counted types.
1156 * Add support for specifying a custom ICC profile to SkJpegEncoder, SkPngEncoder, and
1157 SkWebpEncoder.
1158
1159 * * *
1160
1161 Milestone 107
1162 -------------
1163 * Exported SkColor4f::toBytes_RGBA() and SkColor4f::FromBytes_RGBA.
1164 * SkWebpEncoder: Added support for animated WebP image encoding.
1165 * SkRuntimeEffect shader effects were inadvertently allowing functions with the signature
1166 `half4 main(float2 coords, half4 color)`. This was disallowed at Milestone 87, but the
1167 restriction was inadvertently relaxed in later milestones. Going forward, we will only
1168 accept a shader signature of `half4 main(float2 coords)`.
1169
1170 * * *
1171
1172 Milestone 106
1173 -------------
1174 * sk_sp is marked with the [[clang::trivial_abi]] attribute where supported.
1175 * SkMesh API: Allows a user to draw a vertex mesh with custom attributes and
1176 varyings using SkSL. Mesh data (vertex and index) can be created on a
1177 GrDirectContext to avoid re-uploading data per draw. Currently does not
1178 work with SkPicture or any backend but GPU.
1179 * Added SkColorFilters::Blend(const SkColor4f&, sk_sp<SkColorSpace>, SkBlendMode) to
1180 complement the existing SkColorFilters::Blend(SkColor, SkBlendMode) factory.
1181 * The experimental C API was removed.
1182 * Added support for AVIF decoding using libavif.
1183
1184 * * *
1185
1186 Milestone 104
1187 -------------
1188 * New functions SkBitmap::getColor4f and SkPixmap::getColor4f return float colors.
1189 * SkRuntimeEffect takes and returns a const SkData.
1190 * SkRasterHandleAllocator::MakeCanvas now takes optional SkSurfaceProps.
1191 * SkImage::MakeFromPicture and SkImageGenerator::MakeFromPicture now take an optional
1192 SkSurfaceProps to use when rasterizing the picture.
1193 * SkRuntimeEffect::Uniform now stores the uniform name as a string_view, rather than a
1194 SkString. Related methods SkRuntimeEffect::findUniform and SkRuntimeEffectBuilder::uniform
1195 also take std::string_view instead of const char*.
1196 * SkRuntimeEffect::Child now stores the child name as a string_view, rather than a SkString.
1197 Related methods SkRuntimeEffect::findChild and SkRuntimeEffectBuilder::child also take
1198 std::string_view instead of const char*. Also, SkImageFilters::RuntimeShader now takes the
1199 child name(s) as std::string_view instead of const char*.
1200 * skcms.h has been relocated to //modules/skcms/skcms.h (was //include/third_party/skcms/skcms.h)
1201 * New functions SkCanvas::getBaseProps and SkCanvas::getTopProps; SkCanvas::getBaseProps is a
1202 direct replacement for the (now deprecated) SkCanvas::getProps function, while getTopProps is
1203 a variant that returns the SkSurfaceProps that are active in the current layer.
1204 * New function SkEventTracer::newTracingSection(const char* name) enables splitting traces up
1205 into different sections for a selection of backend tracing frameworks (Perfetto, SkDebugf).
1206
1207 * * *
1208
1209 Milestone 103
1210 -------------
1211 * SkSamplingOptions now includes anisotropic filtering. Implemented on GPU only.
1212 * SkBitmap::clear and SkBitmap::clearColor take in SkColor4fs
1213
1214 * * *
1215
1216 Milestone 102
1217 -------------
1218 * Add glGetFloatv and glSamplerParameterf to GrGLInterface.
1219 * GrGLCreateNativeInterface is removed. Use GrGLMakeNativeInterface.
1220 * GrContextOptions::fSharpenMipmappedTextures is removed. MIP LOD is now always
1221 biased on the GPU backend. The CPU backend implementation is modified to match
1222 this behavior.
1223 * Passing SkCanvas::kStrict_SrcRectConstraint disables mipmapping. The old behavior differed
1224 between GPU and CPU. CPU always computed a new set of mipmap based on the subset. GPU restricted
1225 the sampling coordinates to the subset in the base level but upper level pixels that map to
1226 pixels outside the subset in the base level were still used. To get the previous CPU behavior
1227 use SkImage::makeSubset() to make a subset image and draw that. The previous GPU behavior is
1228 similar, though not exactly, equivalent to making a mipmapped image shader from the original
1229 image and applying that to a rectangle.
1230 * Fully disable experimental support for HW tessellation shaders.
1231 GrContextOptions::fEnableExperimentalHardwareTessellation is ignored and behaves as if it is
1232 false. The optimized path renderer no longer requires hardware tessellation at all, and
1233 is automatically enabled when drawing to an SkSurface created with MSAA, or when
1234 GrContextOptions::fInternalMultisampleCount is set to a non-zero value.
1235
1236 * * *
1237
1238 Milestone 101
1239 -------------
1240 * Add maxSurfaceSampleCountForColorType(SkColorType ct) in GrContextThreadSafeProxy
1241 * Enums SkAlphaType and SkColorType are broken out into their own header files in include/core/
1242
1243 * * *
1244
1245 Milestone 100
1246 -------------
1247 * Skia now requires C++17 and the corresponding standard library (or newer).
1248 * Skia on iOS now requires iOS 11 to build; earlier versions of iOS do not support C++17.
1249 * The skstd::string_view and skstd::optional Skia classes have been replaced with the C++17 native
1250 std::string_view and std::optional.
1251 * Added SkSurface::resolveMSAA api to force Skia to resolve MSAA draws. Useful for when
1252 Skia wraps a client's texture as the resolve target.
1253 * All of the `makeShader` functions associated with `SkRuntimeEffect` no longer take an
1254 `isOpaque` parameter. These functions will now make a best effort to determine if your
1255 shader always produces opaque output, and optimize accordingly. If you definitely want your
1256 shader to produce opaque output, do so in the shader's SkSL code. This can be done by adjusting
1257 any `return` statement in your shader with a swizzle: `return color.rgb1;`.
1258 https://review.skia.org/506462
1259 * SkRSXform is now exported to DLL/.so files.
1260 * * *
1261
1262 Milestone 99
1263 ------------
1264 * Added two new intrinsic functions to SkSL for use in runtime effects:
1265 vec3 toLinearSrgb(vec3 color)
1266 vec3 fromLinearSrgb(vec3 color)
1267 These convert RGB color values between the working color space (the color space of the
1268 destination surface) and a known, fixed color space. `toLinearSrgb` converts a color to the
1269 sRGB color gamut, with a linear transfer function. `fromLinearSrgb` converts a color from that
1270 same color space. These are helpful for effects that need to work in a specific color space, or
1271 want to apply effects (like lighting) that work best in a linear color space.
1272 Note that if the destination surface has no color space (color space is `nullptr`), these
1273 intrinsics will do no conversion, and return the input color unchanged.
1274 https://review.skia.org/481416
1275 * Added a new variant of SkImageFilters::RuntimeShader that supports multiple child nodes.
1276 https://review.skia.org/489536
1277 * Add the ability to specify palette overrides in SkFontArguments. Implemented
1278 for the FreeType-backed SkFontMgrs.
1279
1280 * * *
1281
1282 Milestone 98
1283 ------------
1284 * The following functions and methods are not defined in SkSurface when SK_SUPPORT_GPU is 0:
1285 MakeFromBackendTexture, MakeFromBackendRenderTarget, MakeRenderTarget,
1286 getBackendTexture, getBackendRenderTarget, replaceBackendTexture. flush() with parameters
1287 was removed as well. These were all no-ops anyway when just the CPU backend was compiled in
1288 (noting that flush() and flushAndSubmit() are still no-ops on the CPU backend).
1289 * GrBackendSemaphore only includes methods that match the GPU backend that Skia was compiled for.
1290 For example, initVulkan and vkSemaphore are not defined unless the Vulkan backend is compiled
1291 into Skia.
1292 * Surfaces and images are now limited to just under 2GB of total size. Previously, larger images
1293 could be created, but the CPU backend would fail to index them correctly.
1294 * SkCanvas::drawVertices and SkCanvas::drawPatch variants that did not take SkBlendMode are
1295 removed.
1296 * SkImageFilters::RuntimeShader is a new public API that enables adding RuntimeShaderEffects into
1297 image filter graph.
1298 * SkImage::makeRawShader is a new public API that creates "raw" image shaders. makeRawShader
1299 functions like SkImage::makeShader, but for images that contain non-color data. This includes
1300 images encoding things like normals, material properties (eg roughness), heightmaps, or any
1301 other purely mathematical data that happens to be stored in an image. These types of images are
1302 useful with some programmable shaders (ie SkRuntimeEffect).
1303 Raw image shaders work like regular image shaders (including filtering and tiling), with a few
1304 major differences:
1305 - No color space transformation is ever applied (the color space of the image is ignored).
1306 - Images with an alpha type of kUnpremul are not automatically premultiplied.
1307 - Bicubic filtering is not supported. If SkSamplingOptions::useCubic is true, these factories
1308 will return nullptr.
1309 * Removed SkCanvas::markCTM and SkCanvas::findMarkedCTM. These were created to be used with other
1310 features that have since been deleted, so they served no purpose.
1311 * Added limited JPEGXL support.
1312
1313 * * *
1314
1315 Milestone 97
1316 ------------
1317 * Added basic support for vulkan DRM modifiers. All of these are treated as read only textures
1318 internally (versus querying specific modifier support). Clients can either pass a flag to Vulkan
1319 GrBackendFormat to say it uses modifiers or pass the VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT
1320 to a GrBackendTexture via the GrVkImageInfo struct.
1321 * The following functions and methods are not defined in SkImage when SK_SUPPORT_GPU is 0:
1322 MakeTextureFromCompressed, MakeFromTexture, MakeFromCompressedTexture,
1323 MakeCrossContextFromPixmap, MakeFromAdoptedTexture, MakeFromYUVATextures,
1324 MakeFromYUVAPixmaps, MakePromiseTexture, MakePromiseYUVATexture, MakeBackendTextureFromSkImage,
1325 flush, flushAndSubmit, getBackendTexture, makeTextureImage.
1326 These were all no-ops anyway when just the CPU backend was compiled in.
1327
1328 * * *
1329
1330 Milestone 96
1331 ------------
1332 * SkRuntimeEffect no longer clamps the RGB values of an effect's output to the range 0..A.
1333 This makes it easier to use a hierarchy of SkSL shaders where intermediate values do not
1334 represent colors but are, for example, non-color inputs to a lighting model.
1335 http://review.skia.org/452558
1336
1337 * * *
1338
1339 Milestone 95
1340 ------------
1341 * Minimum supported iOS raised from 8 to 11. Skia may build back to iOS 9 but versions older
1342 than 11 are not tested. Community contributions to support versions 9 and 10 of iOS may be
1343 considered, but they may not be complex as they cannot be tested.
1344
1345 * * *
1346
1347 Milestone 94
1348 ------------
1349 * Metal backend has been changed to track command buffer resources manually
1350 rather than using retained resources.
1351 https://review.skia.org/432878
1352
1353 * Added virtual onResetClip() to SkCanvas for Android Framework, to emulate the soon-to-be-removed
1354 expanding clip ops guarded by SK_SUPPORT_DEPRECATED_CLIPOPS.
1355 https://review.skia.org/430897
1356
1357 * Removed SK_SUPPORT_DEPRECATED_CLIPOPS build flag. Clips can only be intersect and difference.
1358 https://review.skia.org/436565
1359
1360 * There is a new syntax for invoking (sampling) child effects in SkSL. Previously, children
1361 (shaders, colorFilters, blenders) were invoked using different overloads of `sample`. That
1362 syntax is deprecated (but still supported). Now, the child behaves like an object, with a method
1363 name `eval`. The arguments to these `eval` methods are the same as the arguments in the old
1364 `sample` intrinsics. For example:
1365 // Old syntax:
1366 sample(shader, xy)
1367 sample(colorFilter, color)
1368 sample(blender, srcColor, dstColor)
1369 // New syntax:
1370 shader.eval(xy)
1371 colorFilter.eval(color)
1372 blender.eval(srcColor, dstColor)
1373 https://review.skia.org/444735
1374
1375 * * *
1376
1377 Milestone 93
1378 ------------
1379 * Removed SkPaint::getHash
1380 https://review.skia.org/419336
1381
1382 * Removed SkShaders::Lerp. It was unused (and easy to replicate with SkRuntimeEffect).
1383 https://review.skia.org/419796
1384
1385 * The default value of GrContextOptions::fReduceOpsTaskSplitting is now enabled.
1386 https://review.skia.org/419836
1387
1388 * Removed SkMatrix44
1389
1390 * * *
1391
1392 Milestone 92
1393 ------------
1394 * Hides SkPathEffect::computeFastBounds() from public API; external subclasses of SkPathEffect
1395 must implement onComputeFastBounds() but can return false to signal it's not computable.
1396 https://review.skia.org/406140
1397
1398 * Add SkM44::RectToRect constructor (SkM44's equivalent to SkMatrix::RectToRect)
1399 https://review.skia.org/402957
1400
1401 * Metal support has been removed for versions of iOS older than 10.0 and MacOS older than 10.14.
1402 https://review.skia.org/401816
1403
1404 * Removed custom attributes from SkVertices and the corresponding `varying` feature from
1405 SkRuntimeEffect.
1406 https://review.skia.org/398222
1407
1408 * Dropped support for mixed samples. Mixed samples is no longer relevant for Ganesh. DMSAA and the
1409 new Ganesh architecture both rely on full MSAA, and any platform where mixed samples is
1410 supported will ultimately not use the old architecture.
1411
1412 * SkRuntimeEffect::Make has been removed. It is replaced by MakeForShader and MakeForColorFilter.
1413 These functions do stricter error checking on the SkSL, to ensure it is valid for a particular
1414 stage of the Skia pipeline.
1415 https://review.skia.org/402156
1416
1417 * * *
1418
1419 Milestone 91
1420 ------------
1421 * The SkSL DSL API has been moved into public headers, although it is still under active
1422 development and isn't quite ready for prime time yet.
1423 https://review.skia.org/378496
1424
1425 * Skia's GPU backend no longer supports NVPR. Our more recent path renderers are more
1426 performant and are not limited to nVidia hardware.
1427
1428 * SkRuntimeEffect now supports uniforms of type int, int2, int3, and int4. Per the OpenGL ES
1429 Shading Language Version 1.00 specification, there are few guarantees about the representation
1430 or range of integral types, and operations that assume integral representation (eg, bitwise),
1431 are not supported.
1432 https://review.skia.org/391856
1433
1434 * SkRuntimeEffect requires that 'shader' variables be declared as 'uniform'. The deprecated
1435 syntax of 'in shader' is no longer supported.
1436 https://review.skia.org/393081
1437
1438 * * *
1439
1440 Milestone 90
1441 ------------
1442 * Renamed use of sk_cf_obj in external Metal types to sk_cfp.
1443 https://review.skia.org/372556
1444
1445 * GrDirectContext::ComputeImageSize() is removed. Use SkImage::textureSize() instead.
1446 https://review.skia.org/368621
1447 https://review.skia.org/369317
1448 https://review.skia.org/371958
1449
1450 * Remove SkImageFilter::MakeMatrixFilter as it was unused and replaced with
1451 SkImageFilters::MatrixTransform.
1452 https://review.skia.org/366318
1453
1454 * Refactored particle system to use a single code string containing both Effect and Particle code.
1455 Uniform APIs are now shared for all program entry points, and no longer prefixed with 'Effect'
1456 or 'Particle'. For example, instead of `SkParticleEffect::effectUniformInfo` and
1457 `SkParticleEffect::particleUniformInfo`, there is just `SkParticleEffect::uniformInfo`.
1458
1459 * Remove SkImageFilter::CropRect from the public API as it's no longer usable. All factories
1460 work with 'SkRect', 'SkIRect', or nullable pointers to 'Sk[I]Rect'.
1461 https://review.skia.org/361496
1462
1463 * Remove deprecated SkImageFilter factory functions and supporting types. All default-provided
1464 SkImageFilters are now only constructed via 'include/effects/SkImageFilters.h'
1465 https://review.skia.org/357285
1466
1467 * Added SkRuntimeEffect::makeImage() to capture the output of an SkRuntimeEffect in an SkImage.
1468 https://review.skia.org/357284
1469
1470 * Updated SkRuntimeEffect::Make() to take an Options struct. It also now returns a Results struct
1471 instead of a tuple.
1472 https://review.skia.org/363785
1473 https://review.skia.org/367060
1474
1475 * Changed SkRuntimeEffect::Varying to have lower-case member names, with no 'f' prefix.
1476 https://review.skia.org/365656
1477
1478 * Changed SkRuntimeEffect::Uniform to have lower-case member names, with no 'f' prefix.
1479 https://review.skia.org/365696
1480
1481 * Deprecate (and ignore) SkAndroidCodec::ExifOrientation
1482 https://review.skia.org/344763
1483
1484 * Fix several minor issues in lighting image filters:
1485 - The spotlight falloff exponent is no longer clamped to [1, 128]. SVG 1.1 requires the specular
1486 lighting effect's exponent (shininess) to be clamped; not the spotlight's falloff. Any such
1487 parameter clamping is the client's responsibility, which makes Skia's lighting effect easily
1488 adaptable to SVG 1.1 (clamp exponent) or SVG 2 (no clamp).
1489 - Fix spotlight incorrectly scaling light within the cone angle.
1490 - Move saturation of RGBA to after multiplying lighting intensity with the lighting color, which
1491 improves rendering when diffuse and specular constants are greater than 1.
1492 https://review.skia.org/355496
1493
1494 * SkDeferredDisplayListRecorder::makePromiseTexture has moved to SkImage::MakePromiseTexture.
1495 New code should use the new entry point – migration CLs will be coming soon.
1496 https://review.skia.org/373716
1497
1498 * * *
1499
1500 Milestone 89
1501 ------------
1502
1503 * Removed SkYUVAIndex and SkYUVASizeInfo. These were no longer used in any
1504 public APIs.
1505 https://review.skia.org/352497
1506
1507 * Numerous changes to SkRuntimeEffect, aligning the capabilities and restrictions with
1508 The OpenGL ES Shading Language 1.00 (aka, the shading language of OpenGL ES2 and WebGL 1.0).
1509 All built-in functions from sections 8.1 through 8.6 implemented & tested on all backends.
1510 Removed types and features that require newer versions of GLSL:
1511 https://review.skia.org/346657 [Non-square matrices]
1512 https://review.skia.org/347046 [uint, short, ushort, byte, ubyte]
1513 https://review.skia.org/349056 [while and do-while loops]
1514 https://review.skia.org/350030 [Bitwise operators and integer remainder]
1515
1516 * Add SkShadowUtils::GetLocalBounds. Generates bounding box for shadows
1517 relative to path.
1518 https://review.skia.org/351922
1519
1520 * Removed SkPerlinNoiseShader::MakeImprovedNoise.
1521 https://review.skia.org/352057
1522
1523 * Removed deprecated version of MakeFromYUVATextures. Use the version
1524 that takes GrYUVABackendTextures instead.
1525 https://review.skia.org/345174
1526
1527 * SkAnimatedImage: Always respect exif orientation
1528 Replace SkPixmapPriv::ShouldSwapWidthHeight with
1529 SkEncodedOriginSwapsWidthHeight.
1530 https://review.skia.org/344762
1531
1532 * Add kDirectionalLight_ShadowFlag support. If enabled, light position represents
1533 a vector pointing towards the light, and light radius is blur radius at elevation 1.
1534 https://review.skia.org/321792
1535
1536 * Support GL_LUMINANCE8_ALPHA8 textures. These can be used with GrBackendTexture APIs
1537 on GrDirectContext and as planes of YUVA images via GrYUVABackendTextures.
1538 https://review.skia.org/344761
1539
1540 * Removed previously deprecated SkImage::MakeFromYUVATexturesCopyToExternal.
1541 https://review.skia.org/342077
1542
1543 * Add versions of GrDirectContext::createBackendTexture and updateBackendTexture
1544 that take a GrSurfaceOrigin. The previous versions are deprecated.
1545 https://review.skia.org/341005
1546
1547 * Remove support for deprecated kDontClipToLayer_SaveLayerFlag in SkCanvas::SaveLayerRec
1548 https://review.skia.org/339988
1549
1550 * Expose more info in SkCodec::FrameInfo
1551 https://review.skia.org/339857
1552
1553 * Added dither control to the SkImageFilters::Shader factory.
1554 https://review.skia.org/338156
1555
1556 * Add MTLBinaryArchive parameter to GrMtlBackendContext. This allows
1557 Skia to cache PipelineStates in the given archive for faster
1558 shader compiles on future runs. The client must handle loading and
1559 saving of the archive.
1560 https://review.skia.org/333758
1561
1562 * Deprecated enum SkYUVAInfo::PlanarConfig has been removed.
1563 https://review.skia.org/334161
1564
1565 * Deprecated SkImage factories have been removed from
1566 SkDeferredDisplayListRecorder.
1567
1568 * The following YUV image factories have been removed:
1569 SkImage::MakeFromYUVTexturesCopyWithExternalBackend
1570 SkImage::MakeFromNV12TexturesCopyWithExternalBackend
1571 Replacement pattern outlined below.
1572 1) Make image using MakeFromYUVATextures
1573 2) Make a SkSurface around result texture using SkSurface::MakeFromBackendTexture
1574 3) surface->getCanvas()->drawImage(image, 0, 0);
1575 4) surface->flushAndSubmit()
1576 5) Optional: SkImage::MakeFromBackendTexture() to use as SkImage.
1577 https://review.skia.org/334596
1578
1579 * Added a new interface for GrDirectContext creation in Metal, using
1580 a new struct called GrMtlBackendContext. The previous interface taking
1581 a MTLDevice and MTLCommandQueue is deprecated.
1582 https://review.skia.org/334426
1583
1584 * SkCanvas::flush has been deprecated.
1585
1586 * * *
1587
1588 Milestone 88
1589 ------------
1590
1591 * SkYUVAInfo now has separate enums for division of channels among planes and
1592 the subsampling. The previous combined enum, PlanarConfig, is deprecated.
1593 https://review.skia.org/334102
1594
1595 * Simplified SkDeferredDisplayListRecorder promise image API. Removed "release"
1596 callback and renamed "done" callback to "release". The new "release" proc can
1597 be null. Added a new SkYUVAInfo-based factory for YUVA promise texture images
1598 and deprecated the old SkYUVAIndex-based one.
1599 https://review.skia.org/331836
1600 https://review.skia.org/333519
1601
1602 * Limit the types and intrinsics supported in SkRuntimeEffect to GLSL ES 1.00
1603 https://review.skia.org/332597
1604
1605 * Add AVIF support to SkHeifCodec.
1606
1607 * Add support for creating SkSurfaceCharacterizations directly for use by a
1608 GrVkSecondaryCBDrawContext.
1609 https://review.skia.org/331877
1610
1611 * Removed SkSurfaceProps::kLegacyFontHost_InitType, SkFontLCDConfig, and related code.
1612 The default pixel geometry for SkSurfaceProps is now kUnknown instead of kRGB_H.
1613 The removal was guarded by the SK_LEGACY_SURFACE_PROPS build flag which was later removed.
1614 https://review.skia.org/322490
1615 https://review.skia.org/329364
1616
1617 * Legacy 8-bit YUV interface removed from SkImageGenerator. Use more flexible SkYUVAPixmaps-
1618 based interface instead.
1619 https://review.skia.org/327917
1620
1621 * New variant of SkImage::MakeFromYUVATextures. Takes a new type GrYUVATextures
1622 which wraps an SkYUVAInfo and compatible set of GrBackendTextures. The provides
1623 a more complete and structured specification of the planar configuration. Previous
1624 version is deprecated.
1625 Already deprecated MakeFromYUVATexturesCopyToExternal added to replace other deprecated
1626 APIs. It's not recommended that clients use this and instead use the pattern described
1627 in the API comment.
1628 https://review.skia.org/317762
1629 https://review.skia.org/329956
1630
1631 * Add field to GrContextOptions to disable mipmap support even if the backend
1632 supports it.
1633
1634 * SkTPin() removed from public API.
1635
1636 * Add new SkImageFilters::Blend factory function, in place of the now deprecated
1637 SkImageFilters::Xfermode factory function. Behavior is identical, but name better matches
1638 conventions in SkShader and SkColorFilter.
1639 https://review.skia.org/324623
1640
1641 * SkImageFilters::Foo() factory functions now accept SkIRect, SkRect, and optional SkIRect* or
1642 SkRect*, instead of previously just the optional SkIRect*. Internally, the crop rects are stored
1643 as floats to allow for fractional crops to be defined in the local coordinate system (before
1644 transformation by the canvas matrix).
1645 https://review.skia.org/324622
1646
1647 * Add new SkImageFilters::Shader factory and deprecate SkImageFilters::Paint factory. All
1648 supported/valid Paint() filters can be represented more cleanly as a Shader image filter.
1649 https://review.skia.org/323680
1650
1651 * GrContext has been replaced by two separate classes: GrDirectContext which is
1652 the traditional notion of GrContext, and GrRecordingContext which is a context
1653 that is recording an SkDeferredDisplayList and therefore has reduced functionality.
1654 Unless you are using SkDeferredDisplayList, migrate directly to GrDirectContext in
1655 all cases.
1656
1657 * CPU sync bool added to SkSurface::flushAndSubmit() and GrContext::flushAndSubmit()
1658
1659 * Removed legacy variant of SkImage::MakeFromYUVAPixmaps. Use the version that
1660 takes SkYUVAPixmaps instead. It has a more structured description of the
1661 planar configuration.
1662 https://review.skia.org/322480
1663
1664 * Some SkImage YUV image factories have been removed. Replacement patterns
1665 outlined below.
1666 SkImage::MakeFromYUVATexturesCopy
1667 1) Make SkImage from YUVA planes using SkImage::MakeFromYUVATextures
1668 2) Use Skia to allocate a surface using SkSurface::MakeRenderTarget
1669 3) surface->getCanvas()->drawImage(image, 0, 0);
1670 4) surface->makeImageSnapShot() produces RGBA image.
1671 SkImage::MakeFromYUVATexturesCopyWithExternalBackend
1672 1) Make image using MakeFromYUVATextures
1673 2) Make a SkSurface around result texture using SkSurface::MakeFromBackendTexture
1674 3) surface->getCanvas()->drawImage(image, 0, 0);
1675 4) surface->flushAndSubmit()
1676 5) Optional: SkImage::MakeFromBackendTexture() to use as SkImage.
1677 SkImage::MakeFromNV12TexturesCopy
1678 Same as SkImage::MakeFromYUVATexturesCopy
1679 https://review.skia.org/321537
1680
1681 * GrBackendRenderTargets which are created with a stencilBits param, now require
1682 the stencilBits to be 0, 8, or 16.
1683 https://review.skia.org/321545
1684
1685 * * *
1686
1687 Milestone 87
1688 ------------
1689
1690 * GrVkImageInfo now has a field for sample count. GrBackendRenderTarget constructor
1691 that took both a GrVkImageInfo and separate sample count is deprecated. Use the
1692 version without sample count instead. Similarly, GrD3DTextureResourceInfo now
1693 has a sample count field and GrBackendRenderTarget no longer takes a separate
1694 sample count for Direct3D. The sample count for GrBackendRenderTarget is now
1695 directly queried from MtlTexture rather than passed separately. The version that
1696 takes a separate sample count is deprecated and the parameter is ignored.
1697 https://review.skia.org/320262
1698 https://review.skia.org/320757
1699 https://review.skia.org/320956
1700
1701 * Added deprecation warning for Metal support on MacOS 10.13, iOS 8.3, and older.
1702 https://review.skia.org/320260
1703
1704 * GrVkImageInfo now has a field for sample count. GrBackendRenderTarget constructor
1705 that took both a GrVkImageInfo and separate sample count is deprecated. Use the
1706 version without sample count instead.
1707
1708 * Update SkClipOp::kMax_EnumValue to include only intersect and difference when
1709 SK_SUPPORT_DEPRECATED_CLIPOPS is not defined.
1710 https://review.skia.org/320064
1711
1712 * Add support for external allocator for Direct3D 12 backend.
1713 Defines base classes for an allocation associated with a backend texture and a
1714 a memory allocator to create such allocations.
1715 Adds memory allocator to backend context.
1716 https://review.skia.org/317243
1717
1718 * Add new optional parameter to GrContext::setBackend[Texture/RenderTarget]State which can
1719 be used to return the previous GrBackendSurfaceMutableState before the requested change.
1720 https://review.skia.org/318698
1721
1722 * New optimized clip stack for GPU backends. Enabled by default but old behavior based on
1723 SkClipStack can be restored by defining SK_DISABLE_NEW_GR_CLIP_STACK when building. It is not
1724 compatible with SK_SUPPORT_DEPRECATED_CLIPOPS and we are targeting the removal of support for
1725 the deprecated, expanding clip ops.
1726 https://review.skia.org/317209
1727
1728 * GPU backends now properly honor the SkFilterQuality when calling drawAtlas.
1729 https://review.skia.org/313081
1730
1731 * The signature of 'main' used with SkRuntimeEffect SkSL has changed. There is no longer an
1732 'inout half4 color' parameter, effects must return their color instead.
1733 Valid signatures are now 'half4 main()' or 'half4 main(float2 coord)'.
1734 https://review.skia.org/310756
1735
1736 * New YUVA planar specifications for SkCodec, SkImageGenerator, SkImage::MakeFromYUVAPixmaps.
1737 Chroma subsampling is specified in more structured way. SkCodec and SkImageGenerator
1738 don't assume 3 planes with 8bit planar values. Old APIs are deprecated.
1739 https://review.skia.org/309658
1740 https://review.skia.org/312886
1741 https://review.skia.org/314276
1742 https://review.skia.org/316837
1743 https://review.skia.org/317097
1744
1745 * Added VkImageUsageFlags to GrVkImageInfo struct.
1746
1747 * * *
1748
1749 Milestone 86
1750 ------------
1751
1752 * Remove support for 'in' variables from SkRuntimeEffect. API now exclusively refers to inputs
1753 as 'uniforms'.
1754 https://review.skia.org/309050
1755
1756 * Add SkImageGeneratorNDK and SkEncodeImageWithNDK for using Android's NDK APIs to decode and
1757 encode.
1758 https://review.skia.org/308185
1759 https://review.skia.org/308800
1760
1761 * SkImage:remove DecodeToRaster, DecodeToTexture
1762 https://review.skia.org/306331
1763
1764 * Add GrContext api to update compressed backend textures.
1765 https://review.skia.org/302265
1766
1767 * Rename GrMipMapped to GrMipmapped for consistency with new APIs.
1768 Also rename GrBackendTexture::hasMipMaps() to GrBackendTexture::hasMipmaps()
1769 https://review.skia.org/304576
1770 https://review.skia.org/304598
1771
1772 * Add option for clients to own semaphores after wait calls.
1773 https://review.skia.org/301216
1774
1775 * Remove obsolete GrFlushFlags.
1776 https://review.skia.org/298818
1777
1778 * Adds default flush() calls to SkSurface, SkImage, and GrContext. These calls do
1779 a basic flush without a submit. If you haven't updated Skia in a couple releases
1780 and still have flush() calls in your code that you expect to do a flush and
1781 submit, you should update all those to the previously added flushAndSubmit() calls
1782 instead.
1783 https://review.skia.org/299141
1784
1785 * Enable BackendSemaphores for the Direct3D backend.
1786 https://review.skia.org/298752
1787
1788 * Added SkImage:asyncRescaleAndReadPixels and SkImage::asyncRescaleAndReadPixelsYUV420
1789 https://review.skia.org/299281
1790
1791 * Ganesh is moving towards replacing GrContext with the GrDirectContext/GrRecordingContext
1792 pair. GrDirectContexts have _direct_ access to the GPU and are very similar to the old
1793 GrContext. GrRecordingContexts are less powerful contexts that lack GPU access but provided
1794 context-like utilities during DDL recording. SkSurfaces and SkCanvas will now only return
1795 GrRecordingContexts. Clients requiring context features that need GPU access can then
1796 check (via GrRecordingContext::asDirectContext) if the available recording context is actually
1797 a direct context.
1798
1799 * Replace #defined values in SkString with equivalent constexprs.
1800 http://review.skia.org/306160
1801
1802 * * *
1803
1804 Milestone 85
1805 ------------
1806
1807 * Added GrContext::oomed() which reports whether Skia has seen a GL_OUT_OF_MEMORY
1808 error from Open GL [ES] or VK_ERROR_OUT_OF_*_MEMORY from Vulkan.
1809 https://review.skia.org/298216
1810
1811 * Add option on SkSurface::flush to pass in a GrBackendSurfaceMutableState which
1812 we will set the gpu backend surface to be at the end of the flush.
1813 https://review.skia.org/295567
1814
1815 * Add GrContext function to set mutable state on a backend surface. Currently this
1816 is only used for setting vulkan VkImage layout and queue family.
1817 https://review.skia.org/293844
1818
1819 * SkSurface factores that take GrBackendTexture or GrBackendRenderTarget now always
1820 call the release proc (if provided) on failure. SkSurface::replaceBackendTexture
1821 also calls the release proc on failure.
1822 https://review.skia.org/293762
1823
1824 * SkSurface::asyncRescaleAndReadPixels and SkSurfaceasyncRescaleAndReadPixelsYUV420
1825 now require explicit GrContext submit to guarantee finite time before callback
1826 is invoked.
1827 https://review.skia.org/292840
1828
1829 * Add VkSharingMode field to GrVkImageInfo.
1830 https://review.skia.org/293559
1831
1832 * Move SkBitmapRegionDecoder into client_utils/android.
1833
1834 * SkCanvas.clear and SkCanvas.drawColor now accept SkColor4f in addition to SkColor.
1835
1836 * Remove SkSurface::MakeFromBackendTextureAsRenderTarget.
1837 This factory existed to work around issues with GL_TEXTURE_RECTANGLE that existed
1838 in Chrome's command buffer. Those issues have since been resolved. Use
1839 SkSurface::MakeFromBackendTexutre or SkSurface::MakeFromBackendRenderTarget instead.
1840 https://review.skia.org/292719
1841
1842 * Adds submittedProc callback to GrFlushInfo which will be called when the work
1843 from the flush call is submitted to the GPU. This is specifically useful for knowing
1844 when semahpores sent with the flush have been submitted and can be waiting on.
1845 https://review.skia.org/291078
1846
1847 * GrContext submit is now required to be called in order to send GPU work to the
1848 actual GPU. The flush calls simply produces 3D API specific objects that are ready
1849 to be submitted (e.g. command buffers). For the GL backend, the flush will still
1850 send commands to the driver. However, clients should still assume the must call
1851 submit which is where any glFlush that is need for sync objects will be called. There,
1852 are flushAndSubmit() functions of GrContext, SkSurface, and SkImage that will act
1853 like the previous flush() functions. This will flush the work and immediately call
1854 submit.
1855 https://review.skia.org/289033
1856
1857 * Remove deprecated version of flush calls on GrContext and SkSurface.
1858 https://review.skia.org/2290540
1859
1860 * SkCanvas::drawVertices and drawPatch now support mapping an SkShader without explicit
1861 texture coordinates. If they're not supplied, the local positions (vertex position or
1862 patch cubic positions) will be directly used to sample the SkShader.
1863 https://review.skia.org/290130
1864
1865 * * *
1866
1867 Milestone 84
1868 ------------
1869
1870 * Add api on GrContext, updateBackendTexture that will upload new data to a
1871 GrBackendTexture.
1872 https://review.skia.org/288909
1873
1874 * Add GrContext getter to SkSurface.
1875 https://review.skia.org/289479
1876
1877 * Deprecate GrContext and SkSurface flush() call and replace ith with flushAndSubmit().
1878 This only effects the default flush call that takes no parameters.
1879 https://review.skia.org/289478
1880
1881 * GrContext::createBackendTexture functions that initialize the texture no longer
1882 guarantee that all the data has been uploaded and the gpu is done with the texture.
1883 Instead the client can assume the upload work has been submitted to the gpu and they
1884 must wait for that work to finish before deleting the texture. This can be done via
1885 their own synchronization or by passing in a finish proc into the create calls which
1886 will be called when it is safe to delete the texture (at least in terms of work
1887 done during the create).
1888 https://review.skia.org/286517
1889
1890 * Remove unused SkMaskFilter helpers: compbine, compose
1891 Note: shadermaskfilter will likely be removed next (clipShader should serve)
1892
1893 * Add back SkCanvas::kPreserveLCDText_SaveLayerFlag to indicate that saveLayer()
1894 will preserve LCD-text. All text in the layer must be drawn on opaque background
1895 to ensure correct rendering.
1896
1897 * Add the new directory client_utils/ for code that is specific to a single client and
1898 should be considered separate from Skia proper. Move SkFrontBufferedStream into the
1899 subdir android/.
1900
1901 * SkBitmap and SkPixmap's erase() methods now treat their color parameters
1902 consistently with the rest of Skia, with all SkColors and any untagged
1903 SkColor4fs interpreted as sRGB, not as a color in the bitmap's color space.
1904 SkPixmap::erase(SkColor4f) now takes an SkColorSpace, so you can pass
1905 pixmap.colorSpace() if you want the old behavior.
1906
1907 * SkCamera.h and SkMatrix44.h are DEPRECATED.
1908 Use SkM44 if you want to have 3d transformations.
1909
1910 * Changed Dilate and Erode image filters to take SkScalar for radius instead of int. While
1911 the image filters themselves are defined in terms of discrete pixels, the radii provided by
1912 the user are mapped through the CTM so taking ints forced over discretization. After mapping
1913 through the CTM the radii are now rounded to pixels.
1914 https://review.skia.org/281731
1915 https://review.skia.org/282636
1916
1917 * Updated the contract of GrContext and SkSurface flush calls in regards to semaphores. Made it
1918 clear that the caller is responsible for deleting any initialized semaphores after the flush
1919 call regardless if we were able to submit them or not. Also, allows skia to only submit a
1920 subset of the requested semaphores if we failed to create some.
1921 https://review.skia.org/282265
1922
1923
1924 * SkCanvas::drawVertices will now always fill the triangles specified by the vertices. Previously,
1925 vertices with no colors and no (texture coordinates or shader) would be drawn in wireframe.
1926 https://review.skia.org/282043
1927
1928 * * *
1929
1930 Milestone 83
1931 ------------
1932
1933 * Remove localmatrix option from SkShaders::[Blend, Lerp]
1934
1935 * Fill out Direct3D parameters for backend textures and backend rendertargets.
1936
1937 * SkImage::makeTextureImage() takes an optional SkBudgeted param
1938
1939 * Made non-GL builds of GPU backend more robust.
1940 https://review.skia.org/277456
1941
1942 * MoltenVK support removed. Use Metal backend instead.
1943 https://review.skia.org/277612
1944
1945 * * *
1946
1947 Milestone 82
1948 ------------
1949
1950 * Removed drawBitmap and related functions from SkDevice; all public drawBitmap functions on
1951 SkCanvas automatically wrap the bitmap in an SkImage and call the equivalent drawImage function.
1952 Drawing mutable SkBitmaps will now incur a mandatory copy. Switch to using SkImage directly or
1953 mark the bitmap as immutable before drawing.
1954
1955 * Removed "volatile" flag from SkVertices. All SkVertices objects are assumed to be
1956 volatile (the previous default behavior).
1957
1958 * Removed exotic legacy bitmap functions from SkCanvas (drawBitmapLattic, drawBitmapNine); the
1959 exotic SkImage functions still exist.
1960
1961 * Make it possible to selectively turn on/off individual encoders/decoders,
1962 using skia_use_(libpng/libjpeg_turbo/libwebp)(decode/encode).
1963
1964 * Removed GrGpuResource, GrSurface, and GrTexture from public api. These were not
1965 meant to be public, and we now can move them into src. Also removed getTexture
1966 function from SkImage.h
1967
1968 * Removed Bones from SkVertices
1969
1970 * Added a field to GrContextOptions that controls whether GL errors are checked after
1971 GL calls that allocate textures, etc. It also controls checking for shader compile
1972 success, and program linking success.
1973
1974 * Made SkDeferredDisplayList.h officially part of the public API (i.e., moved it to
1975 include/core). Also added a ProgramIterator to SkDeferredDisplayList which allows
1976 clients to pre-compile some of the shaders the DDL requires.
1977
1978 * Added two new helper methods to SkSurfaceCharacterization: createBackendFormat and
1979 createFBO0. These make it easier for clients to create new surface characterizations that
1980 differ only a little from an existing surface characterization.
1981
1982 * Removed SkTMax and SkTMin.
1983 * Removed SkTClamp and SkClampMax.
1984 * Removed SkScalarClampMax and SkScalarPin.
1985 * Removed SkMax32 and SkMin32.
1986 * Removed SkMaxScalar and SkMinScalar.
1987
1988 * SkColorSetA now warns if the result is unused.
1989
1990 * An SkImageInfo with a null SkColorSpace passed to SkCodec::getPixels() and
1991 related calls is treated as a request to do no color correction at decode
1992 time.
1993
1994 * Add new APIs to add attributes to document structure node when
1995 creating a tagged PDF.
1996
1997 * Remove CGFontRef parameter from SkCreateTypefaceFromCTFont.
1998 Use CTFontManagerCreateFontDescriptorFromData instead of
1999 CGFontCreateWithDataProvider to create CTFonts to avoid memory use issues.
2000
2001 * Added SkCodec:: and SkAndroidCodec::getICCProfile for reporting the native
2002 ICC profile of an encoded image, even if it doesn't map to an SkColorSpace.
2003
2004 * SkSurface::ReplaceBackendTexture takes ContentChangeMode as a parameter,
2005 which allow callers to specify whether retain a copy of the current content.
2006
2007 * Enforce the existing documentation in SkCanvas::saveLayer that it ignores
2008 any mask filter on the restore SkPaint. The 'coverage' of a layer is
2009 ill-defined, and masking should be handled by pre-clipping or using the
2010 auxiliary clip mask image of the SaveLayerRec.
2011
2012 * * *
2013
2014 Milestone 81
2015 ------------
2016
2017 * Added support for GL_NV_fence extension.
2018
2019 * Make SkImageInfo::validRowBytes require rowBytes to be pixel aligned. This
2020 makes SkBitmap match the behavior of raster SkSurfaces in rejecting
2021 non-aligned rowBytes.
2022
2023 * Added an SkImage::MakeRasterFromCompressed entry point. Also updated
2024 SkImage::MakeFromCompressed to decompress the compressed image data if
2025 the GPU doesn't support the specified compression type (i.e., macOS Metal
2026 doesn't support BC1_RGB8_UNORM so such compressed images will always be
2027 decompressed on that platform).
2028
2029 * Added support for BC1 RGBA compressed textures
2030
2031 * Added CachingHint to SkImage::makeRasterImage
2032
2033 * Added SkAnimatedImage::getCurrentFrame()
2034
2035 * Add support to create an SkSurface from an MTKView, with delayed acquisition of
2036 the MTLDrawable.
2037 Entry point: SkSurface::MakeFromMTKView
2038
2039 * Removed SkIRect::EmptyIRect(). Use SkIRect::MakeEmpty() instead.
2040 https://review.skia.org/262382/
2041
2042 * Moved SkRuntimeEffect to public API. This is the new (experimental) interface to custom SkSL
2043 shaders and color filters.
2044
2045 * Added BC1 compressed format support. Metal and Vulkan seem to only support the BC
2046 formats on desktop machines.
2047
2048 * Added compressed format support for backend texture creation API.
2049 This adds the following new entry points:
2050 GrContext::compressedBackendFormat
2051 GrContext::createCompressedBackendTexture
2052 The latter method comes in variants that allow color-initialized and
2053 compressed texture data initialized.
2054
2055 * Added SkMatrix::MakeTrans(SkIVector)
2056 https://review.skia.org/259804
2057
2058 * * *
2059
2060 Milestone 80
2061 ------------
2062
2063 * For Vulkan backend, we now require that the VkDevice, Queue, and Instance outlive
2064 either the destruction or abandoning of the GrContext. Additionally, all
2065 GrBackendTextures created via GrContext::createBackendTexture calls must be deleted
2066 before destroying or abandoning the GrContext.
2067 https://review.skia.org/257921
2068
2069 * Removed SkSize& SkSize::operator=(const SkISize&)
2070 https://review.skia.org/257880
2071
2072 * SkISize width() and height() now constexpr
2073 https://review.skia.org/257680
2074
2075 * Added SkMatrix::MakeTrans(SkVector) and SkRect::makeOffset(SkVector).
2076 https://review.skia.org/255782
2077
2078 * Added SkImageInfo::MakeA8(SkISize) and added optional color space parameter to
2079 SkImageInfo::MakeN32Premul(SkISize).
2080
2081 * Added dimensions() and getFrameCount() to SkAnimatedImage
2082 https://review.skia.org/253542
2083
2084 * Removed SkMatrix44 version of toXYZD50 from SkColorSpace. Switched to skcms types in
2085 transferFn, invTrasnferFn, and gamutTransformTo functions.
2086 https://review.skia.org/252596
2087
2088 * Removed rotation and YUV support from SkColorMatrix
2089 https://review.skia.org/252188
2090
2091 * Added kBT2020_SkYUVColorSpace. This is BT.2020's YCbCr conversion (non-constant-luminance).
2092 https://review.skia.org/252160
2093
2094 * Remove old async read pixels APIs
2095 https://review.skia.org/251198
2096
2097 * Expose SkBlendModeCoeff and SkBlendMode_AsCoeff for Porter-Duff blend modes.
2098 https://review.skia.org/252600
2099
2100 * * *
2101
2102 Milestone 79
2103 ------------
2104
2105 * SkTextBlob::Iter to discover the glyph indices and typefaces in each run
2106 https://skia-review.googlesource.com/246296
2107
2108 * Added support for PQ and HLG transfer functions to SkColorSpace.
2109 https://skia-review.googlesource.com/c/skia/+/249000
2110
2111 * Added new api on GrContext ComputeImageSize. This replaces the hold static helper
2112 ComputeTextureSize.
2113 https://skia-review.googlesource.com/c/skia/+/247337
2114
2115 * New versions of SkSurface async-rescale-and read APIs that allow client to extend
2116 the lifetime of the result data. Old versions are deprecated.
2117 https://review.skia.org/245457
2118
2119 * Add SkColorInfo. It's dimensionless SkImageInfo.
2120 https://review.skia.org/245261
2121
2122 * Added SkPixmap-based createBackendTexture method to GrContext. This allows clients to create
2123 backend resources (initialized with texture data) that Skia/Ganesh doesn't know about/track.
2124 https://review.skia.org/244676
2125
2126 * Add explicit src and dst colorspace parameters to SkColorFilter::filterColor4f()
2127 https://review.skia.org/244882
2128
2129 * Remove Vulkan/Metal float32 RGBA texture support
2130 https://review.skia.org/244881
2131
2132 * Add SkSurface::MakeFromCAMetalLayer
2133 https://review.skia.org/242563
2134
2135 * Added kAlpha_F16_SkColorType, kRG_F16_SkColorType and kRGBA_16161616_SkColorType.
2136 This is intended to help support HDR YUV uses case (e.g., P010 and P016). As such,
2137 the addition is focused on allowing creation of SkPixmaps and SkImages and not
2138 SkSurfaces (i.e., who wants to render to render to these?)
2139 https://review.skia.org/241357
2140
2141 * Start to move nested SkPath types (e.g. Direction, Verb) up to root level in SkPathTypes.h
2142 https://review.skia.org/241079
2143
2144 * Remove isRectContour and ksNestedFillRects from public
2145 https://review.skia.org/241078
2146
2147 * Added kRG_88_SkColorType. This is intended to help support YUV uses case (e.g., NV12).
2148 As such, the addition is focused on allowing creation of SkPixmaps and SkImages and not
2149 SkSurfaces (i.e., who wants to render to RG?)
2150 https://review.skia.org/239930
2151 https://review.skia.org/235797
2152
2153 * Make the size of program/pipeline caches configurable via
2154 GrContextOptions::fRuntimeProgramCacheSize
2155 https://review.skia.org/239756
2156
2157 * Added kAlpha_16_SkColorType and kRG_1616_SkColorType. This is intended to help support HDR YUV
2158 uses case (e.g., P010 and P016). As such, the addition is focused on allowing creation of
2159 SkPixmaps and SkImages and not SkSurfaces (i.e., who wants to render to render to these?)
2160 https://review.skia.org/239930
2161
2162 * Add GrContext::precompileShader to allow up-front compilation of previously-cached shaders.
2163 https://review.skia.org/239438
2164
2165 * * *
2166
2167 Milestone 78
2168 ------------
2169
2170 * SkDrawLooper is no longer supported in SkPaint or SkCanvas.
2171 https://review.skia.org/230579
2172 https://review.skia.org/231736
2173
2174 * SkPath::Iter::next() now ignores its consumDegenerates bools. Those will so
2175 go away entirely
2176 https://review.skia.org/235104
2177
2178 * SkImage: new factories: DecodeToRaster, DecodeToTexture
2179 https://review.skia.org/234476
2180
2181 * SkImageFilter API refactor started:
2182 - Provide new factory API in include/effects/SkImageFilters
2183 - Consolidated enum types to use SkTileMode and SkColorChannel
2184 - Hide filter implementation classes
2185 - Hide previously public functions on SkImageFilter that were intended for
2186 internal use only
2187 https://review.skia.org/230198
2188 https://review.skia.org/230876
2189 https://review.skia.org/231256
2190
2191 * SkColorFilters::HSLAMatrix - new matrix color filter operating in HSLA
2192 space.
2193 https://review.skia.org/231736
2194
2195 * Modify GrBackendFormat getters to not return internal pointers. Use an enum
2196 class for GL formats.
2197 https://review.skia.org/233160
2198
2199 * Expose GrContext::dump() when SK_ENABLE_DUMP_GPU is defined.
2200 https://review.skia.org/233557
2201
2202 * Vulkan backend now supports YCbCr sampler for I420 Vulkan images that are
2203 not backed by external images.
2204 https://review.skia.org/233776
2205
2206 * Add SkCodec::SelectionPolicy for distinguishing between decoding a still
2207 image or an image sequence for a container format that has both (e.g. HEIF).
2208 https://review.skia.org/232839
2209
2210 * SkImage::makeTextureImage and SkImage::MakeCrossContextFromPixmap no longer
2211 take an SkColorSpace parameter. It was unused.
2212 https://review.skia.org/234579
2213 https://review.skia.org/234912
2214
2215 * SkImage::reinterpretColorSpace - to reinterpret image contents in a new
2216 color space.
2217 https://review.skia.org/234328
2218
2219 * Removed SkImage::MakeCrossContextFromEncoded.
2220 https://review.skia.org/234912
2221
2222 * Add Metal support for GrFence, GrSemaphore, and GrBackendSemaphore
2223 https://review.skia.org/233416
2224
2225 * SkMallocPixelRef: remove MakeDirect and MakeWithProc from API.
2226 https://review.skia.org/234660
2227
2228 * Remove 4-parameter variant of SkRect::join() and intersect(), and
2229 noemptycheck variants of intersect().
2230 https://review.skia.org/235832
2231 https://review.skia.org/237142
2232
2233 * Remove unused sk_sp comparison operators.
2234 https://review.skia.org/236942
2235
2236 * Add SkColor4f variant to experimental_DrawEdgeAAQuad for SkiaRenderer.
2237 https://review.skia.org/237492
2238
2239 * Deprecated maxCount resource cache limit for Ganesh.
2240 This hasn't been relevant for a long time.
2241
2242 * Changed GrContextOptions' fDisallowGLSLBinaryCaching to fShaderCacheStrategy,
2243 and allow caching SkSL.
2244 https://review.skia.org/238856
2245
2246 * Use GL_QCOM_TILED_RENDERING to explicitly discard stencil
2247
2248 * Added RELEASE_NOTES.txt file
2249 https://review.skia.org/229760
2250
2251 * Implemented internal support for OpenGL tessellation.