added support for SkMatrix44 ctype

Bug: skia:
Change-Id: Ia09660d88837de6c8b55ded96696d3c3680df2a9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/217130
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Ethan Nicholas 2019-05-30 14:50:08 -04:00 committed by Skia Commit-Bot
parent a36e089065
commit 65e49ba51b
2 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,7 @@ void Parser::InitLayoutMap() {
TOKEN(SKRECT, "SkRect");
TOKEN(SKIRECT, "SkIRect");
TOKEN(SKPMCOLOR, "SkPMColor");
TOKEN(SKMATRIX44, "SkMatrix44");
TOKEN(BOOL, "bool");
TOKEN(INT, "int");
TOKEN(FLOAT, "float");
@ -749,6 +750,8 @@ Layout::CType Parser::layoutCType() {
return Layout::CType::kInt32;
case LayoutToken::FLOAT:
return Layout::CType::kFloat;
case LayoutToken::SKMATRIX44:
return Layout::CType::kSkMatrix44;
default:
break;
}

View File

@ -95,6 +95,7 @@ public:
SKRECT,
SKIRECT,
SKPMCOLOR,
SKMATRIX44,
BOOL,
INT,
FLOAT,