OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:flattenable
(Results
1 - 25
of
31
) sorted by null
1
2
/external/skia/src/core/
SkFlattenableSerialization.cpp
14
SkData* SkValidatingSerializeFlattenable(SkFlattenable*
flattenable
) {
16
writer.writeFlattenable(
flattenable
);
SkWriteBuffer.cpp
179
// unflattened (i.e. stale) instance of a similar
flattenable
is in the dictionary
280
void SkWriteBuffer::writeFlattenable(const SkFlattenable*
flattenable
) {
283
* 0: failure to write the
flattenable
291
if (nullptr ==
flattenable
) {
302
SkFlattenable::Factory factory =
flattenable
->getFactory();
306
* We can write 1 of 3 versions of the
flattenable
:
315
* stream before writing the
flattenable
.
318
this->writeString(
flattenable
->getTypeName());
336
flattenable
->flatten(*this);
SkReadBuffer.cpp
346
return nullptr; // writer failed to give us the
flattenable
357
return nullptr; // writer failed to give us the
flattenable
368
return nullptr; // writer failed to give us the
flattenable
SkReadBuffer.h
143
*
flattenable
(or the sentinel that there wasn't one).
SkValidatingReadBuffer.cpp
241
return nullptr; // writer failed to give us the
flattenable
/external/skia/include/core/
SkFlattenable.h
39
#define SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(
flattenable
) \
40
void
flattenable
::InitializeFlattenables() {
45
#define SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(
flattenable
) \
46
SkFlattenable::Register(#
flattenable
,
flattenable
::CreateProc, \
47
flattenable
::GetFlattenableType());
49
#define SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(
flattenable
) \
59
#define SK_DEFINE_FLATTENABLE_TYPE(
flattenable
) \
61
return k##
flattenable
##_Type; \
SkWriteBuffer.h
64
void writeFlattenable(const SkFlattenable*
flattenable
);
/external/skia/site/dev/contrib/
flatten.md
7
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
/system/core/include/utils/
Flattenable.h
77
* The
Flattenable
protocol allows an object to serialize itself out
79
*
Flattenable
objects must implement this protocol.
83
class
Flattenable
{
109
inline size_t
Flattenable
<T>::getFlattenedSize() const {
113
inline size_t
Flattenable
<T>::getFdCount() const {
117
inline status_t
Flattenable
<T>::flatten(
122
inline status_t
Flattenable
<T>::unflatten(
130
* LightFlattenable is usually more size efficient than
Flattenable
.
170
* Simply derive from LightFlattenablePod<Foo> to make Foo
flattenable
; no
BlobCache.h
22
#include <utils/
Flattenable
.h>
/external/skia/tools/
chrome_fuzz.cpp
33
SkFlattenable*
flattenable
= SkValidatingDeserializeFlattenable(
local
37
if (
flattenable
!= nullptr) {
41
paint.setImageFilter(static_cast<SkImageFilter*>(
flattenable
))->unref();
/frameworks/native/include/gui/
FrameTimestamps.h
21
#include <utils/
Flattenable
.h>
BufferItem.h
28
#include <utils/
Flattenable
.h>
36
class BufferItem : public
Flattenable
<BufferItem> {
37
friend class
Flattenable
<BufferItem>;
Sensor.h
24
#include <utils/
Flattenable
.h>
IGraphicBufferProducer.h
295
struct QueueBufferInput : public
Flattenable
<QueueBufferInput> {
296
friend class
Flattenable
<QueueBufferInput>;
332
//
Flattenable
protocol
/frameworks/native/include/ui/
GraphicBuffer.h
26
#include <utils/
Flattenable
.h>
43
public
Flattenable
<GraphicBuffer>
45
friend class
Flattenable
<GraphicBuffer>;
130
//
Flattenable
protocol
FrameStats.h
20
#include <utils/
Flattenable
.h>
Fence.h
26
#include <utils/
Flattenable
.h>
39
: public LightRefBase<Fence>, public
Flattenable
<Fence>
96
//
Flattenable
interface
Point.h
20
#include <utils/
Flattenable
.h>
Rect.h
20
#include <utils/
Flattenable
.h>
Region.h
26
#include <utils/
Flattenable
.h>
/frameworks/native/include/binder/
Parcel.h
29
#include <utils/
Flattenable
.h>
38
template <typename T> class
Flattenable
;
164
status_t write(const
Flattenable
<T>& val);
298
status_t read(
Flattenable
<T>& val) const;
465
const
Flattenable
<T>& val;
466
explicit FlattenableHelper(const
Flattenable
<T>& val) : val(val) { }
479
return const_cast<
Flattenable
<T>&>(val).unflatten(buffer, size, fds, count);
511
status_t Parcel::write(const
Flattenable
<T>& val) {
535
status_t Parcel::read(
Flattenable
<T>& val) const {
/external/skia/tests/
SerializationTest.cpp
40
static void Write(SkWriteBuffer& writer, const T*
flattenable
) {
41
writer.writeFlattenable(
flattenable
);
43
static void Read(SkValidatingReadBuffer& reader, T**
flattenable
) {
44
*
flattenable
= (T*)reader.readFlattenable(T::GetFlattenableType());
ImageFilterTest.cpp
[
all
...]
/external/skia/tools/json/
SkJSONCanvas.cpp
167
static void flatten(const SkFlattenable*
flattenable
, Json::Value* target, bool sendBinaries) {
170
flattenable
->flatten(buffer);
176
jsonFlattenable[SKJSONCANVAS_ATTRIBUTE_NAME] = Json::Value(
flattenable
->getTypeName());
182
(*target)[SKJSONCANVAS_ATTRIBUTE_DESCRIPTION] = Json::Value(
flattenable
->getTypeName());
[
all
...]
Completed in 377 milliseconds
1
2