blob: c34c846a241560b46ac839c352f6e58a6ed7246c [file] [log] [blame]
Heather Miller118a4072019-07-25 11:33:30 -04001Skia Graphics Release Notes
2
3This file includes a list of high level updates for each milestone release.
4
Hal Canary9e514a12019-10-01 15:15:36 -04005* * *
Mike Reed430470d2019-09-12 17:09:12 -04006
Heather Miller6c138712020-03-16 10:50:49 -04007Milestone 83
Heather Millerd5153bb2019-10-17 00:03:36 -04008
Heather Millercc13acb2019-10-22 15:45:45 -04009<Insert new notes here- top is most recent.>
Brian Salomonbc074a62020-03-18 10:06:13 -040010 * SkImage::makeTextureImage() takes an optional SkBudgeted param
Michael Ludwigb0cee9b2020-03-12 10:52:15 -040011
Heather Miller6c138712020-03-16 10:50:49 -040012 *
13
14* * *
15
16Milestone 82
17
Michael Ludwigb0cee9b2020-03-12 10:52:15 -040018 * Removed drawBitmap and related functions from SkDevice; all public drawBitmap functions on
19 SkCanvas automatically wrap the bitmap in an SkImage and call the equivalent drawImage function.
20 Drawing mutable SkBitmaps will now incur a mandatory copy. Switch to using SkImage directly or
21 mark the bitmap as immutable before drawing.
22
Brian Osmandafbf122020-03-11 12:26:56 -040023 * Removed "volatile" flag from SkVertices. All SkVertices objects are assumed to be
24 volatile (the previous default behavior).
25
Michael Ludwigb0cee9b2020-03-12 10:52:15 -040026 * Removed exotic legacy bitmap functions from SkCanvas (drawBitmapLattic, drawBitmapNine); the
27 exotic SkImage functions still exist.
28
Leon Scroggins IIIa77f30c2020-03-09 14:23:30 -040029 * Make it possible to selectively turn on/off individual encoders/decoders,
30 using skia_use_(libpng/libjpeg_turbo/libwebp)(decode/encode).
31
Greg Daniel456f9b52020-03-05 19:14:18 +000032 * Removed GrGpuResource, GrSurface, and GrTexture from public api. These were not
Greg Daniel7c902112020-03-06 13:07:10 -050033 meant to be public, and we now can move them into src. Also removed getTexture
34 function from SkImage.h
Greg Daniel456f9b52020-03-05 19:14:18 +000035
Mike Reed5caf9352020-03-02 14:57:09 -050036 * Removed Bones from SkVertices
37
Brian Salomond8575452020-02-25 12:13:29 -050038 * Added a field to GrContextOptions that controls whether GL errors are checked after
39 GL calls that allocate textures, etc. It also controls checking for shader compile
40 success, and program linking success.
41
Robert Phillips1cec4d52020-02-24 08:38:34 -050042 * Made SkDeferredDisplayList.h officially part of the public API (i.e., moved it to
43 include/core). Also added a ProgramIterator to SkDeferredDisplayList which allows
44 clients to pre-compile some of the shaders the DDL requires.
45
Robert Phillipsb3c061a2020-02-13 13:24:47 -050046 * Added two new helper methods to SkSurfaceCharacterization: createBackendFormat and
47 createFBO0. These make it easier for clients to create new surface characterizations that
48 differ only a little from an existing surface characterization.
49
Brian Osman788b9162020-02-07 10:36:46 -050050 * Removed SkTMax and SkTMin.
Brian Osman5f3d9f72020-02-06 14:51:46 -050051 * Removed SkTClamp and SkClampMax.
Brian Osmanaba642c2020-02-06 12:52:25 -050052 * Removed SkScalarClampMax and SkScalarPin.
Brian Osman7f364052020-02-06 11:25:43 -050053 * Removed SkMax32 and SkMin32.
Brian Osman116b33e2020-02-05 13:34:09 -050054 * Removed SkMaxScalar and SkMinScalar.
55
Allen Bauera428c7b2020-02-04 14:27:22 -080056 * SkColorSetA now warns if the result is unused.
57
Leon Scroggins III196f3192020-02-03 12:39:54 -050058 * An SkImageInfo with a null SkColorSpace passed to SkCodec::getPixels() and
59 related calls is treated as a request to do no color correction at decode
60 time.
Dominik Röttschesc9b06ca2020-01-31 18:13:37 +020061
Dominic Mazzoni7dfb46e2020-02-19 10:59:29 -080062 * Add new APIs to add attributes to document structure node when
63 creating a tagged PDF.
64
Dominik Röttschesc9b06ca2020-01-31 18:13:37 +020065 * Remove CGFontRef parameter from SkCreateTypefaceFromCTFont.
66 Use CTFontManagerCreateFontDescriptorFromData instead of
67 CGFontCreateWithDataProvider to create CTFonts to avoid memory use issues.
68
Leon Scroggins III42a604f2020-02-06 15:47:58 -050069 * Added SkCodec:: and SkAndroidCodec::getICCProfile for reporting the native
70 ICC profile of an encoded image, even if it doesn't map to an SkColorSpace.
Heather Millerebc4d622020-01-30 13:57:13 -050071
Yi Xu55bca412020-02-14 18:10:40 -050072 * SkSurface::ReplaceBackendTexture takes ContentChangeMode as a parameter,
73 which allow callers to specify whether retain a copy of the current content.
Michael Ludwigb0cee9b2020-03-12 10:52:15 -040074
75 * Enforce the existing documentation in SkCanvas::saveLayer that it ignores
76 any mask filter on the restore SkPaint. The 'coverage' of a layer is
Michael Ludwigeced98b2020-03-03 10:39:41 -050077 ill-defined, and masking should be handled by pre-clipping or using the
78 auxiliary clip mask image of the SaveLayerRec.
Yi Xu55bca412020-02-14 18:10:40 -050079
Heather Millerebc4d622020-01-30 13:57:13 -050080* * *
81
82Milestone 81
83
Brian Salomon87c31422020-01-22 09:59:56 -050084 * Added support for GL_NV_fence extension.
Heather Miller2e046a22019-12-05 15:27:42 -050085
Leon Scroggins III3eedc972020-01-22 10:44:00 -050086 * Make SkImageInfo::validRowBytes require rowBytes to be pixel aligned. This
87 makes SkBitmap match the behavior of raster SkSurfaces in rejecting
88 non-aligned rowBytes.
89
Robert Phillips99dead92020-01-27 16:11:57 -050090 * Added an SkImage::MakeRasterFromCompressed entry point. Also updated
91 SkImage::MakeFromCompressed to decompress the compressed image data if
92 the GPU doesn't support the specified compression type (i.e., macOS Metal
93 doesn't support BC1_RGB8_UNORM so such compressed images will always be
94 decompressed on that platform).
95
Robert Phillipsb0855272020-01-15 12:56:52 -050096 * Added support for BC1 RGBA compressed textures
97
Brian Osmana88cab12020-01-09 10:21:44 -050098 * Added CachingHint to SkImage::makeRasterImage
99
Kevin Lubickf5bc8fb2020-01-08 13:29:31 -0500100 * Added SkAnimatedImage::getCurrentFrame()
101
Jim Van Verthe2767012020-01-08 12:15:44 -0500102 * Add support to create an SkSurface from an MTKView, with delayed acquisition of
103 the MTLDrawable.
104 Entry point: SkSurface::MakeFromMTKView
105
Brian Salomon44207f32020-01-06 15:20:18 -0500106 * Removed SkIRect::EmptyIRect(). Use SkIRect::MakeEmpty() instead.
107 https://review.skia.org/262382/
108
Heather Millerebc4d622020-01-30 13:57:13 -0500109 * Moved SkRuntimeEffect to public API. This is the new (experimental) interface to custom SkSL
110 shaders and color filters.
Brian Osmanee426f22020-01-02 11:55:24 -0500111
Heather Millerebc4d622020-01-30 13:57:13 -0500112 * Added BC1 compressed format support. Metal and Vulkan seem to only support the BC
113 formats on desktop machines.
Robert Phillips8f259a02019-12-20 11:32:27 -0500114
Heather Millerebc4d622020-01-30 13:57:13 -0500115 * Added compressed format support for backend texture creation API.
116 This adds the following new entry points:
117 GrContext::compressedBackendFormat
118 GrContext::createCompressedBackendTexture
119 The latter method comes in variants that allow color-initialized and
120 compressed texture data initialized.
Robert Phillipsb915c942019-12-17 14:44:37 -0500121
Brian Salomona6069a12019-12-13 10:48:33 -0500122 * Added SkMatrix::MakeTrans(SkIVector)
123 https://review.skia.org/259804
Heather Miller2e046a22019-12-05 15:27:42 -0500124
Heather Millerebc4d622020-01-30 13:57:13 -0500125* * *
126
Heather Miller2e046a22019-12-05 15:27:42 -0500127Milestone 80
128
Greg Danielf0e04f02019-12-04 15:17:54 -0500129 * For Vulkan backend, we now require that the VkDevice, Queue, and Instance outlive
130 either the destruction or abandoning of the GrContext. Additionally, all
131 GrBackendTextures created via GrContext::createBackendTexture calls must be deleted
132 before destroying or abandoning the GrContext.
133 https://review.skia.org/257921
134
Brian Salomon4e1066f2019-12-04 10:33:52 -0500135 * Removed SkSize& SkSize::operator=(const SkISize&)
136 https://review.skia.org/257880
137
Brian Salomon8a99a412019-12-04 11:05:35 -0500138 * SkISize width() and height() now constexpr
139 https://review.skia.org/257680
140
Brian Salomone21af502019-11-22 16:56:36 -0500141 * Added SkMatrix::MakeTrans(SkVector) and SkRect::makeOffset(SkVector).
142 https://review.skia.org/255782
143
Brian Salomonc75bc032019-11-11 13:47:25 -0500144 * Added SkImageInfo::MakeA8(SkISize) and added optional color space parameter to
145 SkImageInfo::MakeN32Premul(SkISize).
Heather Millercc13acb2019-10-22 15:45:45 -0400146
Kevin Lubick47bd9f12019-11-08 06:55:15 -0800147 * Added dimensions() and getFrameCount() to SkAnimatedImage
148 https://review.skia.org/253542
149
Brian Osman09ee1122019-11-05 11:41:16 -0500150 * Removed SkMatrix44 version of toXYZD50 from SkColorSpace. Switched to skcms types in
151 transferFn, invTrasnferFn, and gamutTransformTo functions.
152 https://review.skia.org/252596
153
Brian Osmane36d0302019-11-01 17:10:28 -0400154 * Removed rotation and YUV support from SkColorMatrix
155 https://review.skia.org/252188
156
Brian Osman2b73e662019-11-01 10:02:24 -0400157 * Added kBT2020_SkYUVColorSpace. This is BT.2020's YCbCr conversion (non-constant-luminance).
158 https://review.skia.org/252160
159
Brian Salomon3683a4f2019-10-28 09:16:47 -0400160 * Remove old async read pixels APIs
161 https://review.skia.org/251198
162
Michael Ludwigcc836872019-11-04 15:01:52 -0500163 * Expose SkBlendModeCoeff and SkBlendMode_AsCoeff for Porter-Duff blend modes.
164 https://review.skia.org/252600
165
Heather Millercc13acb2019-10-22 15:45:45 -0400166* * *
167
168Milestone 79
Heather Millerd5153bb2019-10-17 00:03:36 -0400169
Mike Reeda32654c2019-10-04 10:18:34 -0400170 * SkTextBlob::Iter to discover the glyph indices and typefaces in each run
171 https://skia-review.googlesource.com/246296
172
Brian Osman11e6aa82019-10-16 13:58:42 -0400173 * Added support for PQ and HLG transfer functions to SkColorSpace.
Heather Millerd5153bb2019-10-17 00:03:36 -0400174 https://skia-review.googlesource.com/c/skia/+/249000
Brian Osman11e6aa82019-10-16 13:58:42 -0400175
Greg Daniel8b666172019-10-09 12:38:22 -0400176 * Added new api on GrContext ComputeImageSize. This replaces the hold static helper
177 ComputeTextureSize.
Heather Millerd5153bb2019-10-17 00:03:36 -0400178 https://skia-review.googlesource.com/c/skia/+/247337
Hal Canary9e514a12019-10-01 15:15:36 -0400179
Brian Salomon9241a6d2019-10-03 13:26:54 -0400180 * New versions of SkSurface async-rescale-and read APIs that allow client to extend
181 the lifetime of the result data. Old versions are deprecated.
182 https://review.skia.org/245457
183
Hal Canary9e514a12019-10-01 15:15:36 -0400184 * Add SkColorInfo. It's dimensionless SkImageInfo.
185 https://review.skia.org/245261
186
187 * Added SkPixmap-based createBackendTexture method to GrContext. This allows clients to create
188 backend resources (initialized with texture data) that Skia/Ganesh doesn't know about/track.
189 https://review.skia.org/244676
190
191 * Add explicit src and dst colorspace parameters to SkColorFilter::filterColor4f()
192 https://review.skia.org/244882
193
194 * Remove Vulkan/Metal float32 RGBA texture support
195 https://review.skia.org/244881
196
197 * Add SkSurface::MakeFromCAMetalLayer
198 https://review.skia.org/242563
199
200 * Added kAlpha_F16_SkColorType, kRG_F16_SkColorType and kRGBA_16161616_SkColorType.
201 This is intended to help support HDR YUV uses case (e.g., P010 and P016). As such,
202 the addition is focused on allowing creation of SkPixmaps and SkImages and not
203 SkSurfaces (i.e., who wants to render to render to these?)
204 https://review.skia.org/241357
205
206 * Start to move nested SkPath types (e.g. Direction, Verb) up to root level in SkPathTypes.h
207 https://review.skia.org/241079
208
209 * Remove isRectContour and ksNestedFillRects from public
210 https://review.skia.org/241078
211
212 * Added kRG_88_SkColorType. This is intended to help support YUV uses case (e.g., NV12).
213 As such, the addition is focused on allowing creation of SkPixmaps and SkImages and not
214 SkSurfaces (i.e., who wants to render to RG?)
215 https://review.skia.org/239930
216 https://review.skia.org/235797
217
Brian Osman172bb442019-09-06 10:16:02 -0400218 * Make the size of program/pipeline caches configurable via
219 GrContextOptions::fRuntimeProgramCacheSize
220 https://review.skia.org/239756
221
Hal Canary9e514a12019-10-01 15:15:36 -0400222 * Added kAlpha_16_SkColorType and kRG_1616_SkColorType. This is intended to help support HDR YUV
223 uses case (e.g., P010 and P016). As such, the addition is focused on allowing creation of
224 SkPixmaps and SkImages and not SkSurfaces (i.e., who wants to render to render to these?)
225 https://review.skia.org/239930
226
227 * Add GrContext::precompileShader to allow up-front compilation of previously-cached shaders.
228 https://review.skia.org/239438
229
230* * *
231
Heather Miller118a4072019-07-25 11:33:30 -0400232Milestone 78
233
Hal Canary2af5db72019-08-20 11:28:37 -0400234 * SkDrawLooper is no longer supported in SkPaint or SkCanvas.
Hal Canary3b0e7f62019-08-20 14:52:02 -0400235 https://review.skia.org/230579
236 https://review.skia.org/231736
Mike Reed9dc0b9e2019-07-29 17:52:48 -0400237
Hal Canary3b0e7f62019-08-20 14:52:02 -0400238 * SkPath::Iter::next() now ignores its consumDegenerates bools. Those will so
239 go away entirely
240 https://review.skia.org/235104
Mike Reedba7e9a62019-08-16 13:30:34 -0400241
Hal Canary2af5db72019-08-20 11:28:37 -0400242 * SkImage: new factories: DecodeToRaster, DecodeToTexture
Hal Canary3b0e7f62019-08-20 14:52:02 -0400243 https://review.skia.org/234476
Mike Reeda5acbf92019-08-14 11:08:41 -0400244
Hal Canary2af5db72019-08-20 11:28:37 -0400245 * SkImageFilter API refactor started:
246 - Provide new factory API in include/effects/SkImageFilters
247 - Consolidated enum types to use SkTileMode and SkColorChannel
248 - Hide filter implementation classes
Hal Canary3b0e7f62019-08-20 14:52:02 -0400249 - Hide previously public functions on SkImageFilter that were intended for
250 internal use only
251 https://review.skia.org/230198
252 https://review.skia.org/230876
253 https://review.skia.org/231256
Florin Malita48009492019-08-01 17:20:19 -0400254
Hal Canary3b0e7f62019-08-20 14:52:02 -0400255 * SkColorFilters::HSLAMatrix - new matrix color filter operating in HSLA
256 space.
257 https://review.skia.org/231736
Brian Salomond4764a12019-08-08 12:08:24 -0400258
Hal Canary3b0e7f62019-08-20 14:52:02 -0400259 * Modify GrBackendFormat getters to not return internal pointers. Use an enum
260 class for GL formats.
261 https://review.skia.org/233160
Brian Salomonec22b1a2019-08-09 09:41:48 -0400262
Hal Canary2af5db72019-08-20 11:28:37 -0400263 * Expose GrContext::dump() when SK_ENABLE_DUMP_GPU is defined.
Hal Canary3b0e7f62019-08-20 14:52:02 -0400264 https://review.skia.org/233557
Sergey Ulanov2739fd22019-08-11 22:46:33 -0700265
Hal Canary3b0e7f62019-08-20 14:52:02 -0400266 * Vulkan backend now supports YCbCr sampler for I420 Vulkan images that are
267 not backed by external images.
268 https://review.skia.org/233776
Leon Scroggins III6154ac42019-08-14 11:29:29 -0400269
Hal Canary3b0e7f62019-08-20 14:52:02 -0400270 * Add SkCodec::SelectionPolicy for distinguishing between decoding a still
271 image or an image sequence for a container format that has both (e.g. HEIF).
272 https://review.skia.org/232839
Brian Osmand566e2e2019-08-14 13:19:04 -0400273
Hal Canary3b0e7f62019-08-20 14:52:02 -0400274 * SkImage::makeTextureImage and SkImage::MakeCrossContextFromPixmap no longer
275 take an SkColorSpace parameter. It was unused.
276 https://review.skia.org/234579
277 https://review.skia.org/234912
Brian Osmand5148372019-08-14 16:14:51 -0400278
Hal Canary3b0e7f62019-08-20 14:52:02 -0400279 * SkImage::reinterpretColorSpace - to reinterpret image contents in a new
280 color space.
281 https://review.skia.org/234328
Brian Osman4c3fd342019-08-15 12:13:53 -0400282
Hal Canary2af5db72019-08-20 11:28:37 -0400283 * Removed SkImage::MakeCrossContextFromEncoded.
Hal Canary3b0e7f62019-08-20 14:52:02 -0400284 https://review.skia.org/234912
Hal Canary2af5db72019-08-20 11:28:37 -0400285
Jim Van Verth066ceb12019-08-28 14:35:55 -0400286 * Add Metal support for GrFence, GrSemaphore, and GrBackendSemaphore
287 https://review.skia.org/233416
288
Hal Canary2af5db72019-08-20 11:28:37 -0400289 * SkMallocPixelRef: remove MakeDirect and MakeWithProc from API.
290 https://review.skia.org/234660
Mike Klein334a6422019-08-27 08:12:15 -0500291
Michael Ludwiga595f862019-08-27 15:25:49 -0400292 * Remove 4-parameter variant of SkRect::join() and intersect(), and
293 noemptycheck variants of intersect().
294 https://review.skia.org/235832
295 https://review.skia.org/237142
296
Mike Klein334a6422019-08-27 08:12:15 -0500297 * Remove unused sk_sp comparison operators.
298 https://review.skia.org/236942
Michael Ludwiga595f862019-08-27 15:25:49 -0400299
300 * Add SkColor4f variant to experimental_DrawEdgeAAQuad for SkiaRenderer.
301 https://review.skia.org/237492
Robert Phillipscf39f372019-09-03 10:29:20 -0400302
303 * Deprecated maxCount resource cache limit for Ganesh.
304 This hasn't been relevant for a long time.
305
Brian Osmana66081d2019-09-03 14:59:26 -0400306 * Changed GrContextOptions' fDisallowGLSLBinaryCaching to fShaderCacheStrategy,
307 and allow caching SkSL.
308 https://review.skia.org/238856
Chris Dalton38f0a492019-10-07 11:51:07 -0600309
310 * Use GL_QCOM_TILED_RENDERING to explicitly discard stencil
Heather Millercc13acb2019-10-22 15:45:45 -0400311
312 * Added RELEASE_NOTES.txt file
313 https://review.skia.org/229760
Chris Dalton5a2f9622019-12-27 14:56:38 -0700314
315 * Implemented internal support for OpenGL tessellation.