Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Unified Diff: cc/output/overlay_candidate.cc

Issue 2716123003: DON'T REVIEW: Hack to get alpha overlays. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/gbm_buffer_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_candidate.cc
diff --git a/cc/output/overlay_candidate.cc b/cc/output/overlay_candidate.cc
index 64ee2a5766822feccf2798c45864f1dfaafdec50..d0d51f14b1fa34a7b230533767422565afafff6f 100644
--- a/cc/output/overlay_candidate.cc
+++ b/cc/output/overlay_candidate.cc
@@ -190,9 +190,7 @@ OverlayCandidate::~OverlayCandidate() {}
bool OverlayCandidate::FromDrawQuad(ResourceProvider* resource_provider,
const DrawQuad* quad,
OverlayCandidate* candidate) {
- if (quad->ShouldDrawWithBlending() ||
- quad->shared_quad_state->opacity != 1.f ||
- quad->shared_quad_state->blend_mode != SkBlendMode::kSrcOver)
+ if (quad->shared_quad_state->blend_mode != SkBlendMode::kSrcOver)
return false;
auto& transform = quad->shared_quad_state->quad_to_target_transform;
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/gbm_buffer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698