Home
last modified time | relevance | path

Searched refs:SkData (Results 1 – 25 of 647) sorted by relevance

12345678910>>...26

/external/skqp/src/core/
DSkData.cpp16 SkData::SkData(const void* ptr, size_t size, ReleaseProc proc, void* context) { in SkData() function in SkData
26 SkData::SkData(size_t size) { in SkData() function in SkData
33 SkData::~SkData() { in ~SkData()
39 bool SkData::equals(const SkData* other) const { in equals()
47 size_t SkData::copyRange(size_t offset, size_t length, void* buffer) const { in copyRange()
62 void SkData::operator delete(void* p) { in operator delete()
66 sk_sp<SkData> SkData::PrivateNewWithCopy(const void* srcOrNull, size_t length) { in PrivateNewWithCopy()
68 return SkData::MakeEmpty(); in PrivateNewWithCopy()
71 const size_t actualLength = length + sizeof(SkData); in PrivateNewWithCopy()
75 sk_sp<SkData> data(new (storage) SkData(length)); in PrivateNewWithCopy()
[all …]
/external/skia/src/core/
DSkData.cpp16 SkData::SkData(const void* ptr, size_t size, ReleaseProc proc, void* context) { in SkData() function in SkData
26 SkData::SkData(size_t size) { in SkData() function in SkData
33 SkData::~SkData() { in ~SkData()
39 bool SkData::equals(const SkData* other) const { in equals()
47 size_t SkData::copyRange(size_t offset, size_t length, void* buffer) const { in copyRange()
62 void SkData::operator delete(void* p) { in operator delete()
66 sk_sp<SkData> SkData::PrivateNewWithCopy(const void* srcOrNull, size_t length) { in PrivateNewWithCopy()
68 return SkData::MakeEmpty(); in PrivateNewWithCopy()
71 const size_t actualLength = length + sizeof(SkData); in PrivateNewWithCopy()
75 sk_sp<SkData> data(new (storage) SkData(length)); in PrivateNewWithCopy()
[all …]
/external/skia/include/core/
DSkData.h22 class SK_API SkData final : public SkNVRefCnt<SkData> {
69 bool equals(const SkData* other) const;
80 static sk_sp<SkData> MakeWithCopy(const void* data, size_t length);
87 static sk_sp<SkData> MakeUninitialized(size_t length);
95 static sk_sp<SkData> MakeWithCString(const char cstr[]);
101 static sk_sp<SkData> MakeWithProc(const void* ptr, size_t length, ReleaseProc proc, void* ctx);
107 static sk_sp<SkData> MakeWithoutCopy(const void* data, size_t length) { in MakeWithoutCopy()
115 static sk_sp<SkData> MakeFromMalloc(const void* data, size_t length);
121 static sk_sp<SkData> MakeFromFileName(const char path[]);
130 static sk_sp<SkData> MakeFromFILE(FILE* f);
[all …]
/external/skqp/include/core/
DSkData.h22 class SK_API SkData final : public SkNVRefCnt<SkData> {
69 bool equals(const SkData* other) const;
80 static sk_sp<SkData> MakeWithCopy(const void* data, size_t length);
87 static sk_sp<SkData> MakeUninitialized(size_t length);
95 static sk_sp<SkData> MakeWithCString(const char cstr[]);
101 static sk_sp<SkData> MakeWithProc(const void* ptr, size_t length, ReleaseProc proc, void* ctx);
107 static sk_sp<SkData> MakeWithoutCopy(const void* data, size_t length) { in MakeWithoutCopy()
115 static sk_sp<SkData> MakeFromMalloc(const void* data, size_t length);
121 static sk_sp<SkData> MakeFromFileName(const char path[]);
130 static sk_sp<SkData> MakeFromFILE(FILE* f);
[all …]
/external/skia/fuzz/
DFuzzMain.cpp69 static uint8_t calculate_option(SkData*);
72 static void fuzz_android_codec(sk_sp<SkData>);
73 static void fuzz_animated_img(sk_sp<SkData>);
74 static void fuzz_api(sk_sp<SkData> bytes, SkString name);
75 static void fuzz_color_deserialize(sk_sp<SkData>);
76 static void fuzz_filter_fuzz(sk_sp<SkData>);
77 static void fuzz_image_decode(sk_sp<SkData>);
78 static void fuzz_image_decode_incremental(sk_sp<SkData>);
79 static void fuzz_img(sk_sp<SkData>, uint8_t, uint8_t);
80 static void fuzz_json(sk_sp<SkData>);
[all …]
/external/skqp/fuzz/
DFuzzMain.cpp71 static uint8_t calculate_option(SkData*);
74 static void fuzz_android_codec(sk_sp<SkData>);
75 static void fuzz_animated_img(sk_sp<SkData>);
76 static void fuzz_api(sk_sp<SkData> bytes, SkString name);
77 static void fuzz_color_deserialize(sk_sp<SkData>);
78 static void fuzz_filter_fuzz(sk_sp<SkData>);
79 static void fuzz_image_decode(sk_sp<SkData>);
80 static void fuzz_image_decode_incremental(sk_sp<SkData>);
81 static void fuzz_img(sk_sp<SkData>, uint8_t, uint8_t);
82 static void fuzz_json(sk_sp<SkData>);
[all …]
/external/skia/tests/
DPDFJpegEmbedTest.cpp17 static bool is_subset_of(SkData* smaller, SkData* larger) { in is_subset_of()
33 static sk_sp<SkData> load_resource( in load_resource()
35 sk_sp<SkData> data = GetResourceAsData(filename); in load_resource()
51 sk_sp<SkData> mandrillData(load_resource(r, test, "images/mandrill_512_q075.jpg")); in DEF_TEST()
52 sk_sp<SkData> cmykData(load_resource(r, test, "images/CMYK.jpg")); in DEF_TEST()
70 sk_sp<SkData> pdfData = pdf.detachAsData(); in DEF_TEST()
93 bool SkIsJFIF(const SkData* data, SkJFIFInfo* info) { in SkIsJFIF()
122 sk_sp<SkData> data(load_resource(r, "JpegIdentification", kTests[i].path)); in DEF_TEST()
172 auto data = SkData::MakeWithoutCopy(goodJpeg, goodJpegLength); in DEF_TEST()
178 data = SkData::MakeWithoutCopy(goodJpeg, 1); in DEF_TEST()
[all …]
DAnnotationTest.cpp45 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST()
61 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST()
65 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST()
79 sk_sp<SkData> data(SkData::MakeWithCString("example")); in DEF_TEST()
83 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST()
101 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST()
104 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST()
118 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com/#NamedDestination")); in DEF_TEST()
121 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST()
DDataRefTest.cpp131 static void assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) { in assert_len()
135 static void assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, in assert_data()
145 sk_sp<SkData> r0(SkData::MakeWithCopy(str, len + 1)); in test_cstring()
146 sk_sp<SkData> r1(SkData::MakeWithCString(str)); in test_cstring()
150 sk_sp<SkData> r2(SkData::MakeWithCString(nullptr)); in test_cstring()
174 sk_sp<SkData> r1(SkData::MakeFromFILE(file)); in test_files()
180 sk_sp<SkData> r2(SkData::MakeFromFD(fd)); in test_files()
190 sk_sp<SkData> r0(SkData::MakeEmpty()); in DEF_TEST()
191 sk_sp<SkData> r1(SkData::MakeWithCopy(str, strlen(str))); in DEF_TEST()
192 sk_sp<SkData> r2(SkData::MakeWithProc(new int[N], N*sizeof(int), delete_int_proc, gGlobal)); in DEF_TEST()
[all …]
/external/skqp/tests/
DPDFJpegEmbedTest.cpp17 static bool is_subset_of(SkData* smaller, SkData* larger) { in is_subset_of()
33 static sk_sp<SkData> load_resource( in load_resource()
35 sk_sp<SkData> data = GetResourceAsData(filename); in load_resource()
51 sk_sp<SkData> mandrillData(load_resource(r, test, "images/mandrill_512_q075.jpg")); in DEF_TEST()
52 sk_sp<SkData> cmykData(load_resource(r, test, "images/CMYK.jpg")); in DEF_TEST()
71 sk_sp<SkData> pdfData = pdf.detachAsData(); in DEF_TEST()
94 bool SkIsJFIF(const SkData* data, SkJFIFInfo* info) { in SkIsJFIF()
123 sk_sp<SkData> data(load_resource(r, "JpegIdentification", kTests[i].path)); in DEF_TEST()
173 auto data = SkData::MakeWithoutCopy(goodJpeg, goodJpegLength); in DEF_TEST()
179 data = SkData::MakeWithoutCopy(goodJpeg, 1); in DEF_TEST()
[all …]
DAnnotationTest.cpp45 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST()
61 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST()
65 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST()
79 sk_sp<SkData> data(SkData::MakeWithCString("example")); in DEF_TEST()
83 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST()
102 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST()
106 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST()
121 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com/#NamedDestination")); in DEF_TEST()
125 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST()
DDataRefTest.cpp131 static void assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) { in assert_len()
135 static void assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, in assert_data()
145 sk_sp<SkData> r0(SkData::MakeWithCopy(str, len + 1)); in test_cstring()
146 sk_sp<SkData> r1(SkData::MakeWithCString(str)); in test_cstring()
150 sk_sp<SkData> r2(SkData::MakeWithCString(nullptr)); in test_cstring()
174 sk_sp<SkData> r1(SkData::MakeFromFILE(file)); in test_files()
180 sk_sp<SkData> r2(SkData::MakeFromFD(fd)); in test_files()
190 sk_sp<SkData> r0(SkData::MakeEmpty()); in DEF_TEST()
191 sk_sp<SkData> r1(SkData::MakeWithCopy(str, strlen(str))); in DEF_TEST()
192 sk_sp<SkData> r2(SkData::MakeWithProc(new int[N], N*sizeof(int), delete_int_proc, gGlobal)); in DEF_TEST()
[all …]
/external/skia/src/pdf/
DSkPDFSubsetFont.cpp24 static HBBlob to_blob(sk_sp<SkData> data) { in to_blob()
27 data.release(), [](void* p){ ((SkData*)p)->unref(); })); in to_blob()
30 static sk_sp<SkData> to_data(HBBlob blob) { in to_data()
39 return SkData::MakeWithProc(data, SkToSizeT(length), in to_data()
44 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont()
81 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont()
121 return SkData::MakeWithProc(subsetFont, subsetFontSize, in SkPDFSubsetFont()
128 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData>, const SkPDFGlyphUse&, const char*, int) { in SkPDFSubsetFont() argument
/external/skia/tools/gpu/
DMemoryCache.h31 sk_sp<SkData> load(const SkData& key) override;
32 void store(const SkData& key, const SkData& data) override;
39 Key(const SkData& key) : fKey(SkData::MakeWithCopy(key.data(), key.size())) {} in Key()
46 sk_sp<const SkData> fKey;
58 std::unordered_map<Key, sk_sp<SkData>, Hash> fMap;
DMemoryCache.cpp14 static SkString data_to_str(const SkData& data) { in data_to_str()
32 sk_sp<SkData> MemoryCache::load(const SkData& key) { in load()
48 void MemoryCache::store(const SkData& key, const SkData& data) { in store()
53 fMap[Key(key)] = SkData::MakeWithCopy(data.data(), data.size()); in store()
/external/skqp/tools/gpu/
DMemoryCache.h31 sk_sp<SkData> load(const SkData& key) override;
32 void store(const SkData& key, const SkData& data) override;
39 Key(const SkData& key) : fKey(SkData::MakeWithCopy(key.data(), key.size())) {} in Key()
46 sk_sp<const SkData> fKey;
58 std::unordered_map<Key, sk_sp<SkData>, Hash> fMap;
DMemoryCache.cpp14 static SkString data_to_str(const SkData& data) { in data_to_str()
32 sk_sp<SkData> MemoryCache::load(const SkData& key) { in load()
48 void MemoryCache::store(const SkData& key, const SkData& data) { in store()
53 fMap[Key(key)] = SkData::MakeWithCopy(data.data(), data.size()); in store()
/external/skia/tools/
DUrlDataManager.h20 bool operator==(const SkData& a, const SkData& b);
31 SkString addData(SkData*, const char* contentType);
36 sk_sp<SkData> fData;
50 static const SkData& GetKey(const UrlData& data) { in GetKey()
54 static uint32_t Hash(const SkData& key) { in Hash()
71 SkTDynamicHash<UrlData, SkData, LookupTrait> fCache;
/external/skqp/tools/
DUrlDataManager.h20 bool operator==(const SkData& a, const SkData& b);
31 SkString addData(SkData*, const char* contentType);
36 sk_sp<SkData> fData;
50 static const SkData& GetKey(const UrlData& data) { in GetKey()
54 static uint32_t Hash(const SkData& key) { in Hash()
71 SkTDynamicHash<UrlData, SkData, LookupTrait> fCache;
/external/skia/src/codec/
DSkStreamBuffer.cpp19 fMarkedData.foreach([](size_t, SkData** data) { (*data)->unref(); }); in ~SkStreamBuffer()
60 sk_sp<SkData> data(SkData::MakeWithCopy(fBuffer, fBytesBuffered)); in markPosition()
67 sk_sp<SkData> SkStreamBuffer::getDataAtPosition(size_t position, size_t length) { in getDataAtPosition()
69 SkData** data = fMarkedData.find(position); in getDataAtPosition()
72 return sk_ref_sp<SkData>(*data); in getDataAtPosition()
83 sk_sp<SkData> data(SkData::MakeUninitialized(length)); in getDataAtPosition()
/external/skqp/src/codec/
DSkStreamBuffer.cpp19 fMarkedData.foreach([](size_t, SkData** data) { (*data)->unref(); }); in ~SkStreamBuffer()
60 sk_sp<SkData> data(SkData::MakeWithCopy(fBuffer, fBytesBuffered)); in markPosition()
67 sk_sp<SkData> SkStreamBuffer::getDataAtPosition(size_t position, size_t length) { in getDataAtPosition()
69 SkData** data = fMarkedData.find(position); in getDataAtPosition()
72 return sk_ref_sp<SkData>(*data); in getDataAtPosition()
83 sk_sp<SkData> data(SkData::MakeUninitialized(length)); in getDataAtPosition()
/external/skqp/tools/skiaserve/
DRequest.h39 sk_sp<SkData> drawToPng(int n, int m = -1);
40 sk_sp<SkData> writeOutSkp();
51 sk_sp<SkData> getJsonOps(int n);
54 sk_sp<SkData> getJsonOpList(int n);
57 sk_sp<SkData> getJsonInfo(int n);
67 sk_sp<SkData> writeCanvasToPng(SkCanvas* canvas);
/external/skia/tools/skiaserve/
DRequest.h39 sk_sp<SkData> drawToPng(int n, int m = -1);
40 sk_sp<SkData> writeOutSkp();
51 sk_sp<SkData> getJsonOps(int n);
54 sk_sp<SkData> getJsonOpList(int n);
57 sk_sp<SkData> getJsonInfo(int n);
67 sk_sp<SkData> writeCanvasToPng(SkCanvas* canvas);
/external/skia/tools/skdiff/
Dskdiff_utils.h14 class SkData; variable
20 bool are_buffers_equal(SkData* skdata1, SkData* skdata2);
25 sk_sp<SkData> read_file(const char* file_path);
28 bool get_bitmap(sk_sp<SkData> fileBits, DiffResource& resource, bool sizeOnly,
/external/skqp/tools/skdiff/
Dskdiff_utils.h14 class SkData; variable
20 bool are_buffers_equal(SkData* skdata1, SkData* skdata2);
25 sk_sp<SkData> read_file(const char* file_path);
28 bool get_bitmap(sk_sp<SkData> fileBits, DiffResource& resource, bool sizeOnly,

12345678910>>...26