Fix AutoDisableInline to avoid re-enabling inlining.

Change-Id: I3d796581ab8bb0f6c1b6932e4469fb006e55e228
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/309722
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
John Stiles 2020-08-12 11:48:48 -04:00 committed by Skia Commit-Bot
parent b3f26441d1
commit 46d175877a

View File

@ -107,7 +107,7 @@ public:
AutoDisableInline(IRGenerator* ir, bool canInline = false)
: fIR(ir) {
fOldCanInline = ir->fCanInline;
fIR->fCanInline = canInline;
fIR->fCanInline &= canInline;
}
~AutoDisableInline() {