commit | 56d19a5707c61892aca42c4fdbc439459bce92b1 | [log] [tgz] |
---|---|---|
author | Ethan Nicholas <ethannicholas@google.com> | Mon Oct 15 11:26:20 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Oct 15 16:03:56 2018 +0000 |
tree | ccd06723745bd825d43d069ea9ba48b9863bac46 | |
parent | c921067eaa2b6df61c38a2f1480e4f669d7d18f3 [diff] [blame] |
add support for clears to Metal backend Bug: skia: Change-Id: I35d9fcf096d078d6dc04093e3591df0ac12079b7 Reviewed-on: https://skia-review.googlesource.com/c/161821 Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/mtl/GrMtlCaps.h b/src/gpu/mtl/GrMtlCaps.h index c10f656..e72ea83 100644 --- a/src/gpu/mtl/GrMtlCaps.h +++ b/src/gpu/mtl/GrMtlCaps.h
@@ -80,6 +80,10 @@ return false; } + bool performPartialClearsAsDraws() const override { + return true; + } + private: void initFeatureSet(MTLFeatureSet featureSet);