Chromium Code Reviews| Index: cc/output/overlay_strategy_fullscreen.cc |
| diff --git a/cc/output/overlay_strategy_fullscreen.cc b/cc/output/overlay_strategy_fullscreen.cc |
| index 681611fa5f233f99094eb6656d8d12d8be93cfd8..7082441cf46cddd90dc433db66e6d30146b2a544 100644 |
| --- a/cc/output/overlay_strategy_fullscreen.cc |
| +++ b/cc/output/overlay_strategy_fullscreen.cc |
| @@ -38,8 +38,14 @@ bool OverlayStrategyFullscreen::Attempt( |
| if (front == quad_list->end()) |
| return false; |
| + const DrawQuad* quad = *front; |
| + if (quad->ShouldDrawWithBlending() || |
| + quad->shared_quad_state->opacity != 1.f || |
| + quad->shared_quad_state->blend_mode != SkBlendMode::kSrcOver) |
|
reveman
2017/03/08 21:40:49
what about SkBlendMode::kSrc? Android uses this wh
Daniele Castagna
2017/03/13 02:09:19
Just wanted to keep it consistent with the check w
reveman
2017/03/13 02:14:49
Play store should be enough to test this I think.
Daniele Castagna
2017/03/13 02:24:04
Play store uses kSrcOver, otherwise we'd reject it
Daniele Castagna
2017/03/13 03:32:56
Play Store is kSrcOver.
reveman
2017/03/13 11:58:12
Android M or N? What's the format of the buffer? I
|
| + return false; |
| + |
| OverlayCandidate candidate; |
| - if (!OverlayCandidate::FromDrawQuad(resource_provider, *front, &candidate)) { |
| + if (!OverlayCandidate::FromDrawQuad(resource_provider, quad, &candidate)) { |
| return false; |
| } |