/third_party/flutter/skia/src/core/ |
D | SkData.cpp | 16 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 …]
|
/third_party/skia/src/core/ |
D | SkData.cpp | 16 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() 49 size_t SkData::copyRange(size_t offset, size_t length, void* buffer) const { in copyRange() 64 void SkData::operator delete(void* p) { in operator delete() 68 sk_sp<SkData> SkData::PrivateNewWithCopy(const void* srcOrNull, size_t length) { in PrivateNewWithCopy() 70 return SkData::MakeEmpty(); in PrivateNewWithCopy() 73 const size_t actualLength = length + sizeof(SkData); in PrivateNewWithCopy() 77 sk_sp<SkData> data(new (storage) SkData(length)); in PrivateNewWithCopy() [all …]
|
/third_party/skia/fuzz/ |
D | FuzzMain.cpp | 74 static uint8_t calculate_option(SkData*); 77 static void fuzz_android_codec(sk_sp<SkData>); 78 static void fuzz_animated_img(sk_sp<SkData>); 79 static void fuzz_api(sk_sp<SkData> bytes, SkString name); 80 static void fuzz_color_deserialize(sk_sp<SkData>); 81 static void fuzz_filter_fuzz(sk_sp<SkData>); 82 static void fuzz_image_decode(sk_sp<SkData>); 83 static void fuzz_image_decode_incremental(sk_sp<SkData>); 84 static void fuzz_img(sk_sp<SkData>, uint8_t, uint8_t); 85 static void fuzz_json(sk_sp<SkData>); [all …]
|
/third_party/skia/include/core/ |
D | SkData.h | 22 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 …]
|
/third_party/flutter/skia/include/core/ |
D | SkData.h | 22 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 …]
|
/third_party/flutter/skia/fuzz/ |
D | FuzzMain.cpp | 71 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 …]
|
/third_party/skia/tests/ |
D | DataRefTest.cpp | 129 static void assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) { in assert_len() 133 static void assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, in assert_data() 143 sk_sp<SkData> r0(SkData::MakeWithCopy(str, len + 1)); in test_cstring() 144 sk_sp<SkData> r1(SkData::MakeWithCString(str)); in test_cstring() 148 sk_sp<SkData> r2(SkData::MakeWithCString(nullptr)); in test_cstring() 172 sk_sp<SkData> r1(SkData::MakeFromFILE(file)); in test_files() 178 sk_sp<SkData> r2(SkData::MakeFromFD(fd)); in test_files() 188 sk_sp<SkData> r0(SkData::MakeEmpty()); in DEF_TEST() 189 sk_sp<SkData> r1(SkData::MakeWithCopy(str, strlen(str))); in DEF_TEST() 190 sk_sp<SkData> r2(SkData::MakeWithProc(new int[N], N*sizeof(int), delete_int_proc, gGlobal)); in DEF_TEST() [all …]
|
D | PDFJpegEmbedTest.cpp | 17 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 …]
|
D | AnnotationTest.cpp | 46 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST() 62 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST() 66 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST() 80 sk_sp<SkData> data(SkData::MakeWithCString("example")); in DEF_TEST() 84 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()
|
/third_party/flutter/skia/tests/ |
D | PDFJpegEmbedTest.cpp | 17 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 …]
|
D | AnnotationTest.cpp | 46 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST() 62 sk_sp<SkData> data(SkData::MakeWithCString("http://www.gooogle.com")); in DEF_TEST() 66 sk_sp<SkData> out = outStream.detachAsData(); in DEF_TEST() 80 sk_sp<SkData> data(SkData::MakeWithCString("example")); in DEF_TEST() 84 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()
|
D | DataRefTest.cpp | 130 static void assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) { in assert_len() 134 static void assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, in assert_data() 144 sk_sp<SkData> r0(SkData::MakeWithCopy(str, len + 1)); in test_cstring() 145 sk_sp<SkData> r1(SkData::MakeWithCString(str)); in test_cstring() 149 sk_sp<SkData> r2(SkData::MakeWithCString(nullptr)); in test_cstring() 173 sk_sp<SkData> r1(SkData::MakeFromFILE(file)); in test_files() 179 sk_sp<SkData> r2(SkData::MakeFromFD(fd)); in test_files() 189 sk_sp<SkData> r0(SkData::MakeEmpty()); in DEF_TEST() 190 sk_sp<SkData> r1(SkData::MakeWithCopy(str, strlen(str))); in DEF_TEST() 191 sk_sp<SkData> r2(SkData::MakeWithProc(new int[N], N*sizeof(int), delete_int_proc, gGlobal)); in DEF_TEST() [all …]
|
/third_party/flutter/skia/src/pdf/ |
D | SkPDFSubsetFont.cpp | 25 static HBBlob to_blob(sk_sp<SkData> data) { in to_blob() 34 data.release(), [](void* p){ ((SkData*)p)->unref(); })); in to_blob() 37 static sk_sp<SkData> to_data(HBBlob blob) { in to_data() 46 return SkData::MakeWithProc(data, SkToSizeT(length), in to_data() 51 static sk_sp<SkData> subset_harfbuzz(sk_sp<SkData> fontData, in subset_harfbuzz() 90 static sk_sp<SkData> subset_sfntly(sk_sp<SkData> fontData, in subset_sfntly() 130 return SkData::MakeWithProc(subsetFont, subsetFontSize, in subset_sfntly() 141 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() 157 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() 167 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() [all …]
|
/third_party/skia/src/pdf/ |
D | SkPDFSubsetFont.cpp | 22 static HBBlob to_blob(sk_sp<SkData> data) { in to_blob() 31 data.release(), [](void* p){ ((SkData*)p)->unref(); })); in to_blob() 34 static sk_sp<SkData> to_data(HBBlob blob) { in to_data() 43 return SkData::MakeWithProc(data, SkToSizeT(length), in to_data() 79 static sk_sp<SkData> subset_harfbuzz(sk_sp<SkData> fontData, in subset_harfbuzz() 113 static sk_sp<SkData> subset_sfntly(sk_sp<SkData> fontData, in subset_sfntly() 150 return SkData::MakeWithProc(subsetFont, subsetFontSize, in subset_sfntly() 161 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() 177 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() 187 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() [all …]
|
/third_party/flutter/skia/tools/gpu/ |
D | MemoryCache.h | 35 sk_sp<SkData> load(const SkData& key) override; 36 void store(const SkData& key, const SkData& data) override; 52 Key(const SkData& key) : fKey(SkData::MakeWithCopy(key.data(), key.size())) {} in Key() 59 sk_sp<const SkData> fKey; 64 Value(const SkData& data) in Value() 65 : fData(SkData::MakeWithCopy(data.data(), data.size())) in Value() 70 sk_sp<SkData> fData;
|
/third_party/skia/tools/gpu/ |
D | MemoryCache.h | 35 sk_sp<SkData> load(const SkData& key) override; 36 void store(const SkData& key, const SkData& data, const SkString& description) override; 56 Key(const SkData& key) : fKey(SkData::MakeWithCopy(key.data(), key.size())) {} in Key() 63 sk_sp<const SkData> fKey; 68 Value(const SkData& data, const SkString& description) in Value() 69 : fData(SkData::MakeWithCopy(data.data(), data.size())) in Value() 75 sk_sp<SkData> fData;
|
/third_party/flutter/skia/tools/ |
D | UrlDataManager.h | 20 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;
|
/third_party/skia/tools/ |
D | UrlDataManager.h | 23 bool operator==(const SkData& a, const SkData& b); 34 SkString addData(SkData*, const char* contentType); 39 sk_sp<SkData> fData; 74 static const SkData& GetKey(const UrlData& data) { in GetKey() 78 static uint32_t Hash(const SkData& key) { in Hash() 95 SkTDynamicHash<UrlData, SkData, LookupTrait> fCache;
|
/third_party/skia/src/gpu/ |
D | GrThreadSafeCache.h | 88 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> findWithData( 92 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> addWithData( 97 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> findOrAddWithData( 164 std::tuple<sk_sp<VertexData>, sk_sp<SkData>> findVertsWithData( 167 typedef bool (*IsNewerBetter)(SkData* incumbent, SkData* challenger); 169 std::tuple<sk_sp<VertexData>, sk_sp<SkData>> addVertsWithData( 224 SkData* getCustomData() const { in getCustomData() 229 sk_sp<SkData> refCustomData() const { in refCustomData() 302 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> internalFind( 304 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> internalAdd( [all …]
|
/third_party/skia/src/codec/ |
D | SkStreamBuffer.cpp | 19 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()
|
/third_party/flutter/skia/src/codec/ |
D | SkStreamBuffer.cpp | 19 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()
|
/third_party/skia/fuzz/oss_fuzz/ |
D | FuzzSkRuntimeEffect.cpp | 32 static bool FuzzSkRuntimeEffect_Once(sk_sp<SkData> bytes, const SkRuntimeEffect::Options& options) { in FuzzSkRuntimeEffect_Once() 36 sk_sp<SkData> codeBytes = SkData::MakeSubset(bytes.get(), 0, bytes->size() - kReservedBytes); in FuzzSkRuntimeEffect_Once() 45 sk_sp<SkData> uniformBytes = in FuzzSkRuntimeEffect_Once() 46 SkData::MakeSubset(bytes.get(), bytes->size() - kReservedBytes, effect->uniformSize()); in FuzzSkRuntimeEffect_Once() 64 bool FuzzSkRuntimeEffect(sk_sp<SkData> bytes) { in FuzzSkRuntimeEffect() 82 auto bytes = SkData::MakeWithoutCopy(data, size); in LLVMFuzzerTestOneInput()
|
/third_party/flutter/skia/tools/skiaserve/ |
D | Request.h | 39 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);
|
/third_party/skia/tools/skiaserve/ |
D | Request.h | 39 sk_sp<SkData> drawToPng(int n, int m = -1); 40 sk_sp<SkData> writeOutSkp(); 51 sk_sp<SkData> getJsonOps(); 54 sk_sp<SkData> getJsonOpsTask(); 57 sk_sp<SkData> getJsonInfo(int n); 67 sk_sp<SkData> writeCanvasToPng(SkCanvas* canvas);
|
/third_party/skia/tools/skdiff/ |
D | skdiff_utils.h | 14 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,
|