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:
parent
b3f26441d1
commit
46d175877a
@ -107,7 +107,7 @@ public:
|
||||
AutoDisableInline(IRGenerator* ir, bool canInline = false)
|
||||
: fIR(ir) {
|
||||
fOldCanInline = ir->fCanInline;
|
||||
fIR->fCanInline = canInline;
|
||||
fIR->fCanInline &= canInline;
|
||||
}
|
||||
|
||||
~AutoDisableInline() {
|
||||
|
Loading…
Reference in New Issue
Block a user