mark bitmap immutable in bench

So we don't incidentally measure the cost of the copy

Change-Id: I6f7e2119792423b0857764b3b557a9f838bb43fb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/334423
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2020-11-12 11:26:43 -05:00 committed by Skia Commit-Bot
parent 24000785e5
commit db0b9980fb

View File

@ -68,6 +68,9 @@ protected:
this->onDrawIntoBitmap(bm);
fBitmap = bm;
if (!fForceUpdate) {
fBitmap.setImmutable();
}
}
void onDraw(int loops, SkCanvas* canvas) override {