turn on force_opaque for opaque devices
Change-Id: I517be3182745baaff539cfd24dd47df4c17e24d9 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/232820 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Herb Derby <herb@google.com>
This commit is contained in:
parent
46f7ff9692
commit
5bf028e840
@ -178,7 +178,10 @@ namespace {
|
||||
break;
|
||||
}
|
||||
|
||||
bool force_opaque = false && key.alphaType == kOpaque_SkAlphaType; // TODO: try this?
|
||||
// When a destination is tagged opaque, we may assume it both starts and stays fully
|
||||
// opaque, ignoring any math that disagrees. So anything involving force_opaque is
|
||||
// optional, and sometimes helps cut a small amount of work in these programs.
|
||||
const bool force_opaque = true && key.alphaType == kOpaque_SkAlphaType;
|
||||
if (force_opaque) { dst.a = splat(0xff); }
|
||||
|
||||
// We'd need to premul dst after loading and unpremul before storing.
|
||||
|
Loading…
Reference in New Issue
Block a user