2019-07-25 15:33:30 +00:00
|
|
|
|
Skia Graphics Release Notes
|
|
|
|
|
|
|
|
|
|
This file includes a list of high level updates for each milestone release.
|
|
|
|
|
|
2022-03-18 14:36:29 +00:00
|
|
|
|
Milestone 102
|
|
|
|
|
-------------
|
|
|
|
|
* Add glGetFloatv and glSamplerParameterf to GrGLInterface.
|
2022-03-31 18:26:29 +00:00
|
|
|
|
* GrGLCreateNativeInterface is removed. Use GrGLMakeNativeInterface.
|
2022-04-05 20:16:23 +00:00
|
|
|
|
* GrContextOptions::fSharpenMipmappedTextures is removed. MIP LOD is now always
|
2022-04-01 15:26:15 +00:00
|
|
|
|
biased on the GPU backend. The CPU backend implementation is modified to match
|
|
|
|
|
this behavior.
|
2022-04-05 13:40:21 +00:00
|
|
|
|
* Passing SkCanvas::kStrict_SrcRectConstraint disables mipmapping. The old behavior differed
|
|
|
|
|
between GPU and CPU. CPU always computed a new set of mipmap based on the subset. GPU restricted
|
|
|
|
|
the sampling coordinates to the subset in the base level but upper level pixels that map to
|
|
|
|
|
pixels outside the subset in the base level were still used. To get the previous CPU behavior
|
|
|
|
|
use SkImage::makeSubset() to make a subset image and draw that. The previous GPU behavior is
|
|
|
|
|
similar, though not exactly, equivalent to making a mipmapped image shader from the original
|
|
|
|
|
image and applying that to a rectangle.
|
2022-03-18 14:36:29 +00:00
|
|
|
|
|
|
|
|
|
* * *
|
|
|
|
|
|
2022-03-01 14:38:59 +00:00
|
|
|
|
Milestone 101
|
|
|
|
|
-------------
|
|
|
|
|
* Add maxSurfaceSampleCountForColorType(SkColorType ct) in GrContextThreadSafeProxy
|
2022-03-09 14:50:30 +00:00
|
|
|
|
* Enums SkAlphaType and SkColorType are broken out into their own header files in include/core/
|
2022-03-01 14:38:59 +00:00
|
|
|
|
|
2022-03-18 14:36:29 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2022-01-27 02:36:51 +00:00
|
|
|
|
Milestone 100
|
|
|
|
|
-------------
|
|
|
|
|
* Skia now requires C++17 and the corresponding standard library (or newer).
|
2022-02-01 20:31:57 +00:00
|
|
|
|
* Skia on iOS now requires iOS 11 to build; earlier versions of iOS do not support C++17.
|
2022-02-03 22:08:53 +00:00
|
|
|
|
* The skstd::string_view and skstd::optional Skia classes have been replaced with the C++17 native
|
|
|
|
|
std::string_view and std::optional.
|
2022-02-03 15:44:00 +00:00
|
|
|
|
* Added SkSurface::resolveMSAA api to force Skia to resolve MSAA draws. Useful for when
|
2022-02-03 22:08:53 +00:00
|
|
|
|
Skia wraps a client's texture as the resolve target.
|
2022-02-09 19:57:07 +00:00
|
|
|
|
* All of the `makeShader` functions associated with `SkRuntimeEffect` no longer take an
|
|
|
|
|
`isOpaque` parameter. These functions will now make a best effort to determine if your
|
|
|
|
|
shader always produces opaque output, and optimize accordingly. If you definitely want your
|
|
|
|
|
shader to produce opaque output, do so in the shader's SkSL code. This can be done by adjusting
|
|
|
|
|
any `return` statement in your shader with a swizzle: `return color.rgb1;`.
|
|
|
|
|
https://review.skia.org/506462
|
2022-02-28 13:27:33 +00:00
|
|
|
|
* SkRSXform is now exported to DLL/.so files.
|
2022-01-27 02:36:51 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2021-12-07 21:05:39 +00:00
|
|
|
|
Milestone 99
|
|
|
|
|
------------
|
|
|
|
|
* Added two new intrinsic functions to SkSL for use in runtime effects:
|
|
|
|
|
vec3 toLinearSrgb(vec3 color)
|
|
|
|
|
vec3 fromLinearSrgb(vec3 color)
|
|
|
|
|
These convert RGB color values between the working color space (the color space of the
|
|
|
|
|
destination surface) and a known, fixed color space. `toLinearSrgb` converts a color to the
|
|
|
|
|
sRGB color gamut, with a linear transfer function. `fromLinearSrgb` converts a color from that
|
|
|
|
|
same color space. These are helpful for effects that need to work in a specific color space, or
|
|
|
|
|
want to apply effects (like lighting) that work best in a linear color space.
|
|
|
|
|
Note that if the destination surface has no color space (color space is `nullptr`), these
|
|
|
|
|
intrinsics will do no conversion, and return the input color unchanged.
|
|
|
|
|
https://review.skia.org/481416
|
2021-12-28 19:17:28 +00:00
|
|
|
|
* Added a new variant of SkImageFilters::RuntimeShader that supports multiple child nodes.
|
|
|
|
|
https://review.skia.org/489536
|
2022-02-28 13:27:33 +00:00
|
|
|
|
* Add the ability to specify palette overrides in SkFontArguments. Implemented
|
2022-02-17 10:37:49 +00:00
|
|
|
|
for the FreeType-backed SkFontMgrs.
|
2021-12-07 21:05:39 +00:00
|
|
|
|
|
|
|
|
|
* * *
|
|
|
|
|
|
2021-11-05 13:41:03 +00:00
|
|
|
|
Milestone 98
|
|
|
|
|
------------
|
|
|
|
|
* The following functions and methods are not defined in SkSurface when SK_SUPPORT_GPU is 0:
|
|
|
|
|
MakeFromBackendTexture, MakeFromBackendRenderTarget, MakeRenderTarget,
|
|
|
|
|
getBackendTexture, getBackendRenderTarget, replaceBackendTexture. flush() with parameters
|
|
|
|
|
was removed as well. These were all no-ops anyway when just the CPU backend was compiled in
|
|
|
|
|
(noting that flush() and flushAndSubmit() are still no-ops on the CPU backend).
|
|
|
|
|
* GrBackendSemaphore only includes methods that match the GPU backend that Skia was compiled for.
|
|
|
|
|
For example, initVulkan and vkSemaphore are not defined unless the Vulkan backend is compiled
|
|
|
|
|
into Skia.
|
2021-11-15 20:25:37 +00:00
|
|
|
|
* Surfaces and images are now limited to just under 2GB of total size. Previously, larger images
|
|
|
|
|
could be created, but the CPU backend would fail to index them correctly.
|
2021-11-18 15:14:06 +00:00
|
|
|
|
* SkCanvas::drawVertices and SkCanvas::drawPatch variants that did not take SkBlendMode are
|
|
|
|
|
removed.
|
2021-11-29 21:41:31 +00:00
|
|
|
|
* SkImageFilters::RuntimeShader is a new public API that enables adding RuntimeShaderEffects into
|
|
|
|
|
image filter graph.
|
2021-12-06 18:15:29 +00:00
|
|
|
|
* SkImage::makeRawShader is a new public API that creates "raw" image shaders. makeRawShader
|
|
|
|
|
functions like SkImage::makeShader, but for images that contain non-color data. This includes
|
|
|
|
|
images encoding things like normals, material properties (eg roughness), heightmaps, or any
|
|
|
|
|
other purely mathematical data that happens to be stored in an image. These types of images are
|
|
|
|
|
useful with some programmable shaders (ie SkRuntimeEffect).
|
|
|
|
|
Raw image shaders work like regular image shaders (including filtering and tiling), with a few
|
|
|
|
|
major differences:
|
|
|
|
|
- No color space transformation is ever applied (the color space of the image is ignored).
|
|
|
|
|
- Images with an alpha type of kUnpremul are not automatically premultiplied.
|
|
|
|
|
- Bicubic filtering is not supported. If SkSamplingOptions::useCubic is true, these factories
|
|
|
|
|
will return nullptr.
|
2021-12-08 21:12:32 +00:00
|
|
|
|
* Removed SkCanvas::markCTM and SkCanvas::findMarkedCTM. These were created to be used with other
|
|
|
|
|
features that have since been deleted, so they served no purpose.
|
2022-02-02 13:45:33 +00:00
|
|
|
|
* Added limited JPEGXL support.
|
2021-11-29 21:41:31 +00:00
|
|
|
|
|
|
|
|
|
* * *
|
2021-11-05 13:41:03 +00:00
|
|
|
|
|
2021-10-20 16:03:54 +00:00
|
|
|
|
Milestone 97
|
|
|
|
|
------------
|
|
|
|
|
* Added basic support for vulkan DRM modifiers. All of these are treated as read only textures
|
|
|
|
|
internally (versus querying specific modifier support). Clients can either pass a flag to Vulkan
|
|
|
|
|
GrBackendFormat to say it uses modifiers or pass the VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT
|
|
|
|
|
to a GrBackendTexture via the GrVkImageInfo struct.
|
2021-10-28 11:31:32 +00:00
|
|
|
|
* The following functions and methods are not defined in SkImage when SK_SUPPORT_GPU is 0:
|
|
|
|
|
MakeTextureFromCompressed, MakeFromTexture, MakeFromCompressedTexture,
|
|
|
|
|
MakeCrossContextFromPixmap, MakeFromAdoptedTexture, MakeFromYUVATextures,
|
|
|
|
|
MakeFromYUVAPixmaps, MakePromiseTexture, MakePromiseYUVATexture, MakeBackendTextureFromSkImage,
|
|
|
|
|
flush, flushAndSubmit, getBackendTexture, makeTextureImage.
|
|
|
|
|
These were all no-ops anyway when just the CPU backend was compiled in.
|
2021-11-05 13:41:03 +00:00
|
|
|
|
|
|
|
|
|
* * *
|
2021-10-20 16:03:54 +00:00
|
|
|
|
|
2021-10-08 13:53:43 +00:00
|
|
|
|
Milestone 96
|
|
|
|
|
------------
|
|
|
|
|
* SkRuntimeEffect no longer clamps the RGB values of an effect's output to the range 0..A.
|
|
|
|
|
This makes it easier to use a hierarchy of SkSL shaders where intermediate values do not
|
|
|
|
|
represent colors but are, for example, non-color inputs to a lighting model.
|
|
|
|
|
http://review.skia.org/452558
|
|
|
|
|
|
2021-10-20 16:03:54 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2021-09-10 18:03:46 +00:00
|
|
|
|
Milestone 95
|
|
|
|
|
------------
|
|
|
|
|
* Minimum supported iOS raised from 8 to 11. Skia may build back to iOS 9 but versions older
|
|
|
|
|
than 11 are not tested. Community contributions to support versions 9 and 10 of iOS may be
|
|
|
|
|
considered, but they may not be complex as they cannot be tested.
|
|
|
|
|
|
2021-07-16 15:00:59 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
|
|
|
|
Milestone 94
|
|
|
|
|
------------
|
2021-08-11 14:37:22 +00:00
|
|
|
|
* Metal backend has been changed to track command buffer resources manually
|
|
|
|
|
rather than using retained resources.
|
|
|
|
|
https://review.skia.org/432878
|
|
|
|
|
|
2021-07-23 15:48:34 +00:00
|
|
|
|
* Added virtual onResetClip() to SkCanvas for Android Framework, to emulate the soon-to-be-removed
|
|
|
|
|
expanding clip ops guarded by SK_SUPPORT_DEPRECATED_CLIPOPS.
|
|
|
|
|
https://review.skia.org/430897
|
2021-06-23 15:27:19 +00:00
|
|
|
|
|
2021-08-06 15:19:26 +00:00
|
|
|
|
* Removed SK_SUPPORT_DEPRECATED_CLIPOPS build flag. Clips can only be intersect and difference.
|
|
|
|
|
https://review.skia.org/436565
|
|
|
|
|
|
2021-08-04 15:34:16 +00:00
|
|
|
|
* There is a new syntax for invoking (sampling) child effects in SkSL. Previously, children
|
|
|
|
|
(shaders, colorFilters, blenders) were invoked using different overloads of `sample`. That
|
2021-09-02 13:26:27 +00:00
|
|
|
|
syntax is deprecated (but still supported). Now, the child behaves like an object, with a method
|
|
|
|
|
name `eval`. The arguments to these `eval` methods are the same as the arguments in the old
|
|
|
|
|
`sample` intrinsics. For example:
|
|
|
|
|
// Old syntax:
|
|
|
|
|
sample(shader, xy)
|
|
|
|
|
sample(colorFilter, color)
|
|
|
|
|
sample(blender, srcColor, dstColor)
|
|
|
|
|
// New syntax:
|
|
|
|
|
shader.eval(xy)
|
|
|
|
|
colorFilter.eval(color)
|
|
|
|
|
blender.eval(srcColor, dstColor)
|
|
|
|
|
https://review.skia.org/444735
|
2021-08-04 15:34:16 +00:00
|
|
|
|
|
2019-10-01 19:15:36 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2021-05-21 17:20:02 +00:00
|
|
|
|
Milestone 93
|
|
|
|
|
------------
|
2021-06-17 13:36:58 +00:00
|
|
|
|
* Removed SkPaint::getHash
|
|
|
|
|
https://review.skia.org/419336
|
2021-05-21 17:20:02 +00:00
|
|
|
|
|
2021-06-18 14:41:23 +00:00
|
|
|
|
* Removed SkShaders::Lerp. It was unused (and easy to replicate with SkRuntimeEffect).
|
|
|
|
|
https://review.skia.org/419796
|
|
|
|
|
|
2021-06-21 15:11:44 +00:00
|
|
|
|
* The default value of GrContextOptions::fReduceOpsTaskSplitting is now enabled.
|
|
|
|
|
https://review.skia.org/419836
|
|
|
|
|
|
2021-07-16 15:00:59 +00:00
|
|
|
|
* Removed SkMatrix44
|
|
|
|
|
|
2021-05-21 17:20:02 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2021-04-09 18:35:53 +00:00
|
|
|
|
Milestone 92
|
|
|
|
|
------------
|
2021-05-11 15:39:36 +00:00
|
|
|
|
* Hides SkPathEffect::computeFastBounds() from public API; external subclasses of SkPathEffect
|
|
|
|
|
must implement onComputeFastBounds() but can return false to signal it's not computable.
|
|
|
|
|
https://review.skia.org/406140
|
|
|
|
|
|
Add mapRect function and RectToRect constructor to SkM44
The SkM44::RectToRect function matches the semantics of
SkMatrix::RectToRect(kFill_ScaleToFit). No other ScaleToFit variants are
ported over to SkM44.
skottie uses some instances of kCenter_ScaleToFit so that functionality
may need to be added in the future (in SkM44 or in skottie). There are
no current usages of the kStart and kEnd_ScaleToFit semantics.
The SkM44::mapRect() function is implemented to correspond to the
SkMatrix::mapRect() that returns the mapped rect (instead of modifying a
pointer) and always has ApplyPerspectiveClip::kYes. This was chosen to
keep its behavior simple and because perspective clipping is almost
always the right thing to do. In the new implementation there is no
longer a performance cliff to worry about (see below). For the timebeing
mapRect is hidden behind SkMatrixPriv::MapRect().
Performance:
I added benchmarks for mapRect() on SkM44 and SkMatrix that use the same
matrices to get a fair comparison on their different specializations.
SkMatrix has a very efficient mapRect when it's scale+translate or
simpler, then another impl. for affine matrices, and then falls back to
SkPath clipping when there's perspective. On the other hand, SkM44 only
has 2 modes: affine and perspective.
On my desktop, with a Ryzen 9 3900X, here are the times for 100,000 calls
to mapRect for different types of matrices:
SkMatrix SkM44
scale+translate 0.35 ms 0.42 ms
rotate 1.70 ms 0.42 ms
perspective 63.90 ms 0.66 ms
clipped-perspective 138.0 ms 0.96 ms
To summarize, the SkM44::mapRect is almost as fast as the s+t specialization
in SkMatrix, but for all non-perspective matrices. For perspective matrices
it's only 2x slower than that specialization when no vertices are clipped,
and still almost 2x faster than the affine specialization when vertices are
clipped (and 100x faster than falling back to SkPath).
Given that, there's the open question of whether or not keeping an affine
specialization is worth it for SkM44's code size.
Bug: skia:11720
Change-Id: I6771956729ed64f3b287a9de503513375c9f42a0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/402957
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
2021-05-05 13:05:10 +00:00
|
|
|
|
* Add SkM44::RectToRect constructor (SkM44's equivalent to SkMatrix::RectToRect)
|
|
|
|
|
https://review.skia.org/402957
|
|
|
|
|
|
2021-04-27 16:23:53 +00:00
|
|
|
|
* Metal support has been removed for versions of iOS older than 10.0 and MacOS older than 10.14.
|
|
|
|
|
https://review.skia.org/401816
|
|
|
|
|
|
2021-04-19 15:15:24 +00:00
|
|
|
|
* Removed custom attributes from SkVertices and the corresponding `varying` feature from
|
|
|
|
|
SkRuntimeEffect.
|
|
|
|
|
https://review.skia.org/398222
|
2021-04-09 18:35:53 +00:00
|
|
|
|
|
2021-04-22 18:57:28 +00:00
|
|
|
|
* Dropped support for mixed samples. Mixed samples is no longer relevant for Ganesh. DMSAA and the
|
|
|
|
|
new Ganesh architecture both rely on full MSAA, and any platform where mixed samples is
|
|
|
|
|
supported will ultimately not use the old architecture.
|
|
|
|
|
|
2021-04-28 13:41:06 +00:00
|
|
|
|
* SkRuntimeEffect::Make has been removed. It is replaced by MakeForShader and MakeForColorFilter.
|
|
|
|
|
These functions do stricter error checking on the SkSL, to ensure it is valid for a particular
|
|
|
|
|
stage of the Skia pipeline.
|
|
|
|
|
https://review.skia.org/402156
|
|
|
|
|
|
2021-04-09 18:35:53 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2021-02-26 21:10:28 +00:00
|
|
|
|
Milestone 91
|
|
|
|
|
------------
|
2021-03-04 19:30:25 +00:00
|
|
|
|
* The SkSL DSL API has been moved into public headers, although it is still under active
|
|
|
|
|
development and isn't quite ready for prime time yet.
|
|
|
|
|
https://review.skia.org/378496
|
2021-02-26 21:10:28 +00:00
|
|
|
|
|
2021-03-18 17:32:56 +00:00
|
|
|
|
* Skia's GPU backend no longer supports NVPR. Our more recent path renderers are more
|
|
|
|
|
performant and are not limited to nVidia hardware.
|
2021-04-01 13:56:07 +00:00
|
|
|
|
|
|
|
|
|
* SkRuntimeEffect now supports uniforms of type int, int2, int3, and int4. Per the OpenGL ES
|
|
|
|
|
Shading Language Version 1.00 specification, there are few guarantees about the representation
|
|
|
|
|
or range of integral types, and operations that assume integral representation (eg, bitwise),
|
|
|
|
|
are not supported.
|
|
|
|
|
https://review.skia.org/391856
|
|
|
|
|
|
2021-04-06 18:28:07 +00:00
|
|
|
|
* SkRuntimeEffect requires that 'shader' variables be declared as 'uniform'. The deprecated
|
|
|
|
|
syntax of 'in shader' is no longer supported.
|
|
|
|
|
https://review.skia.org/393081
|
|
|
|
|
|
2021-02-26 21:10:28 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2021-01-15 19:19:53 +00:00
|
|
|
|
Milestone 90
|
|
|
|
|
------------
|
2021-02-22 14:41:27 +00:00
|
|
|
|
* Renamed use of sk_cf_obj in external Metal types to sk_cfp.
|
|
|
|
|
https://review.skia.org/372556
|
|
|
|
|
|
2021-02-18 14:02:14 +00:00
|
|
|
|
* GrDirectContext::ComputeImageSize() is removed. Use SkImage::textureSize() instead.
|
2021-02-10 22:09:02 +00:00
|
|
|
|
https://review.skia.org/368621
|
2021-02-18 14:02:14 +00:00
|
|
|
|
https://review.skia.org/369317
|
|
|
|
|
https://review.skia.org/371958
|
2021-01-15 19:19:53 +00:00
|
|
|
|
|
2021-02-04 17:32:33 +00:00
|
|
|
|
* Remove SkImageFilter::MakeMatrixFilter as it was unused and replaced with
|
|
|
|
|
SkImageFilters::MatrixTransform.
|
|
|
|
|
https://review.skia.org/366318
|
|
|
|
|
|
2021-01-29 19:32:09 +00:00
|
|
|
|
* Refactored particle system to use a single code string containing both Effect and Particle code.
|
|
|
|
|
Uniform APIs are now shared for all program entry points, and no longer prefixed with 'Effect'
|
|
|
|
|
or 'Particle'. For example, instead of `SkParticleEffect::effectUniformInfo` and
|
|
|
|
|
`SkParticleEffect::particleUniformInfo`, there is just `SkParticleEffect::uniformInfo`.
|
|
|
|
|
|
2021-01-28 18:20:16 +00:00
|
|
|
|
* Remove SkImageFilter::CropRect from the public API as it's no longer usable. All factories
|
|
|
|
|
work with 'SkRect', 'SkIRect', or nullable pointers to 'Sk[I]Rect'.
|
|
|
|
|
https://review.skia.org/361496
|
|
|
|
|
|
2021-01-22 18:01:26 +00:00
|
|
|
|
* Remove deprecated SkImageFilter factory functions and supporting types. All default-provided
|
|
|
|
|
SkImageFilters are now only constructed via 'include/effects/SkImageFilters.h'
|
|
|
|
|
https://review.skia.org/357285
|
|
|
|
|
|
2021-01-23 16:41:54 +00:00
|
|
|
|
* Added SkRuntimeEffect::makeImage() to capture the output of an SkRuntimeEffect in an SkImage.
|
|
|
|
|
https://review.skia.org/357284
|
|
|
|
|
|
2021-02-03 16:15:20 +00:00
|
|
|
|
* Updated SkRuntimeEffect::Make() to take an Options struct. It also now returns a Results struct
|
|
|
|
|
instead of a tuple.
|
|
|
|
|
https://review.skia.org/363785
|
2021-02-11 22:40:03 +00:00
|
|
|
|
https://review.skia.org/367060
|
2021-02-03 16:15:20 +00:00
|
|
|
|
|
2021-02-03 19:30:27 +00:00
|
|
|
|
* Changed SkRuntimeEffect::Varying to have lower-case member names, with no 'f' prefix.
|
|
|
|
|
https://review.skia.org/365656
|
|
|
|
|
|
2021-02-03 19:48:41 +00:00
|
|
|
|
* Changed SkRuntimeEffect::Uniform to have lower-case member names, with no 'f' prefix.
|
|
|
|
|
https://review.skia.org/365696
|
|
|
|
|
|
2020-12-15 20:58:53 +00:00
|
|
|
|
* Deprecate (and ignore) SkAndroidCodec::ExifOrientation
|
|
|
|
|
https://review.skia.org/344763
|
|
|
|
|
|
2021-01-21 23:43:58 +00:00
|
|
|
|
* Fix several minor issues in lighting image filters:
|
|
|
|
|
- The spotlight falloff exponent is no longer clamped to [1, 128]. SVG 1.1 requires the specular
|
|
|
|
|
lighting effect's exponent (shininess) to be clamped; not the spotlight's falloff. Any such
|
|
|
|
|
parameter clamping is the client's responisibility, which makes Skia's lighting effect easily
|
|
|
|
|
adaptable to SVG 1.1 (clamp exponent) or SVG 2 (no clamp).
|
|
|
|
|
- Fix spotlight incorrectly scaling light within the cone angle.
|
|
|
|
|
- Move saturation of RGBA to after multiplying lighting intensity with the lighting color, which
|
|
|
|
|
improves rendering when diffuse and specular constants are greater than 1.
|
|
|
|
|
https://review.skia.org/355496
|
2021-01-15 19:19:53 +00:00
|
|
|
|
|
2021-02-22 19:08:07 +00:00
|
|
|
|
* SkDeferredDisplayListRecorder::makePromiseTexture has moved to SkImage::MakePromiseTexture.
|
|
|
|
|
New code should use the new entry point – migration CLs will be coming soon.
|
|
|
|
|
https://review.skia.org/373716
|
|
|
|
|
|
2020-11-12 20:21:11 +00:00
|
|
|
|
Milestone 89
|
|
|
|
|
------------
|
2021-01-11 19:40:44 +00:00
|
|
|
|
* Removed SkYUVAIndex and SkYUVASizeInfo. These were no longer used in any
|
|
|
|
|
public APIs.
|
|
|
|
|
https://review.skia.org/352497
|
|
|
|
|
|
2021-01-11 18:10:59 +00:00
|
|
|
|
* Numerous changes to SkRuntimeEffect, aligning the capabilities and restrictions with
|
|
|
|
|
The OpenGL ES Shading Language 1.00 (aka, the shading language of OpenGL ES2 and WebGL 1.0).
|
|
|
|
|
All built-in functions from sections 8.1 through 8.6 implemented & tested on all backends.
|
|
|
|
|
Removed types and features that require newer versions of GLSL:
|
|
|
|
|
https://review.skia.org/346657 [Non-square matrices]
|
|
|
|
|
https://review.skia.org/347046 [uint, short, ushort, byte, ubyte]
|
|
|
|
|
https://review.skia.org/349056 [while and do-while loops]
|
|
|
|
|
https://review.skia.org/350030 [Bitwise operators and integer remainder]
|
|
|
|
|
|
2021-01-11 16:01:09 +00:00
|
|
|
|
* Add SkShadowUtils::GetLocalBounds. Generates bounding box for shadows
|
|
|
|
|
relative to path.
|
|
|
|
|
https://review.skia.org/351922
|
|
|
|
|
|
2021-01-08 23:11:33 +00:00
|
|
|
|
* Removed SkPerlinNoiseShader::MakeImprovedNoise.
|
|
|
|
|
https://review.skia.org/352057
|
|
|
|
|
|
2021-01-11 16:01:09 +00:00
|
|
|
|
* Removed deprecated version of MakeFromYUVATextures. Use the version
|
2020-12-24 01:28:53 +00:00
|
|
|
|
that takes GrYUVABackendTextures instead.
|
|
|
|
|
https://review.skia.org/345174
|
2020-12-15 20:52:39 +00:00
|
|
|
|
|
|
|
|
|
* SkAnimatedImage: Always respect exif orientation
|
|
|
|
|
Replace SkPixmapPriv::ShouldSwapWidthHeight with
|
|
|
|
|
SkEncodedOriginSwapsWidthHeight.
|
|
|
|
|
https://review.skia.org/344762
|
|
|
|
|
|
2020-12-16 16:56:11 +00:00
|
|
|
|
* Add kDirectionalLight_ShadowFlag support. If enabled, light position represents
|
|
|
|
|
a vector pointing towards the light, and light radius is blur radius at elevation 1.
|
|
|
|
|
https://review.skia.org/321792
|
2020-12-07 16:30:16 +00:00
|
|
|
|
|
2020-12-15 21:06:26 +00:00
|
|
|
|
* Support GL_LUMINANCE8_ALPHA8 textures. These can be used with GrBackendTexture APIs
|
|
|
|
|
on GrDirectContext and as planes of YUVA images via GrYUVABackendTextures.
|
|
|
|
|
https://review.skia.org/344761
|
|
|
|
|
|
2020-12-08 21:39:32 +00:00
|
|
|
|
* Removed previously deprecated SkImage::MakeFromYUVATexturesCopyToExternal.
|
|
|
|
|
https://review.skia.org/342077
|
|
|
|
|
|
2020-12-07 16:30:16 +00:00
|
|
|
|
* Add versions of GrDirectContext::createBackendTexture and updateBackendTexture
|
|
|
|
|
that take a GrSurfaceOrigin. The previous versions are deprecated.
|
|
|
|
|
https://review.skia.org/341005
|
|
|
|
|
|
2020-12-04 17:59:39 +00:00
|
|
|
|
* Remove support for deprecated kDontClipToLayer_SaveLayerFlag in SkCanvas::SaveLayerRec
|
|
|
|
|
https://review.skia.org/339988
|
|
|
|
|
|
2020-11-11 17:45:40 +00:00
|
|
|
|
* Expose more info in SkCodec::FrameInfo
|
|
|
|
|
https://review.skia.org/339857
|
|
|
|
|
|
2020-11-24 18:14:04 +00:00
|
|
|
|
* Added dither control to the SkImageFilters::Shader factory.
|
|
|
|
|
https://review.skia.org/338156
|
2020-11-12 20:21:11 +00:00
|
|
|
|
|
2020-11-19 17:59:06 +00:00
|
|
|
|
* Add MTLBinaryArchive parameter to GrMtlBackendContext. This allows
|
|
|
|
|
Skia to cache PipelineStates in the given archive for faster
|
|
|
|
|
shader compiles on future runs. The client must handle loading and
|
|
|
|
|
saving of the archive.
|
|
|
|
|
https://review.skia.org/333758
|
|
|
|
|
|
2020-11-18 13:46:44 +00:00
|
|
|
|
* Deprecated enum SkYUVAInfo::PlanarConfig has been removed.
|
|
|
|
|
https://review.skia.org/334161
|
|
|
|
|
|
2020-11-16 15:31:49 +00:00
|
|
|
|
* Deprecated SkImage factories have been removed from
|
|
|
|
|
SkDeferredDisplayListRecorder.
|
|
|
|
|
|
2020-11-12 21:34:28 +00:00
|
|
|
|
* The following YUV image factories have been removed:
|
|
|
|
|
SkImage::MakeFromYUVTexturesCopyWithExternalBackend
|
|
|
|
|
SkImage::MakeFromNV12TexturesCopyWithExternalBackend
|
|
|
|
|
Replacement pattern outlined below.
|
|
|
|
|
1) Make image using MakeFromYUVATextures
|
|
|
|
|
2) Make a SkSurface around result texture using SkSurface::MakeFromBackendTexture
|
|
|
|
|
3) surface->getCanvas()->drawImage(image, 0, 0);
|
|
|
|
|
4) surface->flushAndSubmit()
|
|
|
|
|
5) Optional: SkImage::MakeFromBackendTexture() to use as SkImage.
|
|
|
|
|
https://review.skia.org/334596
|
|
|
|
|
|
2020-11-12 20:21:11 +00:00
|
|
|
|
* Added a new interface for GrDirectContext creation in Metal, using
|
|
|
|
|
a new struct called GrMtlBackendContext. The previous interface taking
|
|
|
|
|
a MTLDevice and MTLCommandQueue is deprecated.
|
|
|
|
|
https://review.skia.org/334426
|
|
|
|
|
|
2020-11-30 13:32:38 +00:00
|
|
|
|
* SkCanvas::flush has been deprecated.
|
|
|
|
|
|
2020-11-12 20:21:11 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2020-10-02 12:44:30 +00:00
|
|
|
|
Milestone 88
|
2020-08-20 19:59:08 +00:00
|
|
|
|
------------
|
|
|
|
|
|
2020-11-11 21:34:19 +00:00
|
|
|
|
* SkYUVAInfo now has separate enums for division of channels among planes and
|
|
|
|
|
the subsampling. The previous combined enum, PlanarConfig, is deprecated.
|
|
|
|
|
https://review.skia.org/334102
|
|
|
|
|
|
2020-11-09 20:40:27 +00:00
|
|
|
|
* Simplified SkDeferredDisplayListRecorder promise image API. Removed "release"
|
|
|
|
|
callback and renamed "done" callback to "release". The new "release" proc can
|
2020-11-10 19:17:58 +00:00
|
|
|
|
be null. Added a new SkYUVAInfo-based factory for YUVA promise texture images
|
|
|
|
|
and deprecated the old SkYUVAIndex-based one.
|
2020-11-09 20:40:27 +00:00
|
|
|
|
https://review.skia.org/331836
|
2020-11-10 19:17:58 +00:00
|
|
|
|
https://review.skia.org/333519
|
2020-10-16 20:11:27 +00:00
|
|
|
|
|
2020-11-06 16:45:36 +00:00
|
|
|
|
* Limit the types and intrinsics supported in SkRuntimeEffect to GLSL ES 1.00
|
|
|
|
|
https://review.skia.org/332597
|
|
|
|
|
|
2020-11-04 22:13:39 +00:00
|
|
|
|
* Add AVIF support to SkHeifCodec.
|
|
|
|
|
|
2020-11-04 15:50:39 +00:00
|
|
|
|
* Add support for creating SkSurfaceCharacterizations directly for use by a
|
|
|
|
|
GrVkSecondaryCBDrawContext.
|
|
|
|
|
https://review.skia.org/331877
|
|
|
|
|
|
2020-10-23 15:29:03 +00:00
|
|
|
|
* Removed SkSurfaceProps::kLegacyFontHost_InitType, SkFontLCDConfig, and related code.
|
|
|
|
|
The default pixel geometry for SkSurfaceProps is now kUnknown instead of kRGB_H.
|
|
|
|
|
The removal was guarded by the SK_LEGACY_SURFACE_PROPS build flag which was later removed.
|
|
|
|
|
https://review.skia.org/322490
|
|
|
|
|
https://review.skia.org/329364
|
|
|
|
|
|
2020-10-19 17:31:49 +00:00
|
|
|
|
* Legacy 8-bit YUV interface removed from SkImageGenerator. Use more flexible SkYUVAPixmaps-
|
|
|
|
|
based interface instead.
|
|
|
|
|
https://review.skia.org/327917
|
|
|
|
|
|
2020-10-19 14:55:45 +00:00
|
|
|
|
* New variant of SkImage::MakeFromYUVATextures. Takes a new type GrYUVATextures
|
|
|
|
|
which wraps an SkYUVAInfo and compatible set of GrBackendTextures. The provides
|
|
|
|
|
a more complete and structured specification of the planar configuration. Previous
|
|
|
|
|
version is deprecated.
|
2020-11-04 21:54:28 +00:00
|
|
|
|
Already deprecated MakeFromYUVATexturesCopyToExternal added to replace other deprecated
|
|
|
|
|
APIs. It's not recommended that clients use this and instead use the pattern described
|
|
|
|
|
in the API comment.
|
2020-10-19 17:31:49 +00:00
|
|
|
|
https://review.skia.org/317762
|
2020-11-04 21:54:28 +00:00
|
|
|
|
https://review.skia.org/329956
|
2020-10-19 14:55:45 +00:00
|
|
|
|
|
2020-10-19 14:07:48 +00:00
|
|
|
|
* Add field to GrContextOptions to disable mipmap support even if the backend
|
|
|
|
|
supports it.
|
|
|
|
|
|
2020-10-16 16:04:18 +00:00
|
|
|
|
* SkTPin() removed from public API.
|
|
|
|
|
|
2020-10-09 14:45:07 +00:00
|
|
|
|
* Add new SkImageFilters::Blend factory function, in place of the now deprecated
|
|
|
|
|
SkImageFilters::Xfermode factory function. Behavior is identical, but name better matches
|
|
|
|
|
conventions in SkShader and SkColorFilter.
|
|
|
|
|
https://review.skia.org/324623
|
|
|
|
|
|
2020-10-09 14:31:28 +00:00
|
|
|
|
* SkImageFilters::Foo() factory functions now accept SkIRect, SkRect, and optional SkIRect* or
|
|
|
|
|
SkRect*, instead of previously just the optional SkIRect*. Internally, the crop rects are stored
|
|
|
|
|
as floats to allow for fractional crops to be defined in the local coordinate system (before
|
|
|
|
|
transformation by the canvas matrix).
|
|
|
|
|
https://review.skia.org/324622
|
|
|
|
|
|
Add SkImageFilters::Shader in place of Paint factory
SkImageFilters::Paint did not use every slot of the SkPaint, with only
its color, alpha, color filter, and shader having a meaningful effect on
the image filter result. It was always blended into a transparent dst,
so blend mode wasn't very relevant, and it was always filled to whatever
required geometry, so stroke style, path effect, and mask filters were
ignored or not well specified.
Color, alpha, and color filter can all be combined into an SkShader, so
a more constrained SkImageFilters::Shader provides the same useful
capabilities without as many surprises.
SkImageFilters::Paint still exists, but is deprecated to be removed
once I've confirmed clients aren't depending on it.
Bug: skia:9310
Change-Id: I11a82bda1a5d440726cf4e2b5bfaae4929568679
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/323680
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2020-10-07 19:27:20 +00:00
|
|
|
|
* Add new SkImageFilters::Shader factory and deprecate SkImageFilters::Paint factory. All
|
|
|
|
|
supported/valid Paint() filters can be represented more cleanly as a Shader image filter.
|
|
|
|
|
https://review.skia.org/323680
|
|
|
|
|
|
Reland "Reland "Take GrContext private, GrDDLContext inherit from GrRecordingContext""
This reverts commit cf43fc676856c4db0122ff3bcb49d90b0e7b1115.
Reason for revert: Fixed g3
Original change's description:
> Revert "Reland "Take GrContext private, GrDDLContext inherit from GrRecordingContext""
>
> This reverts commit ff13ffbeacec5335cfdb84c8a9d20bb78e10da58.
>
> Reason for revert: Blink in g3
>
> Original change's description:
> > Reland "Take GrContext private, GrDDLContext inherit from GrRecordingContext"
> >
> > This reverts commit 89bdc90ac877dc8cd49c86c35a20d9df0d3b9016.
> >
> > Reason for revert: Fix metal
> >
> > Original change's description:
> > > Revert "Take GrContext private, GrDDLContext inherit from GrRecordingContext"
> > >
> > > This reverts commit d2daa94edeca88281796524fae45f38f11a7bef2.
> > >
> > > Reason for revert: Metaru
> > >
> > > Original change's description:
> > > > Take GrContext private, GrDDLContext inherit from GrRecordingContext
> > > >
> > > > Woo!
> > > >
> > > > Change-Id: I8d201b709343dc18cad31ea740575285dd035f35
> > > > Docs-Preview: https://skia.org/?cl=317436
> > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317436
> > > > Reviewed-by: Robert Phillips <robertphillips@google.com>
> > > > Reviewed-by: Brian Salomon <bsalomon@google.com>
> > > > Commit-Queue: Adlai Holler <adlai@google.com>
> > >
> > > TBR=bsalomon@google.com,robertphillips@google.com,adlai@google.com
> > >
> > > Change-Id: I9b58dee285fbdc49ebc8e76df5da0fe224cf9787
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/318758
> > > Reviewed-by: Adlai Holler <adlai@google.com>
> > > Commit-Queue: Adlai Holler <adlai@google.com>
> >
> > TBR=bsalomon@google.com,robertphillips@google.com,adlai@google.com
> >
> >
> > Change-Id: Id4b10795193a904cd4ed8c36e60e74abe3b6702a
> > Docs-Preview: https://skia.org/?cl=318759
> > Cq-Include-Trybots: luci.skia.skia.primary:Build-Mac10.15.5-Clang-arm64-Debug-iOS_Metal,Build-Mac-Clang-x86_64-Debug-Metal
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/318759
> > Commit-Queue: Adlai Holler <adlai@google.com>
> > Reviewed-by: Adlai Holler <adlai@google.com>
>
> TBR=bsalomon@google.com,robertphillips@google.com,adlai@google.com
>
> Change-Id: Ib20fe933120d56b72efaec73a0bedec60bc28def
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319184
> Commit-Queue: Adlai Holler <adlai@google.com>
> Reviewed-by: Adlai Holler <adlai@google.com>
TBR=bsalomon@google.com,robertphillips@google.com,adlai@google.com
Change-Id: I4f01291f4b3bfbb8fd7dd8cf2bf8415430c3392e
Docs-Preview: https://skia.org/?cl=322437
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/322437
Reviewed-by: Adlai Holler <adlai@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Adlai Holler <adlai@google.com>
Auto-Submit: Adlai Holler <adlai@google.com>
2020-10-06 18:04:35 +00:00
|
|
|
|
* GrContext has been replaced by two separate classes: GrDirectContext which is
|
|
|
|
|
the traditional notion of GrContext, and GrRecordingContext which is a context
|
|
|
|
|
that is recording an SkDeferredDisplayList and therefore has reduced functionality.
|
|
|
|
|
Unless you are using SkDeferredDisplayList, migrate directly to GrDirectContext in
|
|
|
|
|
all cases.
|
|
|
|
|
|
2020-10-06 14:07:38 +00:00
|
|
|
|
* CPU sync bool added to SkSurface::flushAndSubmit() and GrContext::flushAndSubmit()
|
|
|
|
|
|
2020-10-05 17:25:05 +00:00
|
|
|
|
* Removed legacy variant of SkImage::MakeFromYUVAPixmaps. Use the version that
|
|
|
|
|
takes SkYUVAPixmaps instead. It has a more structured description of the
|
|
|
|
|
planar configuration.
|
|
|
|
|
https://review.skia.org/322480
|
|
|
|
|
|
2020-10-02 18:37:57 +00:00
|
|
|
|
* Some SkImage YUV image factories have been removed. Replacement patterns
|
|
|
|
|
outlined below.
|
|
|
|
|
SkImage::MakeFromYUVATexturesCopy
|
|
|
|
|
1) Make SkImage from YUVA planes using SkImage::MakeFromYUVATextures
|
|
|
|
|
2) Use Skia to allocate a surface using SkSurface::MakeRenderTarget
|
|
|
|
|
3) surface->getCanvas()->drawImage(image, 0, 0);
|
|
|
|
|
4) surface->makeImageSnapShot() produces RGBA image.
|
|
|
|
|
SkImage::MakeFromYUVATexturesCopyWithExternalBackend
|
|
|
|
|
1) Make image using MakeFromYUVATextures
|
|
|
|
|
2) Make a SkSurface around result texture using SkSurface::MakeFromBackendTexture
|
|
|
|
|
3) surface->getCanvas()->drawImage(image, 0, 0);
|
|
|
|
|
4) surface->flushAndSubmit()
|
|
|
|
|
5) Optional: SkImage::MakeFromBackendTexture() to use as SkImage.
|
|
|
|
|
SkImage::MakeFromNV12TexturesCopy
|
|
|
|
|
Same as SkImage::MakeFromYUVATexturesCopy
|
|
|
|
|
https://review.skia.org/321537
|
|
|
|
|
|
2020-10-02 15:13:33 +00:00
|
|
|
|
* GrBackendRenderTargets which are created with a stencilBits param, now require
|
|
|
|
|
the stencilBits to be 0, 8, or 16.
|
|
|
|
|
https://review.skia.org/321545
|
|
|
|
|
|
2020-10-02 12:44:30 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
|
|
|
|
Milestone 87
|
|
|
|
|
------------
|
|
|
|
|
|
2020-09-28 21:02:49 +00:00
|
|
|
|
* GrVkImageInfo now has a field for sample count. GrBackendRenderTarget constructor
|
|
|
|
|
that took both a GrVkImageInfo and separate sample count is deprecated. Use the
|
2020-09-29 20:52:49 +00:00
|
|
|
|
version without sample count instead. Similarly, GrD3DTextureResourceInfo now
|
|
|
|
|
has a sample count field and GrBackendRenderTarget no longer takes a separate
|
2020-09-30 17:50:18 +00:00
|
|
|
|
sample count for Direct3D. The sample count for GrBackendRenderTarget is now
|
|
|
|
|
directly queried from MtlTexture rather than passed separately. The version that
|
|
|
|
|
takes a separate sample count is deprecated and the parameter is ignored.
|
2020-09-29 20:52:49 +00:00
|
|
|
|
https://review.skia.org/320262
|
|
|
|
|
https://review.skia.org/320757
|
2020-09-30 17:50:18 +00:00
|
|
|
|
https://review.skia.org/320956
|
2020-09-28 21:02:49 +00:00
|
|
|
|
|
2020-09-28 19:36:00 +00:00
|
|
|
|
* Added deprecation warning for Metal support on MacOS 10.13, iOS 8.3, and older.
|
|
|
|
|
https://review.skia.org/320260
|
|
|
|
|
|
2020-09-28 21:02:49 +00:00
|
|
|
|
* GrVkImageInfo now has a field for sample count. GrBackendRenderTarget constructor
|
|
|
|
|
that took both a GrVkImageInfo and separate sample count is deprecated. Use the
|
|
|
|
|
version without sample count instead.
|
|
|
|
|
|
2020-09-28 14:33:42 +00:00
|
|
|
|
* Update SkClipOp::kMax_EnumValue to include only intersect and difference when
|
|
|
|
|
SK_SUPPORT_DEPRECATED_CLIPOPS is not defined.
|
|
|
|
|
https://review.skia.org/320064
|
|
|
|
|
|
2020-09-23 20:29:51 +00:00
|
|
|
|
* Add support for external allocator for Direct3D 12 backend.
|
|
|
|
|
Defines base classes for an allocation associated with a backend texture and a
|
|
|
|
|
a memory allocator to create such allocations.
|
|
|
|
|
Adds memory allocator to backend context.
|
|
|
|
|
https://review.skia.org/317243
|
|
|
|
|
|
2020-09-23 18:23:36 +00:00
|
|
|
|
* Add new optional parameter to GrContext::setBackend[Texture/RenderTarget]State which can
|
|
|
|
|
be used to return the previous GrBackendSurfaceMutableState before the requested change.
|
|
|
|
|
https://review.skia.org/318698
|
|
|
|
|
|
Reland "Enable novel GrClipStack on bots, disable elsewhere"
This reverts commit f6e0f58b2ea5748da14a29c3da59a984c1c4c180.
Reason for revert: benches and tests updated here: https://skia-review.googlesource.com/c/skia/+/317380
Original change's description:
> Revert "Enable novel GrClipStack on bots, disable elsewhere"
>
> This reverts commit e1ade2ac4a8d11065395f4e2ea85891495d82bcb.
>
> Reason for revert: Need to remove benchmarks that use deprecated SkClipOps first.
>
> Original change's description:
> > Enable novel GrClipStack on bots, disable elsewhere
> >
> > As a result of this change, the new GrClipStack will run on all of our
> > default bots. However, the SK_DISABLE_NEW_GR_CLICK_STACK define is used
> > to explicitly disable the clip stack when we build for the Android
> > Framework, Google3, Flutter, and Fuchsia. These projects can have staging
> > controlled from within the skia repo. This CL in chromium also disables
> > the new clip stack: https://chromium-review.googlesource.com/c/chromium/src/+/2412768
> > and must land before this CL does in Skia.
> >
> > When GrClipStack originally landed, I had it disabled by checking the
> > value of the define SK_USE_NEW_GR_CLICK_STACK for 0 or 1. To be a little
> > simpler, and work with the flutter and fuchsia gn defines, this CL
> > switches GrClipStack control over to SK_DISABLE_NEW_GR_CLICK_STACK and
> > it just checks for whether or not it's defined.
> >
> > Bug: skia:10205
> > Change-Id: I6b8bd18290844c02839fe99fdf629b48ffd86f27
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317209
> > Reviewed-by: Robert Phillips <robertphillips@google.com>
> > Reviewed-by: Brian Salomon <bsalomon@google.com>
> > Commit-Queue: Michael Ludwig <michaelludwig@google.com>
>
> TBR=bsalomon@google.com,robertphillips@google.com,michaelludwig@google.com
>
> Change-Id: I14fddccfdea8e91ebad92e55193b0034f8bb28af
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: skia:10205
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317377
> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
> Commit-Queue: Michael Ludwig <michaelludwig@google.com>
TBR=bsalomon@google.com,robertphillips@google.com,michaelludwig@google.com
# Not skipping CQ checks because this is a reland.
Bug: skia:10205
Change-Id: I1f26496437ed04a79e9c1058428cdc867ae3be39
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317385
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2020-09-16 18:41:38 +00:00
|
|
|
|
* New optimized clip stack for GPU backends. Enabled by default but old behavior based on
|
|
|
|
|
SkClipStack can be restored by defining SK_DISABLE_NEW_GR_CLIP_STACK when building. It is not
|
|
|
|
|
compatible with SK_SUPPORT_DEPRECATED_CLIPOPS and we are targeting the removal of support for
|
|
|
|
|
the deprecated, expanding clip ops.
|
|
|
|
|
https://review.skia.org/317209
|
|
|
|
|
|
2020-08-25 17:33:45 +00:00
|
|
|
|
* GPU backends now properly honor the SkFilterQuality when calling drawAtlas.
|
|
|
|
|
https://review.skia.org/313081
|
|
|
|
|
|
2020-08-13 20:59:48 +00:00
|
|
|
|
* The signature of 'main' used with SkRuntimeEffect SkSL has changed. There is no longer an
|
|
|
|
|
'inout half4 color' parameter, effects must return their color instead.
|
|
|
|
|
Valid signatures are now 'half4 main()' or 'half4 main(float2 coord)'.
|
|
|
|
|
https://review.skia.org/310756
|
|
|
|
|
|
2020-09-18 18:09:51 +00:00
|
|
|
|
* New YUVA planar specifications for SkCodec, SkImageGenerator, SkImage::MakeFromYUVAPixmaps.
|
|
|
|
|
Chroma subsampling is specified in more structured way. SkCodec and SkImageGenerator
|
|
|
|
|
don't assume 3 planes with 8bit planar values. Old APIs are deprecated.
|
2020-08-24 13:18:16 +00:00
|
|
|
|
https://review.skia.org/309658
|
2020-08-27 15:00:04 +00:00
|
|
|
|
https://review.skia.org/312886
|
2020-09-01 19:01:15 +00:00
|
|
|
|
https://review.skia.org/314276
|
2020-09-18 18:09:51 +00:00
|
|
|
|
https://review.skia.org/316837
|
|
|
|
|
https://review.skia.org/317097
|
2020-08-24 13:18:16 +00:00
|
|
|
|
|
2020-08-21 15:26:12 +00:00
|
|
|
|
* Added VkImageUsageFlags to GrVkImageInfo struct.
|
|
|
|
|
|
2020-08-20 19:59:08 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2020-06-25 17:10:29 +00:00
|
|
|
|
Milestone 86
|
|
|
|
|
------------
|
2020-06-30 17:42:46 +00:00
|
|
|
|
|
Remove 'in' variables from SkRuntimeEffect
Runtime effects previously allowed two kinds of global input variables:
'in' variables could be bool, int, or float. 'uniform' could be float,
vector, or matrix. Uniform variables worked like you'd expect, but 'in'
variables were baked into the program statically. There was a large
amount of machinery to make this work, and it meant that 'in' variables
needed to have values before we could make decisions about program
caching, and before we could catch some errors. It was also essentially
syntactic sugar over the client just inserting the value into their SkSL
as a string. Finally: No one was using the feature.
To simplify the mental model, and make the API much more predictable,
this CL removes 'in' variables entirely. We no longer need to
"specialize" runtime effect programs, which means we can catch more
errors up front (those not detected until optimization). All of the API
that referred to "inputs" (the previous term that unified 'in' and
'uniform') now just refers to "uniforms".
Bug: skia:10593
Change-Id: I971f620d868b259e652b3114f0b497c2620f4b0c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/309050
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2020-08-10 18:26:16 +00:00
|
|
|
|
* Remove support for 'in' variables from SkRuntimeEffect. API now exclusively refers to inputs
|
|
|
|
|
as 'uniforms'.
|
|
|
|
|
https://review.skia.org/309050
|
|
|
|
|
|
2020-08-05 20:51:10 +00:00
|
|
|
|
* Add SkImageGeneratorNDK and SkEncodeImageWithNDK for using Android's NDK APIs to decode and
|
|
|
|
|
encode.
|
|
|
|
|
https://review.skia.org/308185
|
|
|
|
|
https://review.skia.org/308800
|
2020-08-05 14:44:17 +00:00
|
|
|
|
|
2020-07-28 21:24:21 +00:00
|
|
|
|
* SkImage:remove DecodeToRaster, DecodeToTexture
|
|
|
|
|
https://review.skia.org/306331
|
|
|
|
|
|
2020-07-22 16:09:26 +00:00
|
|
|
|
* Add GrContext api to update compressed backend textures.
|
|
|
|
|
https://review.skia.org/302265
|
|
|
|
|
|
2020-07-21 13:27:25 +00:00
|
|
|
|
* Rename GrMipMapped to GrMipmapped for consistency with new APIs.
|
2020-07-21 14:32:07 +00:00
|
|
|
|
Also rename GrBackendTexture::hasMipMaps() to GrBackendTexture::hasMipmaps()
|
2020-07-21 13:27:25 +00:00
|
|
|
|
https://review.skia.org/304576
|
2020-07-21 14:32:07 +00:00
|
|
|
|
https://review.skia.org/304598
|
2020-07-21 13:27:25 +00:00
|
|
|
|
|
2020-07-08 15:44:25 +00:00
|
|
|
|
* Add option for clients to own semaphores after wait calls.
|
|
|
|
|
https://review.skia.org/301216
|
|
|
|
|
|
2020-06-30 17:42:46 +00:00
|
|
|
|
* Remove obsolete GrFlushFlags.
|
|
|
|
|
https://review.skia.org/298818
|
|
|
|
|
|
2020-06-26 01:00:17 +00:00
|
|
|
|
* Adds default flush() calls to SkSurface, SkImage, and GrContext. These calls do
|
2020-06-30 17:42:46 +00:00
|
|
|
|
a basic flush without a submit. If you haven't updated Skia in a couple releases
|
2020-06-26 01:00:17 +00:00
|
|
|
|
and still have flush() calls in your code that you expect to do a flush and
|
|
|
|
|
submit, you should update all those to the previously added flushAndSubmit() calls
|
|
|
|
|
instead.
|
|
|
|
|
https://review.skia.org/299141
|
|
|
|
|
|
2020-06-25 17:10:29 +00:00
|
|
|
|
* Enable BackendSemaphores for the Direct3D backend.
|
|
|
|
|
https://review.skia.org/298752
|
|
|
|
|
|
2020-06-26 17:32:09 +00:00
|
|
|
|
* Added SkImage:asyncRescaleAndReadPixels and SkImage::asyncRescaleAndReadPixelsYUV420
|
|
|
|
|
https://review.skia.org/299281
|
|
|
|
|
|
2020-07-06 19:50:15 +00:00
|
|
|
|
* Ganesh is moving towards replacing GrContext with the GrDirectContext/GrRecordingContext
|
|
|
|
|
pair. GrDirectContexts have _direct_ access to the GPU and are very similar to the old
|
|
|
|
|
GrContext. GrRecordingContexts are less powerful contexts that lack GPU access but provided
|
|
|
|
|
context-like utilities during DDL recording. SkSurfaces and SkCanvas will now only return
|
|
|
|
|
GrRecordingContexts. Clients requiring context features that need GPU access can then
|
|
|
|
|
check (via GrRecordingContext::asDirectContext) if the available recording context is actually
|
|
|
|
|
a direct context.
|
|
|
|
|
|
2020-07-28 13:23:54 +00:00
|
|
|
|
* Replace #defined values in SkString with equivalent constexprs.
|
|
|
|
|
http://review.skia.org/306160
|
|
|
|
|
|
2020-06-25 17:10:29 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2020-05-15 14:53:49 +00:00
|
|
|
|
Milestone 85
|
|
|
|
|
------------
|
|
|
|
|
|
2020-06-24 14:19:52 +00:00
|
|
|
|
* Added GrContext::oomed() which reports whether Skia has seen a GL_OUT_OF_MEMORY
|
|
|
|
|
error from Open GL [ES] or VK_ERROR_OUT_OF_*_MEMORY from Vulkan.
|
|
|
|
|
https://review.skia.org/298216
|
2020-06-09 21:29:32 +00:00
|
|
|
|
|
2020-06-11 15:51:06 +00:00
|
|
|
|
* Add option on SkSurface::flush to pass in a GrBackendSurfaceMutableState which
|
|
|
|
|
we will set the gpu backend surface to be at the end of the flush.
|
|
|
|
|
https://review.skia.org/295567
|
|
|
|
|
|
2020-06-09 21:29:32 +00:00
|
|
|
|
* Add GrContext function to set mutable state on a backend surface. Currently this
|
|
|
|
|
is only used for setting vulkan VkImage layout and queue family.
|
|
|
|
|
https://review.skia.org/293844
|
|
|
|
|
|
2020-06-03 02:01:39 +00:00
|
|
|
|
* SkSurface factores that take GrBackendTexture or GrBackendRenderTarget now always
|
2020-06-09 21:29:32 +00:00
|
|
|
|
call the release proc (if provided) on failure. SkSurface::replaceBackendTexture
|
2020-06-03 02:01:39 +00:00
|
|
|
|
also calls the release proc on failure.
|
|
|
|
|
https://review.skia.org/293762
|
|
|
|
|
|
2020-06-02 15:47:26 +00:00
|
|
|
|
* SkSurface::asyncRescaleAndReadPixels and SkSurfaceasyncRescaleAndReadPixelsYUV420
|
|
|
|
|
now require explicit GrContext submit to guarantee finite time before callback
|
|
|
|
|
is invoked.
|
|
|
|
|
https://review.skia.org/292840
|
2020-05-15 14:53:49 +00:00
|
|
|
|
|
2020-06-02 15:10:41 +00:00
|
|
|
|
* Add VkSharingMode field to GrVkImageInfo.
|
|
|
|
|
https://review.skia.org/293559
|
|
|
|
|
|
2020-05-21 15:14:31 +00:00
|
|
|
|
* Move SkBitmapRegionDecoder into client_utils/android.
|
|
|
|
|
|
2020-06-03 15:19:49 +00:00
|
|
|
|
* SkCanvas.clear and SkCanvas.drawColor now accept SkColor4f in addition to SkColor.
|
|
|
|
|
|
2020-05-28 21:44:05 +00:00
|
|
|
|
* Remove SkSurface::MakeFromBackendTextureAsRenderTarget.
|
|
|
|
|
This factory existed to work around issues with GL_TEXTURE_RECTANGLE that existed
|
|
|
|
|
in Chrome's command buffer. Those issues have since been resolved. Use
|
|
|
|
|
SkSurface::MakeFromBackendTexutre or SkSurface::MakeFromBackendRenderTarget instead.
|
|
|
|
|
https://review.skia.org/292719
|
|
|
|
|
|
2020-05-26 15:26:45 +00:00
|
|
|
|
* Adds submittedProc callback to GrFlushInfo which will be called when the work
|
|
|
|
|
from the flush call is submitted to the GPU. This is specifically useful for knowing
|
|
|
|
|
when semahpores sent with the flush have been submitted and can be waiting on.
|
|
|
|
|
https://review.skia.org/291078
|
|
|
|
|
|
2020-05-20 17:16:00 +00:00
|
|
|
|
* GrContext submit is now required to be called in order to send GPU work to the
|
|
|
|
|
actual GPU. The flush calls simply produces 3D API specific objects that are ready
|
|
|
|
|
to be submitted (e.g. command buffers). For the GL backend, the flush will still
|
|
|
|
|
send commands to the driver. However, clients should still assume the must call
|
|
|
|
|
submit which is where any glFlush that is need for sync objects will be called. There,
|
|
|
|
|
are flushAndSubmit() functions of GrContext, SkSurface, and SkImage that will act
|
|
|
|
|
like the previous flush() functions. This will flush the work and immediately call
|
|
|
|
|
submit.
|
|
|
|
|
https://review.skia.org/289033
|
|
|
|
|
|
2020-05-19 22:06:26 +00:00
|
|
|
|
* Remove deprecated version of flush calls on GrContext and SkSurface.
|
|
|
|
|
https://review.skia.org/2290540
|
|
|
|
|
|
2020-05-15 17:04:48 +00:00
|
|
|
|
* SkCanvas::drawVertices and drawPatch now support mapping an SkShader without explicit
|
|
|
|
|
texture coordinates. If they're not supplied, the local positions (vertex position or
|
|
|
|
|
patch cubic positions) will be directly used to sample the SkShader.
|
|
|
|
|
https://review.skia.org/290130
|
|
|
|
|
|
2020-05-15 14:53:49 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2020-04-03 16:01:51 +00:00
|
|
|
|
Milestone 84
|
2020-05-15 14:53:49 +00:00
|
|
|
|
------------
|
2020-05-13 18:11:40 +00:00
|
|
|
|
|
2020-05-13 19:32:04 +00:00
|
|
|
|
* Add api on GrContext, updateBackendTexture that will upload new data to a
|
|
|
|
|
GrBackendTexture.
|
|
|
|
|
https://review.skia.org/288909
|
|
|
|
|
|
2020-05-13 18:11:40 +00:00
|
|
|
|
* Add GrContext getter to SkSurface.
|
|
|
|
|
https://review.skia.org/289479
|
|
|
|
|
|
2020-05-13 18:07:40 +00:00
|
|
|
|
* Deprecate GrContext and SkSurface flush() call and replace ith with flushAndSubmit().
|
|
|
|
|
This only effects the default flush call that takes no parameters.
|
|
|
|
|
https://review.skia.org/289478
|
2020-04-03 16:01:51 +00:00
|
|
|
|
|
2020-05-06 15:40:03 +00:00
|
|
|
|
* GrContext::createBackendTexture functions that initialize the texture no longer
|
|
|
|
|
guarantee that all the data has been uploaded and the gpu is done with the texture.
|
|
|
|
|
Instead the client can assume the upload work has been submitted to the gpu and they
|
|
|
|
|
must wait for that work to finish before deleting the texture. This can be done via
|
|
|
|
|
their own synchronization or by passing in a finish proc into the create calls which
|
|
|
|
|
will be called when it is safe to delete the texture (at least in terms of work
|
|
|
|
|
done during the create).
|
|
|
|
|
https://review.skia.org/286517
|
2020-04-03 16:01:51 +00:00
|
|
|
|
|
2020-05-05 18:40:42 +00:00
|
|
|
|
* Remove unused SkMaskFilter helpers: compbine, compose
|
|
|
|
|
Note: shadermaskfilter will likely be removed next (clipShader should serve)
|
|
|
|
|
|
2020-05-01 16:34:57 +00:00
|
|
|
|
* Add back SkCanvas::kPreserveLCDText_SaveLayerFlag to indicate that saveLayer()
|
|
|
|
|
will preserve LCD-text. All text in the layer must be drawn on opaque background
|
|
|
|
|
to ensure correct rendering.
|
|
|
|
|
|
2020-04-24 17:00:48 +00:00
|
|
|
|
* Add the new directory client_utils/ for code that is specific to a single client and
|
|
|
|
|
should be considered separate from Skia proper. Move SkFrontBufferedStream into the
|
|
|
|
|
subdir android/.
|
|
|
|
|
|
2020-04-24 12:44:50 +00:00
|
|
|
|
* SkBitmap and SkPixmap's erase() methods now treat their color parameters
|
|
|
|
|
consistently with the rest of Skia, with all SkColors and any untagged
|
|
|
|
|
SkColor4fs interpreted as sRGB, not as a color in the bitmap's color space.
|
|
|
|
|
SkPixmap::erase(SkColor4f) now takes an SkColorSpace, so you can pass
|
|
|
|
|
pixmap.colorSpace() if you want the old behavior.
|
|
|
|
|
|
2020-04-14 19:44:21 +00:00
|
|
|
|
* SkCamera.h and SkMatrix44.h are DEPRECATED.
|
2020-04-14 15:35:40 +00:00
|
|
|
|
Use SkM44 if you want to have 3d transformations.
|
|
|
|
|
|
2020-04-09 17:00:44 +00:00
|
|
|
|
* Changed Dilate and Erode image filters to take SkScalar for radius instead of int. While
|
|
|
|
|
the image filters themselves are defined in terms of discrete pixels, the radii provided by
|
|
|
|
|
the user are mapped through the CTM so taking ints forced over discretization. After mapping
|
|
|
|
|
through the CTM the radii are now rounded to pixels.
|
|
|
|
|
https://review.skia.org/281731
|
|
|
|
|
https://review.skia.org/282636
|
|
|
|
|
|
2020-04-08 16:52:51 +00:00
|
|
|
|
* Updated the contract of GrContext and SkSurface flush calls in regards to semaphores. Made it
|
|
|
|
|
clear that the caller is responsible for deleting any initialized semaphores after the flush
|
|
|
|
|
call regardless if we were able to submit them or not. Also, allows skia to only submit a
|
|
|
|
|
subset of the requested semaphores if we failed to create some.
|
|
|
|
|
https://review.skia.org/282265
|
|
|
|
|
|
|
|
|
|
|
2020-04-07 17:48:15 +00:00
|
|
|
|
* SkCanvas::drawVertices will now always fill the triangles specified by the vertices. Previously,
|
|
|
|
|
vertices with no colors and no (texture coordinates or shader) would be drawn in wireframe.
|
|
|
|
|
https://review.skia.org/282043
|
|
|
|
|
|
2020-04-03 16:01:51 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2020-03-16 14:50:49 +00:00
|
|
|
|
Milestone 83
|
2020-05-15 14:53:49 +00:00
|
|
|
|
------------
|
2019-10-22 19:45:45 +00:00
|
|
|
|
|
2020-03-25 17:13:20 +00:00
|
|
|
|
* Remove localmatrix option from SkShaders::[Blend, Lerp]
|
|
|
|
|
|
2020-03-20 15:23:39 +00:00
|
|
|
|
* Fill out Direct3D parameters for backend textures and backend rendertargets.
|
|
|
|
|
|
2020-03-18 14:06:13 +00:00
|
|
|
|
* SkImage::makeTextureImage() takes an optional SkBudgeted param
|
2020-03-12 14:52:15 +00:00
|
|
|
|
|
2020-03-19 19:54:28 +00:00
|
|
|
|
* Made non-GL builds of GPU backend more robust.
|
|
|
|
|
https://review.skia.org/277456
|
|
|
|
|
|
|
|
|
|
* MoltenVK support removed. Use Metal backend instead.
|
|
|
|
|
https://review.skia.org/277612
|
2020-03-16 14:50:49 +00:00
|
|
|
|
|
|
|
|
|
* * *
|
|
|
|
|
|
|
|
|
|
Milestone 82
|
2020-05-15 14:53:49 +00:00
|
|
|
|
------------
|
2020-03-16 14:50:49 +00:00
|
|
|
|
|
2020-03-12 14:52:15 +00:00
|
|
|
|
* Removed drawBitmap and related functions from SkDevice; all public drawBitmap functions on
|
|
|
|
|
SkCanvas automatically wrap the bitmap in an SkImage and call the equivalent drawImage function.
|
|
|
|
|
Drawing mutable SkBitmaps will now incur a mandatory copy. Switch to using SkImage directly or
|
|
|
|
|
mark the bitmap as immutable before drawing.
|
|
|
|
|
|
2020-03-11 16:26:56 +00:00
|
|
|
|
* Removed "volatile" flag from SkVertices. All SkVertices objects are assumed to be
|
|
|
|
|
volatile (the previous default behavior).
|
|
|
|
|
|
2020-03-12 14:52:15 +00:00
|
|
|
|
* Removed exotic legacy bitmap functions from SkCanvas (drawBitmapLattic, drawBitmapNine); the
|
|
|
|
|
exotic SkImage functions still exist.
|
|
|
|
|
|
2020-03-09 18:23:30 +00:00
|
|
|
|
* Make it possible to selectively turn on/off individual encoders/decoders,
|
|
|
|
|
using skia_use_(libpng/libjpeg_turbo/libwebp)(decode/encode).
|
|
|
|
|
|
2020-03-05 19:14:18 +00:00
|
|
|
|
* Removed GrGpuResource, GrSurface, and GrTexture from public api. These were not
|
2020-03-06 18:07:10 +00:00
|
|
|
|
meant to be public, and we now can move them into src. Also removed getTexture
|
|
|
|
|
function from SkImage.h
|
2020-03-05 19:14:18 +00:00
|
|
|
|
|
2020-03-02 19:57:09 +00:00
|
|
|
|
* Removed Bones from SkVertices
|
|
|
|
|
|
2020-02-25 17:13:29 +00:00
|
|
|
|
* Added a field to GrContextOptions that controls whether GL errors are checked after
|
|
|
|
|
GL calls that allocate textures, etc. It also controls checking for shader compile
|
|
|
|
|
success, and program linking success.
|
|
|
|
|
|
2020-02-24 13:38:34 +00:00
|
|
|
|
* Made SkDeferredDisplayList.h officially part of the public API (i.e., moved it to
|
|
|
|
|
include/core). Also added a ProgramIterator to SkDeferredDisplayList which allows
|
|
|
|
|
clients to pre-compile some of the shaders the DDL requires.
|
|
|
|
|
|
2020-02-13 18:24:47 +00:00
|
|
|
|
* Added two new helper methods to SkSurfaceCharacterization: createBackendFormat and
|
|
|
|
|
createFBO0. These make it easier for clients to create new surface characterizations that
|
|
|
|
|
differ only a little from an existing surface characterization.
|
|
|
|
|
|
2020-02-07 15:36:46 +00:00
|
|
|
|
* Removed SkTMax and SkTMin.
|
2020-02-06 19:51:46 +00:00
|
|
|
|
* Removed SkTClamp and SkClampMax.
|
2020-02-06 17:52:25 +00:00
|
|
|
|
* Removed SkScalarClampMax and SkScalarPin.
|
2020-02-06 16:25:43 +00:00
|
|
|
|
* Removed SkMax32 and SkMin32.
|
2020-02-05 18:34:09 +00:00
|
|
|
|
* Removed SkMaxScalar and SkMinScalar.
|
|
|
|
|
|
2020-02-04 22:27:22 +00:00
|
|
|
|
* SkColorSetA now warns if the result is unused.
|
|
|
|
|
|
2020-02-03 17:39:54 +00:00
|
|
|
|
* An SkImageInfo with a null SkColorSpace passed to SkCodec::getPixels() and
|
|
|
|
|
related calls is treated as a request to do no color correction at decode
|
|
|
|
|
time.
|
2020-01-31 16:13:37 +00:00
|
|
|
|
|
2020-02-19 18:59:29 +00:00
|
|
|
|
* Add new APIs to add attributes to document structure node when
|
|
|
|
|
creating a tagged PDF.
|
|
|
|
|
|
2020-01-31 16:13:37 +00:00
|
|
|
|
* Remove CGFontRef parameter from SkCreateTypefaceFromCTFont.
|
|
|
|
|
Use CTFontManagerCreateFontDescriptorFromData instead of
|
|
|
|
|
CGFontCreateWithDataProvider to create CTFonts to avoid memory use issues.
|
|
|
|
|
|
2020-02-06 20:47:58 +00:00
|
|
|
|
* Added SkCodec:: and SkAndroidCodec::getICCProfile for reporting the native
|
|
|
|
|
ICC profile of an encoded image, even if it doesn't map to an SkColorSpace.
|
2020-01-30 18:57:13 +00:00
|
|
|
|
|
2020-02-14 23:10:40 +00:00
|
|
|
|
* SkSurface::ReplaceBackendTexture takes ContentChangeMode as a parameter,
|
|
|
|
|
which allow callers to specify whether retain a copy of the current content.
|
2020-03-12 14:52:15 +00:00
|
|
|
|
|
|
|
|
|
* Enforce the existing documentation in SkCanvas::saveLayer that it ignores
|
|
|
|
|
any mask filter on the restore SkPaint. The 'coverage' of a layer is
|
2020-03-03 15:39:41 +00:00
|
|
|
|
ill-defined, and masking should be handled by pre-clipping or using the
|
|
|
|
|
auxiliary clip mask image of the SaveLayerRec.
|
2020-02-14 23:10:40 +00:00
|
|
|
|
|
2020-01-30 18:57:13 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
|
|
|
|
Milestone 81
|
2020-05-15 14:53:49 +00:00
|
|
|
|
------------
|
2020-01-30 18:57:13 +00:00
|
|
|
|
|
2020-01-22 14:59:56 +00:00
|
|
|
|
* Added support for GL_NV_fence extension.
|
2019-12-05 20:27:42 +00:00
|
|
|
|
|
2020-01-22 15:44:00 +00:00
|
|
|
|
* Make SkImageInfo::validRowBytes require rowBytes to be pixel aligned. This
|
|
|
|
|
makes SkBitmap match the behavior of raster SkSurfaces in rejecting
|
|
|
|
|
non-aligned rowBytes.
|
|
|
|
|
|
2020-01-27 21:11:57 +00:00
|
|
|
|
* Added an SkImage::MakeRasterFromCompressed entry point. Also updated
|
|
|
|
|
SkImage::MakeFromCompressed to decompress the compressed image data if
|
|
|
|
|
the GPU doesn't support the specified compression type (i.e., macOS Metal
|
|
|
|
|
doesn't support BC1_RGB8_UNORM so such compressed images will always be
|
|
|
|
|
decompressed on that platform).
|
|
|
|
|
|
2020-01-15 17:56:52 +00:00
|
|
|
|
* Added support for BC1 RGBA compressed textures
|
|
|
|
|
|
2020-01-09 15:21:44 +00:00
|
|
|
|
* Added CachingHint to SkImage::makeRasterImage
|
|
|
|
|
|
2020-01-08 18:29:31 +00:00
|
|
|
|
* Added SkAnimatedImage::getCurrentFrame()
|
|
|
|
|
|
2020-01-08 17:15:44 +00:00
|
|
|
|
* Add support to create an SkSurface from an MTKView, with delayed acquisition of
|
|
|
|
|
the MTLDrawable.
|
|
|
|
|
Entry point: SkSurface::MakeFromMTKView
|
|
|
|
|
|
2020-01-06 20:20:18 +00:00
|
|
|
|
* Removed SkIRect::EmptyIRect(). Use SkIRect::MakeEmpty() instead.
|
|
|
|
|
https://review.skia.org/262382/
|
|
|
|
|
|
2020-01-30 18:57:13 +00:00
|
|
|
|
* Moved SkRuntimeEffect to public API. This is the new (experimental) interface to custom SkSL
|
|
|
|
|
shaders and color filters.
|
2020-01-02 16:55:24 +00:00
|
|
|
|
|
2020-01-30 18:57:13 +00:00
|
|
|
|
* Added BC1 compressed format support. Metal and Vulkan seem to only support the BC
|
|
|
|
|
formats on desktop machines.
|
2019-12-20 16:32:27 +00:00
|
|
|
|
|
2020-01-30 18:57:13 +00:00
|
|
|
|
* Added compressed format support for backend texture creation API.
|
|
|
|
|
This adds the following new entry points:
|
|
|
|
|
GrContext::compressedBackendFormat
|
|
|
|
|
GrContext::createCompressedBackendTexture
|
|
|
|
|
The latter method comes in variants that allow color-initialized and
|
|
|
|
|
compressed texture data initialized.
|
2019-12-17 19:44:37 +00:00
|
|
|
|
|
2019-12-13 15:48:33 +00:00
|
|
|
|
* Added SkMatrix::MakeTrans(SkIVector)
|
|
|
|
|
https://review.skia.org/259804
|
2019-12-05 20:27:42 +00:00
|
|
|
|
|
2020-01-30 18:57:13 +00:00
|
|
|
|
* * *
|
|
|
|
|
|
2019-12-05 20:27:42 +00:00
|
|
|
|
Milestone 80
|
2020-05-15 14:53:49 +00:00
|
|
|
|
------------
|
2019-12-05 20:27:42 +00:00
|
|
|
|
|
2019-12-04 20:17:54 +00:00
|
|
|
|
* For Vulkan backend, we now require that the VkDevice, Queue, and Instance outlive
|
|
|
|
|
either the destruction or abandoning of the GrContext. Additionally, all
|
|
|
|
|
GrBackendTextures created via GrContext::createBackendTexture calls must be deleted
|
|
|
|
|
before destroying or abandoning the GrContext.
|
|
|
|
|
https://review.skia.org/257921
|
|
|
|
|
|
2019-12-04 15:33:52 +00:00
|
|
|
|
* Removed SkSize& SkSize::operator=(const SkISize&)
|
|
|
|
|
https://review.skia.org/257880
|
|
|
|
|
|
2019-12-04 16:05:35 +00:00
|
|
|
|
* SkISize width() and height() now constexpr
|
|
|
|
|
https://review.skia.org/257680
|
|
|
|
|
|
2019-11-22 21:56:36 +00:00
|
|
|
|
* Added SkMatrix::MakeTrans(SkVector) and SkRect::makeOffset(SkVector).
|
|
|
|
|
https://review.skia.org/255782
|
|
|
|
|
|
2019-11-11 18:47:25 +00:00
|
|
|
|
* Added SkImageInfo::MakeA8(SkISize) and added optional color space parameter to
|
|
|
|
|
SkImageInfo::MakeN32Premul(SkISize).
|
2019-10-22 19:45:45 +00:00
|
|
|
|
|
2019-11-08 14:55:15 +00:00
|
|
|
|
* Added dimensions() and getFrameCount() to SkAnimatedImage
|
|
|
|
|
https://review.skia.org/253542
|
|
|
|
|
|
2019-11-05 16:41:16 +00:00
|
|
|
|
* Removed SkMatrix44 version of toXYZD50 from SkColorSpace. Switched to skcms types in
|
|
|
|
|
transferFn, invTrasnferFn, and gamutTransformTo functions.
|
|
|
|
|
https://review.skia.org/252596
|
|
|
|
|
|
2019-11-01 21:10:28 +00:00
|
|
|
|
* Removed rotation and YUV support from SkColorMatrix
|
|
|
|
|
https://review.skia.org/252188
|
|
|
|
|
|
2019-11-01 14:02:24 +00:00
|
|
|
|
* Added kBT2020_SkYUVColorSpace. This is BT.2020's YCbCr conversion (non-constant-luminance).
|
|
|
|
|
https://review.skia.org/252160
|
|
|
|
|
|
2019-10-28 13:16:47 +00:00
|
|
|
|
* Remove old async read pixels APIs
|
|
|
|
|
https://review.skia.org/251198
|
|
|
|
|
|
2019-11-04 20:01:52 +00:00
|
|
|
|
* Expose SkBlendModeCoeff and SkBlendMode_AsCoeff for Porter-Duff blend modes.
|
|
|
|
|
https://review.skia.org/252600
|
|
|
|
|
|
2019-10-22 19:45:45 +00:00
|
|
|
|
* * *
|
2019-10-17 04:03:36 +00:00
|
|
|
|
|
2019-10-22 19:45:45 +00:00
|
|
|
|
Milestone 79
|
2020-05-15 14:53:49 +00:00
|
|
|
|
------------
|
2019-10-17 04:03:36 +00:00
|
|
|
|
|
2019-10-04 14:18:34 +00:00
|
|
|
|
* SkTextBlob::Iter to discover the glyph indices and typefaces in each run
|
|
|
|
|
https://skia-review.googlesource.com/246296
|
|
|
|
|
|
2019-10-16 17:58:42 +00:00
|
|
|
|
* Added support for PQ and HLG transfer functions to SkColorSpace.
|
2019-10-17 04:03:36 +00:00
|
|
|
|
https://skia-review.googlesource.com/c/skia/+/249000
|
2019-10-16 17:58:42 +00:00
|
|
|
|
|
2019-10-09 16:38:22 +00:00
|
|
|
|
* Added new api on GrContext ComputeImageSize. This replaces the hold static helper
|
|
|
|
|
ComputeTextureSize.
|
2019-10-17 04:03:36 +00:00
|
|
|
|
https://skia-review.googlesource.com/c/skia/+/247337
|
2019-10-01 19:15:36 +00:00
|
|
|
|
|
2019-10-03 17:26:54 +00:00
|
|
|
|
* New versions of SkSurface async-rescale-and read APIs that allow client to extend
|
|
|
|
|
the lifetime of the result data. Old versions are deprecated.
|
|
|
|
|
https://review.skia.org/245457
|
|
|
|
|
|
2019-10-01 19:15:36 +00:00
|
|
|
|
* Add SkColorInfo. It's dimensionless SkImageInfo.
|
|
|
|
|
https://review.skia.org/245261
|
|
|
|
|
|
|
|
|
|
* Added SkPixmap-based createBackendTexture method to GrContext. This allows clients to create
|
|
|
|
|
backend resources (initialized with texture data) that Skia/Ganesh doesn't know about/track.
|
|
|
|
|
https://review.skia.org/244676
|
|
|
|
|
|
2019-09-28 01:05:24 +00:00
|
|
|
|
* Add explicit src and dst colorspace parameters to SkColorFilter::filterColor4f()
|
2019-10-01 19:15:36 +00:00
|
|
|
|
https://review.skia.org/244882
|
|
|
|
|
|
|
|
|
|
* Remove Vulkan/Metal float32 RGBA texture support
|
|
|
|
|
https://review.skia.org/244881
|
2019-09-28 01:05:24 +00:00
|
|
|
|
|
2019-09-19 17:03:09 +00:00
|
|
|
|
* Add SkSurface::MakeFromCAMetalLayer
|
2019-10-01 19:15:36 +00:00
|
|
|
|
https://review.skia.org/242563
|
|
|
|
|
|
|
|
|
|
* Added kAlpha_F16_SkColorType, kRG_F16_SkColorType and kRGBA_16161616_SkColorType.
|
|
|
|
|
This is intended to help support HDR YUV uses case (e.g., P010 and P016). As such,
|
|
|
|
|
the addition is focused on allowing creation of SkPixmaps and SkImages and not
|
|
|
|
|
SkSurfaces (i.e., who wants to render to render to these?)
|
|
|
|
|
https://review.skia.org/241357
|
2019-07-25 15:33:30 +00:00
|
|
|
|
|
2019-09-13 12:26:56 +00:00
|
|
|
|
* Start to move nested SkPath types (e.g. Direction, Verb) up to root level in SkPathTypes.h
|
2019-10-01 19:15:36 +00:00
|
|
|
|
https://review.skia.org/241079
|
2019-09-12 21:09:12 +00:00
|
|
|
|
|
2019-10-01 19:15:36 +00:00
|
|
|
|
* Remove isRectContour and ksNestedFillRects from public
|
|
|
|
|
https://review.skia.org/241078
|
|
|
|
|
|
|
|
|
|
* Added kRG_88_SkColorType. This is intended to help support YUV uses case (e.g., NV12).
|
|
|
|
|
As such, the addition is focused on allowing creation of SkPixmaps and SkImages and not
|
|
|
|
|
SkSurfaces (i.e., who wants to render to RG?)
|
|
|
|
|
https://review.skia.org/239930
|
|
|
|
|
https://review.skia.org/235797
|
2019-09-06 14:16:02 +00:00
|
|
|
|
|
|
|
|
|
* Make the size of program/pipeline caches configurable via
|
|
|
|
|
GrContextOptions::fRuntimeProgramCacheSize
|
|
|
|
|
https://review.skia.org/239756
|
|
|
|
|
|
2019-10-01 19:15:36 +00:00
|
|
|
|
* Added kAlpha_16_SkColorType and kRG_1616_SkColorType. This is intended to help support HDR YUV
|
|
|
|
|
uses case (e.g., P010 and P016). As such, the addition is focused on allowing creation of
|
|
|
|
|
SkPixmaps and SkImages and not SkSurfaces (i.e., who wants to render to render to these?)
|
|
|
|
|
https://review.skia.org/239930
|
|
|
|
|
|
|
|
|
|
* Add GrContext::precompileShader to allow up-front compilation of previously-cached shaders.
|
|
|
|
|
https://review.skia.org/239438
|
|
|
|
|
|
|
|
|
|
* * *
|
|
|
|
|
|
2019-07-25 15:33:30 +00:00
|
|
|
|
Milestone 78
|
2020-05-15 14:53:49 +00:00
|
|
|
|
------------
|
2019-07-25 15:33:30 +00:00
|
|
|
|
|
2019-08-20 15:28:37 +00:00
|
|
|
|
* SkDrawLooper is no longer supported in SkPaint or SkCanvas.
|
2019-08-20 18:52:02 +00:00
|
|
|
|
https://review.skia.org/230579
|
|
|
|
|
https://review.skia.org/231736
|
2019-07-29 21:52:48 +00:00
|
|
|
|
|
2019-08-20 18:52:02 +00:00
|
|
|
|
* SkPath::Iter::next() now ignores its consumDegenerates bools. Those will so
|
|
|
|
|
go away entirely
|
|
|
|
|
https://review.skia.org/235104
|
2019-08-16 17:30:34 +00:00
|
|
|
|
|
2019-08-20 15:28:37 +00:00
|
|
|
|
* SkImage: new factories: DecodeToRaster, DecodeToTexture
|
2019-08-20 18:52:02 +00:00
|
|
|
|
https://review.skia.org/234476
|
2019-08-14 15:08:41 +00:00
|
|
|
|
|
2019-08-20 15:28:37 +00:00
|
|
|
|
* SkImageFilter API refactor started:
|
|
|
|
|
- Provide new factory API in include/effects/SkImageFilters
|
|
|
|
|
- Consolidated enum types to use SkTileMode and SkColorChannel
|
|
|
|
|
- Hide filter implementation classes
|
2019-08-20 18:52:02 +00:00
|
|
|
|
- Hide previously public functions on SkImageFilter that were intended for
|
|
|
|
|
internal use only
|
|
|
|
|
https://review.skia.org/230198
|
|
|
|
|
https://review.skia.org/230876
|
|
|
|
|
https://review.skia.org/231256
|
2019-08-01 21:20:19 +00:00
|
|
|
|
|
2019-08-20 18:52:02 +00:00
|
|
|
|
* SkColorFilters::HSLAMatrix - new matrix color filter operating in HSLA
|
|
|
|
|
space.
|
|
|
|
|
https://review.skia.org/231736
|
2019-08-08 16:08:24 +00:00
|
|
|
|
|
2019-08-20 18:52:02 +00:00
|
|
|
|
* Modify GrBackendFormat getters to not return internal pointers. Use an enum
|
|
|
|
|
class for GL formats.
|
|
|
|
|
https://review.skia.org/233160
|
2019-08-09 13:41:48 +00:00
|
|
|
|
|
2019-08-20 15:28:37 +00:00
|
|
|
|
* Expose GrContext::dump() when SK_ENABLE_DUMP_GPU is defined.
|
2019-08-20 18:52:02 +00:00
|
|
|
|
https://review.skia.org/233557
|
2019-08-12 05:46:33 +00:00
|
|
|
|
|
2019-08-20 18:52:02 +00:00
|
|
|
|
* Vulkan backend now supports YCbCr sampler for I420 Vulkan images that are
|
|
|
|
|
not backed by external images.
|
|
|
|
|
https://review.skia.org/233776
|
2019-08-14 15:29:29 +00:00
|
|
|
|
|
2019-08-20 18:52:02 +00:00
|
|
|
|
* Add SkCodec::SelectionPolicy for distinguishing between decoding a still
|
|
|
|
|
image or an image sequence for a container format that has both (e.g. HEIF).
|
|
|
|
|
https://review.skia.org/232839
|
2019-08-14 17:19:04 +00:00
|
|
|
|
|
2019-08-20 18:52:02 +00:00
|
|
|
|
* SkImage::makeTextureImage and SkImage::MakeCrossContextFromPixmap no longer
|
|
|
|
|
take an SkColorSpace parameter. It was unused.
|
|
|
|
|
https://review.skia.org/234579
|
|
|
|
|
https://review.skia.org/234912
|
2019-08-14 20:14:51 +00:00
|
|
|
|
|
2019-08-20 18:52:02 +00:00
|
|
|
|
* SkImage::reinterpretColorSpace - to reinterpret image contents in a new
|
|
|
|
|
color space.
|
|
|
|
|
https://review.skia.org/234328
|
2019-08-15 16:13:53 +00:00
|
|
|
|
|
2019-08-20 15:28:37 +00:00
|
|
|
|
* Removed SkImage::MakeCrossContextFromEncoded.
|
2019-08-20 18:52:02 +00:00
|
|
|
|
https://review.skia.org/234912
|
2019-08-20 15:28:37 +00:00
|
|
|
|
|
2019-08-28 18:35:55 +00:00
|
|
|
|
* Add Metal support for GrFence, GrSemaphore, and GrBackendSemaphore
|
|
|
|
|
https://review.skia.org/233416
|
|
|
|
|
|
2019-08-20 15:28:37 +00:00
|
|
|
|
* SkMallocPixelRef: remove MakeDirect and MakeWithProc from API.
|
|
|
|
|
https://review.skia.org/234660
|
2019-08-27 13:12:15 +00:00
|
|
|
|
|
2019-08-27 19:25:49 +00:00
|
|
|
|
* Remove 4-parameter variant of SkRect::join() and intersect(), and
|
|
|
|
|
noemptycheck variants of intersect().
|
|
|
|
|
https://review.skia.org/235832
|
|
|
|
|
https://review.skia.org/237142
|
|
|
|
|
|
2019-08-27 13:12:15 +00:00
|
|
|
|
* Remove unused sk_sp comparison operators.
|
|
|
|
|
https://review.skia.org/236942
|
2019-08-27 19:25:49 +00:00
|
|
|
|
|
|
|
|
|
* Add SkColor4f variant to experimental_DrawEdgeAAQuad for SkiaRenderer.
|
|
|
|
|
https://review.skia.org/237492
|
2019-09-03 14:29:20 +00:00
|
|
|
|
|
|
|
|
|
* Deprecated maxCount resource cache limit for Ganesh.
|
|
|
|
|
This hasn't been relevant for a long time.
|
|
|
|
|
|
2019-09-03 18:59:26 +00:00
|
|
|
|
* Changed GrContextOptions' fDisallowGLSLBinaryCaching to fShaderCacheStrategy,
|
|
|
|
|
and allow caching SkSL.
|
|
|
|
|
https://review.skia.org/238856
|
2019-10-07 17:51:07 +00:00
|
|
|
|
|
|
|
|
|
* Use GL_QCOM_TILED_RENDERING to explicitly discard stencil
|
2019-10-22 19:45:45 +00:00
|
|
|
|
|
|
|
|
|
* Added RELEASE_NOTES.txt file
|
|
|
|
|
https://review.skia.org/229760
|
2019-12-27 21:56:38 +00:00
|
|
|
|
|
|
|
|
|
* Implemented internal support for OpenGL tessellation.
|