Home
last modified time | relevance | path

Searched refs:flattenable (Results 1 – 24 of 24) sorted by relevance

/external/skia/include/core/
DSkFlattenable.h41 #define SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(flattenable) \ argument
42 void flattenable::InitializeFlattenables() {
47 #define SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(flattenable) \ argument
48 SkFlattenable::Register(#flattenable, flattenable::CreateProc, \
49 flattenable::GetFlattenableType());
51 #define SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(flattenable) \ argument
61 #define SK_DEFINE_FLATTENABLE_TYPE(flattenable) \ argument
63 return k##flattenable##_Type; \
66 return k##flattenable##_Type; \
68 static sk_sp<flattenable> Deserialize(const void* data, size_t size, \
[all …]
/external/skqp/include/core/
DSkFlattenable.h41 #define SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(flattenable) \ argument
42 void flattenable::InitializeFlattenables() {
47 #define SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(flattenable) \ argument
48 SkFlattenable::Register(#flattenable, flattenable::CreateProc, \
49 flattenable::GetFlattenableType());
51 #define SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(flattenable) \ argument
61 #define SK_DEFINE_FLATTENABLE_TYPE(flattenable) \ argument
63 return k##flattenable##_Type; \
66 return k##flattenable##_Type; \
68 static sk_sp<flattenable> Deserialize(const void* data, size_t size, \
[all …]
/external/skia/fuzz/oss_fuzz/
DFuzzImageFilterDeserialize.cpp22 auto flattenable = SkImageFilter::Deserialize(bytes->data(), bytes->size()); in FuzzImageFilterDeserialize() local
24 if (flattenable != nullptr) { in FuzzImageFilterDeserialize()
27 paint.setImageFilter(flattenable); in FuzzImageFilterDeserialize()
/external/skqp/src/core/
DSkWriteBuffer.cpp223 void SkBinaryWriteBuffer::writeFlattenable(const SkFlattenable* flattenable) { in writeFlattenable() argument
224 if (nullptr == flattenable) { in writeFlattenable()
230 this->write32(fDeduper->findOrDefineFactory(const_cast<SkFlattenable*>(flattenable))); in writeFlattenable()
244 SkFlattenable::Factory factory = flattenable->getFactory(); in writeFlattenable()
248 const char* name = flattenable->getTypeName(); in writeFlattenable()
277 flattenable->flatten(*this); in writeFlattenable()
DSkWriteBuffer.h45 virtual void writeFlattenable(const SkFlattenable* flattenable) = 0;
104 void writeFlattenable(const SkFlattenable* flattenable) override;
/external/skia/src/core/
DSkWriteBuffer.cpp223 void SkBinaryWriteBuffer::writeFlattenable(const SkFlattenable* flattenable) { in writeFlattenable() argument
224 if (nullptr == flattenable) { in writeFlattenable()
230 this->write32(fDeduper->findOrDefineFactory(const_cast<SkFlattenable*>(flattenable))); in writeFlattenable()
244 SkFlattenable::Factory factory = flattenable->getFactory(); in writeFlattenable()
248 const char* name = flattenable->getTypeName(); in writeFlattenable()
277 flattenable->flatten(*this); in writeFlattenable()
DSkWriteBuffer.h45 virtual void writeFlattenable(const SkFlattenable* flattenable) = 0;
104 void writeFlattenable(const SkFlattenable* flattenable) override;
/external/skqp/tools/
Dchrome_fuzz.cpp35 sk_sp<SkImageFilter> flattenable = SkValidatingDeserializeImageFilter(testdata.c_str(), in run_test_case() local
39 if (flattenable != nullptr) { in run_test_case()
43 paint.setImageFilter(flattenable); in run_test_case()
/external/skia/tools/
Dchrome_fuzz.cpp35 sk_sp<SkImageFilter> flattenable = SkValidatingDeserializeImageFilter(testdata.c_str(), in run_test_case() local
39 if (flattenable != nullptr) { in run_test_case()
43 paint.setImageFilter(flattenable); in run_test_case()
/external/skqp/site/dev/contrib/
Dflatten.md7 its subclasses. If you create a new flattenable class, you need to make sure you
71 5: Register your flattenable with the global registrar:
73 flattenable in a Skia build, that function is defined in `SkGlobalInitialization_default.cpp`.
75 For a single flattenable add
/external/skia/site/dev/contrib/
Dflatten.md7 its subclasses. If you create a new flattenable class, you need to make sure you
71 5: Register your flattenable with the global registrar:
73 flattenable in a Skia build, that function is defined in `SkGlobalInitialization_default.cpp`.
75 For a single flattenable add
/external/skia/tools/debugger/
DSkJsonWriteBuffer.cpp74 void SkJsonWriteBuffer::writeFlattenable(const SkFlattenable* flattenable) { in writeFlattenable() argument
75 if (flattenable) { in writeFlattenable()
77 flattenable->flatten(flattenableBuffer); in writeFlattenable()
78 this->append(flattenable->getTypeName(), flattenableBuffer.getValue()); in writeFlattenable()
DSkJsonWriteBuffer.h34 void writeFlattenable(const SkFlattenable* flattenable) override;
DSkDrawCommand.h138 static void flatten(const SkFlattenable* flattenable, Json::Value* target,
DSkDrawCommand.cpp717 void SkDrawCommand::flatten(const SkFlattenable* flattenable, Json::Value* target, in flatten() argument
720 flattenable->flatten(buffer); in flatten()
726 jsonFlattenable[SKDEBUGCANVAS_ATTRIBUTE_NAME] = Json::Value(flattenable->getTypeName()); in flatten()
730 flattenable->flatten(jsonBuffer); in flatten()
/external/skqp/tools/debugger/
DSkJsonWriteBuffer.cpp74 void SkJsonWriteBuffer::writeFlattenable(const SkFlattenable* flattenable) { in writeFlattenable() argument
75 if (flattenable) { in writeFlattenable()
77 flattenable->flatten(flattenableBuffer); in writeFlattenable()
78 this->append(flattenable->getTypeName(), flattenableBuffer.getValue()); in writeFlattenable()
DSkJsonWriteBuffer.h34 void writeFlattenable(const SkFlattenable* flattenable) override;
DSkDrawCommand.h138 static void flatten(const SkFlattenable* flattenable, Json::Value* target,
DSkDrawCommand.cpp717 void SkDrawCommand::flatten(const SkFlattenable* flattenable, Json::Value* target, in flatten() argument
720 flattenable->flatten(buffer); in flatten()
726 jsonFlattenable[SKDEBUGCANVAS_ATTRIBUTE_NAME] = Json::Value(flattenable->getTypeName()); in flatten()
730 flattenable->flatten(jsonBuffer); in flatten()
/external/skqp/tests/
DSerializationTest.cpp49 static void Write(SkWriteBuffer& writer, const T* flattenable) { in Write()
50 writer.writeFlattenable(flattenable); in Write()
52 static void Read(SkReadBuffer& reader, T** flattenable) { in Read()
53 *flattenable = (T*)reader.readFlattenable(T::GetFlattenableType()); in Read()
/external/skia/tests/
DSerializationTest.cpp49 static void Write(SkWriteBuffer& writer, const T* flattenable) { in Write()
50 writer.writeFlattenable(flattenable); in Write()
52 static void Read(SkReadBuffer& reader, T** flattenable) { in Read()
53 *flattenable = (T*)reader.readFlattenable(T::GetFlattenableType()); in Read()
/external/skqp/fuzz/
Dfuzz.cpp568 auto flattenable = SkImageFilter::Deserialize(bytes->data(), bytes->size()); in fuzz_filter_fuzz() local
571 if (flattenable != nullptr) { in fuzz_filter_fuzz()
575 paint.setImageFilter(flattenable); in fuzz_filter_fuzz()
/external/skqp/src/pipe/
DSkPipeCanvas.cpp898 int SkPipeDeduper::findOrDefineFactory(SkFlattenable* flattenable) { in findOrDefineFactory() argument
899 if (!flattenable) { in findOrDefineFactory()
903 int index = fFactories.find(flattenable->getFactory()); in findOrDefineFactory()
912 index = fFactories.add(flattenable->getFactory()); in findOrDefineFactory()
914 const char* name = flattenable->getTypeName(); in findOrDefineFactory()
/external/skia/src/pipe/
DSkPipeCanvas.cpp898 int SkPipeDeduper::findOrDefineFactory(SkFlattenable* flattenable) { in findOrDefineFactory() argument
899 if (!flattenable) { in findOrDefineFactory()
903 int index = fFactories.find(flattenable->getFactory()); in findOrDefineFactory()
912 index = fFactories.add(flattenable->getFactory()); in findOrDefineFactory()
914 const char* name = flattenable->getTypeName(); in findOrDefineFactory()