skia2/include/utils
Ian Prest 94e34f7a1b Add a way to get 'active' props from SkCanvas
This CL adds two new APIs to SkCanvas: getBaseProps, and getTopProps.

SkCavas::getBaseProps is functionally identical to getProps, but returns
the SkSurfaceProps by value, rather than via an 'out' parameter.
SkCanvas::getProps is now considered deprecated.

SkCanvas::getTopProps returns the 'currently active' SkSurfaceProps,
i.e., it returns the props from the "top device".  This is useful
because the SkSurfaceProps can change when creating new layers.

Bug: skia:13483
Change-Id: Ia1d9a10ffdd929427f1f2c0a7c4ba6965d4bd3c0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/554736
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: Ian Prest <iapres@microsoft.com>
2022-07-12 13:52:36 +00:00
..
mac [bazel] Fix typo 2022-06-01 13:44:40 +00:00
BUILD.bazel [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
SkAnimCodecPlayer.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
SkBase64.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
SkCamera.h [includes] Enforce IWYU on src/utils 2022-04-28 17:32:20 +00:00
SkCanvasStateUtils.h [includes] Enforce IWYU on src/utils 2022-04-28 17:32:20 +00:00
SkCustomTypeface.h [includes] Enforce IWYU on src/utils 2022-04-28 17:32:20 +00:00
SkEventTracer.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
SkNoDrawCanvas.h
SkNullCanvas.h [includes] Enforce IWYU on src/utils 2022-04-28 17:32:20 +00:00
SkNWayCanvas.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
SkOrderedFontMgr.h [includes] Enforce IWYU on src/utils 2022-04-28 17:32:20 +00:00
SkPaintFilterCanvas.h Add a way to get 'active' props from SkCanvas 2022-07-12 13:52:36 +00:00
SkParse.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
SkParsePath.h
SkRandom.h
SkShadowUtils.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
SkTextUtils.h [includes] Reduce IWYU exports from SkTypes.h 2022-07-06 14:52:55 +00:00
SkTraceEventPhase.h