Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
SkImage_Raster.h File Reference
#include "include/core/SkBitmap.h"
#include "include/core/SkImage.h"
#include "include/core/SkPixelRef.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkTo.h"
#include "src/core/SkImagePriv.h"
#include "src/core/SkMipmap.h"
#include "src/image/SkImage_Base.h"
#include <cstddef>
#include <cstdint>
#include <utility>

Go to the source code of this file.

Classes

class  SkImage_Raster
 

Namespaces

namespace  skgpu
 
namespace  skgpu::graphite
 

Functions

sk_sp< SkImageMakeRasterCopyPriv (const SkPixmap &pmap, uint32_t id)
 

Function Documentation

◆ MakeRasterCopyPriv()

sk_sp< SkImage > MakeRasterCopyPriv ( const SkPixmap pmap,
uint32_t  id 
)

Definition at line 165 of file SkImage_RasterFactories.cpp.

165 {
166 size_t size;
167 if (!valid_args(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) {
168 return nullptr;
169 }
170
171 // Here we actually make a copy of the caller's pixel data
173 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), id);
174}
static bool valid_args(const SkImageInfo &info, size_t rowBytes, size_t *minSize)
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
Definition SkData.cpp:111
size_t rowBytes() const
Definition SkPixmap.h:145
const SkImageInfo & info() const
Definition SkPixmap.h:135
const void * addr() const
Definition SkPixmap.h:153
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition switches.h:41
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259