/external/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 …]
|
/external/skqp/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 …]
|
/external/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 …]
|
/external/skqp/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 …]
|
/external/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 …]
|
/external/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()
|
/external/skqp/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 …]
|
/external/skqp/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() 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 …]
|
D | AnnotationTest.cpp | 45 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()
|
D | DataRefTest.cpp | 131 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/ |
D | SkPDFSubsetFont.cpp | 26 static HBBlob to_blob(sk_sp<SkData> data) { in to_blob() 35 data.release(), [](void* p){ ((SkData*)p)->unref(); })); in to_blob() 38 static sk_sp<SkData> to_data(HBBlob blob) { in to_data() 47 return SkData::MakeWithProc(data, SkToSizeT(length), in to_data() 52 static sk_sp<SkData> subset_harfbuzz(sk_sp<SkData> fontData, in subset_harfbuzz() 92 static sk_sp<SkData> subset_sfntly(sk_sp<SkData> fontData, in subset_sfntly() 129 return SkData::MakeWithProc(subsetFont, subsetFontSize, in subset_sfntly() 140 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() 156 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() 166 sk_sp<SkData> SkPDFSubsetFont(sk_sp<SkData> fontData, in SkPDFSubsetFont() [all …]
|
/external/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;
|
/external/skqp/tools/gpu/ |
D | MemoryCache.h | 31 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;
|
/external/skqp/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;
|
/external/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;
|
/external/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()
|
/external/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()
|
/external/skqp/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()
|
/external/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);
|
/external/skqp/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);
|
/external/skia/src/gpu/ |
D | GrThreadSafeCache.h | 89 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> findWithData( 93 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> addWithData( 98 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> findOrAddWithData( 165 std::tuple<sk_sp<VertexData>, sk_sp<SkData>> findVertsWithData( 168 typedef bool (*IsNewerBetter)(SkData* incumbent, SkData* challenger); 170 std::tuple<sk_sp<VertexData>, sk_sp<SkData>> addVertsWithData( 225 SkData* getCustomData() const { in getCustomData() 230 sk_sp<SkData> refCustomData() const { in refCustomData() 303 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> internalFind( 305 std::tuple<GrSurfaceProxyView, sk_sp<SkData>> internalAdd( [all …]
|
/external/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,
|
/external/skqp/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,
|