Flutter Engine
The Flutter Engine
|
#include "include/private/base/SkAlign.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkTLogic.h"
#include "include/private/base/SkTo.h"
#include <array>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <memory>
#include <type_traits>
#include <utility>
Go to the source code of this file.
Namespaces | |
namespace | skia_private |
Typedefs | |
template<auto F> | |
using | SkFunctionObject = SkOverloadedFunctionObject< std::remove_pointer_t< decltype(F)>, F > |
using | skia_private::UniqueVoidPtr = std::unique_ptr< void, SkOverloadedFunctionObject< void(void *), sk_free > > |
Functions | |
template<typename T > | |
void | sk_ignore_unused_variable (const T &) |
template<typename T > | |
static T | SkTAbs (T value) |
template<typename D , typename S > | |
D * | SkTAfter (S *ptr, size_t count=1) |
template<typename D , typename S > | |
D * | SkTAddOffset (S *ptr, ptrdiff_t byteOffset) |
template<typename C , std::size_t... Is> | |
constexpr auto | SkMakeArrayFromIndexSequence (C c, std::index_sequence< Is... > is) -> std::array< decltype(c(std::declval< typename decltype(is)::value_type >())), sizeof...(Is)> |
template<size_t N, typename C > | |
constexpr auto | SkMakeArray (C c) -> std::array< decltype(c(std::declval< typename std::index_sequence< N >::value_type >())), N > |
This file contains light-weight template classes for type-safe and exception-safe resource management.
Definition in file SkTemplates.h.
using SkFunctionObject = SkOverloadedFunctionObject<std::remove_pointer_t<decltype(F)>, F> |
Definition at line 73 of file SkTemplates.h.
Marks a local variable as known to be unused (to avoid warnings). Note that this does not prevent the local variable from being optimized away.
Definition at line 37 of file SkTemplates.h.
|
constexpr |
Definition at line 441 of file SkTemplates.h.
|
constexpr |
Definition at line 436 of file SkTemplates.h.
This is a general purpose absolute-value function. See SkAbs32 in (SkSafe32.h) for a 32-bit int specific version that asserts.
Definition at line 43 of file SkTemplates.h.
Returns a pointer to a D which comes byteOffset bytes after S.
Definition at line 60 of file SkTemplates.h.
Returns a pointer to a D which comes immediately after S[count].
Definition at line 53 of file SkTemplates.h.