/frameworks/base/libs/hwui/tests/unit/ |
D | ShaderCacheTests.cpp | 84 inline bool checkShader(const sk_sp<SkData>& shader1, const sk_sp<SkData>& shader2) { in checkShader() 89 inline bool checkShader(const sk_sp<SkData>& shader, const char* program) { in checkShader() 90 sk_sp<SkData> shader2 = SkData::MakeWithCString(program); in checkShader() 95 bool checkShader(const sk_sp<SkData>& shader, std::vector<T>& program) { in checkShader() 96 sk_sp<SkData> shader2 = SkData::MakeWithCopy(program.data(), program.size() * sizeof(T)); in checkShader() 100 void setShader(sk_sp<SkData>& shader, const char* program) { in setShader() 101 shader = SkData::MakeWithCString(program); in setShader() 105 void setShader(sk_sp<SkData>& shader, std::vector<T>& buffer) { in setShader() 106 shader = SkData::MakeWithCopy(buffer.data(), buffer.size() * sizeof(T)); in setShader() 116 #define GrProgramDescTest(a) (*SkData::MakeWithCString(#a).get()) [all …]
|
D | FatalTestCanvas.h | 27 void onDrawAnnotation(const SkRect&, const char key[], SkData* value) { in onDrawAnnotation()
|
D | TypefaceTests.cpp | 53 sk_sp<SkData> skData = in buildFamily() 54 SkData::MakeWithProc(data, st.st_size, unmap, reinterpret_cast<void*>(st.st_size)); in buildFamily()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | ShaderCache.h | 70 sk_sp<SkData> load(const SkData& key) override; 76 void store(const SkData& key, const SkData& data) override;
|
D | ShaderCache.cpp | 102 sk_sp<SkData> ShaderCache::load(const SkData& key) { in load() 139 return SkData::MakeFromMalloc(valueBuffer, valueSize); in load() 154 void ShaderCache::store(const SkData& key, const SkData& data) { in store()
|
D | TransformCanvas.h | 31 void onDrawAnnotation(const SkRect& rect, const char* key, SkData* value) override;
|
D | TransformCanvas.cpp | 23 void TransformCanvas::onDrawAnnotation(const SkRect& rect, const char* key, SkData* value) { in onDrawAnnotation()
|
D | SkiaRecordingCanvas.cpp | 67 SkData::MakeWithCopy(data, 2 * sizeof(float))); in punchHole()
|
/frameworks/base/libs/hwui/jni/fonts/ |
D | Font.h | 26 class SkData; variable 33 sk_sp<SkData>&& data, std::string_view fontPath, const void *fontPtr, size_t fontSize,
|
D | Font.cpp | 102 sk_sp<SkData> data(SkData::MakeWithProc(fontPtr, fontSize, in Font_Builder_build() 448 sk_sp<SkData>&& data, std::string_view fontPath, const void *fontPtr, size_t fontSize, in createMinikinFontSkia()
|
/frameworks/base/libs/hwui/jni/ |
D | Utils.cpp | 117 sk_sp<SkData> android::CopyAssetToData(Asset* asset) { in CopyAssetToData() 134 sk_sp<SkData> data(SkData::MakeUninitialized(size)); in CopyAssetToData()
|
D | FontFamily.cpp | 112 static bool addSkTypeface(NativeFamilyBuilder* builder, sk_sp<SkData>&& data, int ttcIndex, in addSkTypeface() 186 sk_sp<SkData> data(SkData::MakeWithProc(fontPtr, fontSize, in FontFamily_addFont() 208 sk_sp<SkData> data(SkData::MakeWithProc(fontPtr, fontSize, in FontFamily_addFontWeightStyle()
|
D | BitmapRegionDecoder.cpp | 39 static jobject createBitmapRegionDecoder(JNIEnv* env, sk_sp<SkData> data) { in createBitmapRegionDecoder() 52 return createBitmapRegionDecoder(env, SkData::MakeWithCopy(ar.ptr() + offset, length)); in nativeNewInstanceFromByteArray() 67 return createBitmapRegionDecoder(env, SkData::MakeFromFD(descriptor)); in nativeNewInstanceFromFileDescriptor() 73 sk_sp<SkData> data = CopyJavaInputStream(env, is, storage); in nativeNewInstanceFromStream() 83 sk_sp<SkData> data = CopyAssetToData(asset); in nativeNewInstanceFromAsset()
|
D | CreateJavaOutputStreamAdaptor.h | 38 sk_sp<SkData> CopyJavaInputStream(JNIEnv* env, jobject stream, jbyteArray storage);
|
D | Typeface.cpp | 189 static sk_sp<SkData> makeSkDataCached(const std::string& path, bool hasVerity) { in makeSkDataCached() 192 static std::unordered_map<std::string, sk_sp<SkData>> cache; in makeSkDataCached() 200 sk_sp<SkData>& entry = cache[path]; in makeSkDataCached() 202 entry = SkData::MakeFromFileName(path.c_str()); in makeSkDataCached() 237 sk_sp<SkData> data = makeSkDataCached(path, hasVerity); in loadMinikinFontSkia()
|
D | Utils.h | 53 sk_sp<SkData> CopyAssetToData(Asset*);
|
D | CreateJavaOutputStreamAdaptor.cpp | 180 sk_sp<SkData> CopyJavaInputStream(JNIEnv* env, jobject inputStream, jbyteArray storage) { in CopyJavaInputStream() 201 return SkData::MakeFromMalloc(data, streamLen); in CopyJavaInputStream()
|
D | ByteBufferStreamAdaptor.cpp | 293 auto data = SkData::MakeWithProc(addr, length, releaseProc, context); in CreateByteBufferStreamAdaptor()
|
D | android_graphics_HardwareRenderer.cpp | 510 static sk_sp<SkData> collectNonTextureImagesProc(SkImage* img, void* ctx) { in collectNonTextureImagesProc() 522 return SkData::MakeEmpty(); in collectNonTextureImagesProc() 525 static sk_sp<SkData> serializeImage(SkImage* img, void* ctx) { in serializeImage()
|
D | Bitmap.cpp | 615 std::optional<sk_sp<SkData>> readData() { in readData() 639 return SkData::MakeFromMalloc(data.ptr, data.size); in readData() 643 void writeData(const std::optional<sk_sp<SkData>>& optData) { in writeData()
|
/frameworks/native/libs/renderengine/skia/ |
D | SkiaGLRenderEngine.h | 162 sk_sp<SkData> load(const SkData& key) override; 164 void store(const SkData& key, const SkData& data, const SkString& description) override;
|
D | SkiaGLRenderEngine.cpp | 282 sk_sp<SkData> SkiaGLRenderEngine::SkSLCacheMonitor::load(const SkData& key) { in load() 288 void SkiaGLRenderEngine::SkSLCacheMonitor::store(const SkData& key, const SkData& data, in store() 653 SkData::MakeWithCString(displaySettings.str().c_str())); in initCanvas() 894 SkData::MakeWithCString(layerSettings.str().c_str())); in drawLayers()
|
/frameworks/base/libs/hwui/ |
D | RecordingCanvas.h | 111 void drawAnnotation(const SkRect&, const char*, SkData*); 185 void onDrawAnnotation(const SkRect&, const char[], SkData*) override;
|
D | RecordingCanvas.cpp | 266 DrawAnnotation(const SkRect& rect, SkData* value) : rect(rect), value(sk_ref_sp(value)) {} in DrawAnnotation() 268 sk_sp<SkData> value; 694 void DisplayListData::drawAnnotation(const SkRect& rect, const char* key, SkData* value) { in drawAnnotation() 1006 void RecordingCanvas::onDrawAnnotation(const SkRect& rect, const char key[], SkData* val) { in onDrawAnnotation()
|
/frameworks/base/libs/hwui/tests/common/ |
D | CallCountingCanvas.h | 136 void onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) override { in onDrawAnnotation()
|