OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:SkImage
(Results
1 - 25
of
283
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/skia/src/pdf/
SkPDFBitmap.h
12
class
SkImage
;
17
* SkPDFBitmap wraps a
SkImage
and serializes it as an image Xobject.
21
sk_sp<SkPDFObject> SkPDFCreateBitmapObject(sk_sp<
SkImage
>,
SkKeyedImage.h
12
#include "
SkImage
.h"
17
The
SkImage
holds on to encoded data. The SkBitmapKey properly de-dups subsets.
22
SkKeyedImage(sk_sp<
SkImage
>);
32
const sk_sp<
SkImage
>& image() const { return fImage; }
33
sk_sp<
SkImage
> release();
37
sk_sp<
SkImage
> fImage;
45
SkBitmapKey SkBitmapKeyFromImage(const
SkImage
*);
SkKeyedImage.cpp
12
SkBitmapKey SkBitmapKeyFromImage(const
SkImage
* image) {
23
SkKeyedImage::SkKeyedImage(sk_sp<
SkImage
> i) : fImage(std::move(i)) {
27
SkKeyedImage::SkKeyedImage(const SkBitmap& bm) : fImage(
SkImage
::MakeFromBitmap(bm)) {
44
sk_sp<
SkImage
> SkKeyedImage::release() {
45
sk_sp<
SkImage
> image = std::move(fImage);
/external/skia/src/core/
SkImagePriv.h
11
#include "
SkImage
.h"
46
extern sk_sp<
SkImage
> SkMakeImageFromRasterBitmap(const SkBitmap&, SkCopyPixelsMode);
57
extern sk_sp<
SkImage
> SkMakeImageInColorSpace(const SkBitmap& src, sk_sp<SkColorSpace> dst,
64
extern const SkPixelRef* SkBitmapImageGetPixelRef(const
SkImage
* rasterImage);
75
* for a natively created gpu image (e.g.
SkImage
::MakeFromTexture)
80
bool SkImage_pinAsTexture(const
SkImage
*, GrContext*);
90
void SkImage_unpinAsTexture(const
SkImage
*, GrContext*);
97
sk_sp<
SkImage
> SkImageMakeRasterCopyAndAssignColorSpace(const
SkImage
*, SkColorSpace*);
SkDeduper.h
13
class
SkImage
;
23
virtual int findOrDefineImage(
SkImage
*) = 0;
33
virtual
SkImage
* getImage(int) = 0;
SkColorSpaceXformer.h
19
class
SkImage
;
30
sk_sp<
SkImage
> apply(const
SkImage
*);
31
sk_sp<
SkImage
> apply(const SkBitmap&);
59
Cache<
SkImage
> fImageCache;
SkPipe.h
12
#include "
SkImage
.h"
36
sk_sp<SkData> writeImage(
SkImage
*);
39
void writeImage(
SkImage
*, SkWStream*);
59
sk_sp<
SkImage
> readImage(const SkData* data) {
73
sk_sp<
SkImage
> readImage(const void*, size_t);
96
virtual sk_sp<SkData> serialize(
SkImage
*) = 0;
/external/skia/include/core/
SkImageDeserializer.h
15
class
SkImage
;
22
* Given a data containing serialized content, return an
SkImage
from it.
30
* The default implementation is to call
SkImage
::MakeFromEncoded(...)
32
virtual sk_sp<
SkImage
> makeFromData(SkData*, const SkIRect* subset);
33
virtual sk_sp<
SkImage
> makeFromMemory(const void* data, size_t length, const SkIRect* subset);
SkImage.h
35
*
SkImage
is an abstraction for drawing a rectagle of pixels, though the
40
* The content of
SkImage
is always immutable, though the actual storage may
44
*
SkImage
always has a non-zero dimensions. If there is a request to create a new image, either
48
class SK_API
SkImage
: public SkRefCnt {
53
static sk_sp<
SkImage
> MakeRasterCopy(const SkPixmap&);
54
static sk_sp<
SkImage
> MakeRasterData(const Info&, sk_sp<SkData> pixels, size_t rowBytes);
65
static sk_sp<
SkImage
> MakeFromRaster(const SkPixmap&, RasterReleaseProc, ReleaseContext);
71
static sk_sp<
SkImage
> MakeFromBitmap(const SkBitmap&);
74
* Construct a new
SkImage
based on the given ImageGenerator. Returns NULL on error.
79
static sk_sp<
SkImage
> MakeFromGenerator(std::unique_ptr<SkImageGenerator>
[
all
...]
/external/skia/src/image/
SkImage.cpp
36
SkImage
::
SkImage
(int width, int height, uint32_t uniqueID)
45
bool
SkImage
::peekPixels(SkPixmap* pm) const {
53
bool
SkImage
::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
58
bool
SkImage
::scalePixels(const SkPixmap& dst, SkFilterQuality quality, CachingHint chint) const {
80
SkAlphaType
SkImage
::alphaType() const {
84
SkColorSpace*
SkImage
::colorSpace() const {
88
sk_sp<SkColorSpace>
SkImage
::refColorSpace() const {
92
sk_sp<SkShader>
SkImage
::makeShader(SkShader::TileMode tileX, SkShader::TileMode tileY,
94
return SkImageShader::Make(sk_ref_sp(const_cast<
SkImage
*>(this)), tileX, tileY, localMatrix)
[
all
...]
SkImage_Base.h
12
#include "
SkImage
.h"
30
class SkImage_Base : public
SkImage
{
34
// User: returns image info for this
SkImage
.
70
virtual sk_sp<
SkImage
> onMakeSubset(const SkIRect&) const = 0;
83
// to know automatically those entries can be purged when this
SkImage
deleted.
93
virtual sk_sp<
SkImage
> onMakeColorSpace(sk_sp<SkColorSpace>, SkColorType,
102
typedef
SkImage
INHERITED;
105
static inline SkImage_Base* as_IB(
SkImage
* image) {
109
static inline SkImage_Base* as_IB(const sk_sp<
SkImage
>& image) {
113
static inline const SkImage_Base* as_IB(const
SkImage
* image)
[
all
...]
/external/skia/gm/
crosscontextimage.cpp
13
#include "
SkImage
.h"
24
sk_sp<
SkImage
> encodedImage =
SkImage
::MakeFromEncoded(encodedData);
27
sk_sp<
SkImage
> crossContextImage =
SkImage
::MakeCrossContextFromEncoded(
32
sk_sp<
SkImage
> encodedSubset = encodedImage->makeSubset(subset);
33
sk_sp<
SkImage
> crossContextSubset = crossContextImage->makeSubset(subset);
deferredtextureimage.cpp
10
#include "
SkImage
.h"
17
// Helper function that uploads the given
SkImage
using MakeFromDeferredTextureImageData and then
21
SkImage
::DeferredTextureImageUsageParams* params,
32
sk_sp<
SkImage
> encodedImage = GetResourceAsImage(resourceName);
49
sk_sp<
SkImage
> uploadedEncodedImage =
SkImage
::MakeFromDeferredTextureImageData(
61
sk_sp<
SkImage
> decodedImage =
SkImage
::MakeFromBitmap(bitmap);
73
sk_sp<
SkImage
> uploadedDecodedImage =
SkImage
::MakeFromDeferredTextureImageData
[
all
...]
encode.cpp
11
#include "
SkImage
.h"
36
sk_sp<
SkImage
> pngImage =
SkImage
::MakeFromEncoded(pngData);
37
sk_sp<
SkImage
> jpegImage =
SkImage
::MakeFromEncoded(jpegData);
grayscalejpg.cpp
9
#include "
SkImage
.h"
18
sk_sp<
SkImage
> image(GetResourceAsImage(kResource));
mipmap.cpp
11
#include "
SkImage
.h"
15
static sk_sp<
SkImage
> make_image() {
33
sk_sp<
SkImage
> img(make_image());//
SkImage
::NewFromEncoded(data));
55
static sk_sp<
SkImage
> make(sk_sp<SkColorSpace> cs) {
67
return
SkImage
::MakeFromBitmap(bm);
70
static void show_mips(SkCanvas* canvas,
SkImage
* img) {
92
sk_sp<
SkImage
> limg = make(nullptr);
93
sk_sp<
SkImage
> simg = make(SkColorSpace::MakeSRGB());
104
static sk_sp<
SkImage
> make_g8_gradient(sk_sp<SkColorSpace> cs)
[
all
...]
imagemasksubset.cpp
11
#include "
SkImage
.h"
22
sk_sp<
SkImage
> make_mask(const sk_sp<SkSurface>& surface) {
46
using MakerT = sk_sp<
SkImage
>(*)(SkCanvas*, const SkImageInfo&);
49
[](SkCanvas*, const SkImageInfo& info) -> sk_sp<
SkImage
> {
54
[](SkCanvas* c, const SkImageInfo& info) -> sk_sp<
SkImage
> {
63
[](SkCanvas*, const SkImageInfo& info) -> sk_sp<
SkImage
> {
64
return
SkImage
::MakeFromGenerator(skstd::make_unique<MaskGenerator>(info));
78
sk_sp<
SkImage
> image = makers[i](canvas, info);
81
sk_sp<
SkImage
> subset = image->makeSubset(kSubset);
/external/skia/src/gpu/
GrImageTextureMaker.h
12
#include "
SkImage
.h"
20
GrImageTextureMaker(GrContext* context, const
SkImage
* client,
SkImage
::CachingHint chint);
39
const
SkImage
* fClient;
41
SkImage
::CachingHint fCachingHint;
/external/skia/tools/
Resources.h
16
class
SkImage
;
24
sk_sp<
SkImage
> GetResourceAsImage(const char* resource);
imgblur.cpp
12
#include "
SkImage
.h"
47
sk_sp<
SkImage
> image(
SkImage
::MakeFromEncoded(data));
56
if (!image->asLegacyBitmap(&src,
SkImage
::kRW_LegacyBitmapMode)) {
/external/skia/include/effects/
SkImageSource.h
11
#include "
SkImage
.h"
16
static sk_sp<SkImageFilter> Make(sk_sp<
SkImage
> image);
17
static sk_sp<SkImageFilter> Make(sk_sp<
SkImage
> image,
35
explicit SkImageSource(sk_sp<
SkImage
>);
36
SkImageSource(sk_sp<
SkImage
>,
41
sk_sp<
SkImage
> fImage;
/external/skia/bench/
ClipMaskBench.cpp
12
#include "
SkImage
.h"
23
using MaskMakerFunc = sk_sp<
SkImage
> (*)(int);
46
sk_sp<
SkImage
> fClip;
49
DEF_BENCH(return new ClipMaskBench("a8", [](int size) -> sk_sp<
SkImage
> {
55
DEF_BENCH(return new ClipMaskBench("8888", [](int size) -> sk_sp<
SkImage
> {
61
DEF_BENCH(return new ClipMaskBench("picture", [](int size) -> sk_sp<
SkImage
> {
64
return
SkImage
::MakeFromPicture(recorder.finishRecordingAsPicture(), SkISize::Make(size, size),
65
nullptr, nullptr,
SkImage
::BitDepth::kU8,
/external/skia/tests/
ImageFrom565Bitmap.cpp
10
#include "
SkImage
.h"
18
REPORTER_ASSERT(r,
SkImage
::MakeFromBitmap(bm) != nullptr);
image-bitmap.cpp
11
#include "
SkImage
.h"
25
auto img =
SkImage
::MakeFromBitmap(bm);
26
auto imgA =
SkImage
::MakeFromBitmap(a);
27
auto imgB =
SkImage
::MakeFromBitmap(b);
/frameworks/base/libs/hwui/
VkLayer.h
21
#include <
SkImage
.h>
60
sk_sp<
SkImage
> getImage() {
75
sk_sp<
SkImage
> mImage;
Completed in 709 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>