Lines Matching refs:proto
23 Layer.fromProto = function (proto: any): Layer {
24 const visibleRegion = toRegion(proto.visibleRegion)
25 const activeBuffer = toBuffer(proto.activeBuffer)
26 const bounds = toRectF(proto.bounds)
27 const color = toColor(proto.color)
28 const screenBounds = toRectF(proto.screenBounds)
29 const sourceBounds = toRectF(proto.sourceBounds)
30 const transform = Transform.fromProto(proto.transform, proto.position)
31 const bufferTransform = Transform.fromProto(proto.bufferTransform, /* position */ null)
32 const hwcCrop = toRectF(proto.hwcCrop)
33 const hwcFrame = toRect(proto.hwcFrame)
35 if (proto.crop) {
36 crop = toRect(proto.crop)
40 proto.name ?? ``,
41 proto.id,
42 proto.parent,
43 proto.z,
46 proto.flags,
49 proto.isOpaque,
50 proto.shadowRadius,
51 proto.cornerRadius,
52 proto.type ?? ``,
56 proto.currFrame,
57 proto.effectiveScalingMode,
59 proto.hwcCompositionType,
62 proto.backgroundBlurRadius,
64 proto.isRelativeOf,
65 proto.zOrderRelativeOf
68 addAttributes(entry, proto);
72 function addAttributes(entry: Layer, proto: any) {
75 entry.proto = proto;