Home
last modified time | relevance | path

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

12

/frameworks/base/libs/hwui/tests/unit/
DShaderCacheTests.cpp84 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 …]
DFatalTestCanvas.h27 void onDrawAnnotation(const SkRect&, const char key[], SkData* value) { in onDrawAnnotation()
DTypefaceTests.cpp53 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/
DShaderCache.h70 sk_sp<SkData> load(const SkData& key) override;
76 void store(const SkData& key, const SkData& data) override;
DShaderCache.cpp102 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()
DTransformCanvas.h31 void onDrawAnnotation(const SkRect& rect, const char* key, SkData* value) override;
DTransformCanvas.cpp23 void TransformCanvas::onDrawAnnotation(const SkRect& rect, const char* key, SkData* value) { in onDrawAnnotation()
DSkiaRecordingCanvas.cpp67 SkData::MakeWithCopy(data, 2 * sizeof(float))); in punchHole()
/frameworks/base/libs/hwui/jni/fonts/
DFont.h26 class SkData; variable
33 sk_sp<SkData>&& data, std::string_view fontPath, const void *fontPtr, size_t fontSize,
DFont.cpp102 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/
DUtils.cpp117 sk_sp<SkData> android::CopyAssetToData(Asset* asset) { in CopyAssetToData()
134 sk_sp<SkData> data(SkData::MakeUninitialized(size)); in CopyAssetToData()
DFontFamily.cpp112 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()
DBitmapRegionDecoder.cpp39 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()
DCreateJavaOutputStreamAdaptor.h38 sk_sp<SkData> CopyJavaInputStream(JNIEnv* env, jobject stream, jbyteArray storage);
DTypeface.cpp189 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()
DUtils.h53 sk_sp<SkData> CopyAssetToData(Asset*);
DCreateJavaOutputStreamAdaptor.cpp180 sk_sp<SkData> CopyJavaInputStream(JNIEnv* env, jobject inputStream, jbyteArray storage) { in CopyJavaInputStream()
201 return SkData::MakeFromMalloc(data, streamLen); in CopyJavaInputStream()
DByteBufferStreamAdaptor.cpp293 auto data = SkData::MakeWithProc(addr, length, releaseProc, context); in CreateByteBufferStreamAdaptor()
Dandroid_graphics_HardwareRenderer.cpp510 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()
DBitmap.cpp615 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/
DSkiaGLRenderEngine.h162 sk_sp<SkData> load(const SkData& key) override;
164 void store(const SkData& key, const SkData& data, const SkString& description) override;
DSkiaGLRenderEngine.cpp282 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/
DRecordingCanvas.h111 void drawAnnotation(const SkRect&, const char*, SkData*);
185 void onDrawAnnotation(const SkRect&, const char[], SkData*) override;
DRecordingCanvas.cpp266 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/
DCallCountingCanvas.h136 void onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) override { in onDrawAnnotation()

12