Bug 1205521 - Part1: (v3) Add texture/mask attribute fields in LayerScopePacket.proto. r=dglastonbury

This commit is contained in:
Jeremy Chen 2015-10-18 20:31:00 +02:00
parent 07c20b2b1c
commit 1ec03924ae

View File

@ -20,6 +20,32 @@ message ColorPacket {
}
message TexturePacket {
enum Filter {
GOOD = 0;
LINEAR = 1;
POINT = 2;
}
message Rect {
optional float x = 1;
optional float y = 2;
optional float w = 3;
optional float h = 4;
}
message Size {
optional int32 w = 1;
optional int32 h = 2;
}
message Matrix {
optional bool is2D = 1;
optional bool isId = 2;
repeated float m = 3;
}
message EffectMask {
optional bool mIs3D = 1;
optional Size mSize = 2;
optional Matrix mMaskTransform = 3;
}
// Basic info
required uint64 layerref = 1;
optional uint32 width = 2;
@ -31,12 +57,14 @@ message TexturePacket {
optional uint64 glcontext = 8;
optional bytes data = 9;
// Texture effect attributes (10 to 19)
// TODO: reserved for primary textured effect attributes, see Bug 1205521
// TextureEffect attributes
optional Rect mTextureCoords = 10;
optional bool mPremultiplied = 11;
optional Filter mFilter = 12;
// Mask effect attributes (20 to 29)
// Mask attributes
optional bool isMask = 20;
// TODO: reserved for secondary mask effect attributes, see Bug 1205521
optional EffectMask mask = 21;
}
message LayersPacket {