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

Issue 2176903002: cc: Fix occlusion tracking for layers with non-default blend modes (Closed)

Created:
4 years, 5 months ago by ajuma
Modified:
4 years, 4 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, jaydasika
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix occlusion tracking for layers with non-default blend modes When computing the occlusion from a layer, draw_blend_mode rather than blend_mode needs to be considered, since draw_blend_mode is what's used when drawing the layer. However, non-default blend modes currently always trigger surface creation, and then the blend mode gets applied when drawing the surface. This means that draw_blend_mode is always SrcOver. This CL replaces the incorrect use of blend_mode in OcclusionTracker::MarkOcclusionBehindLayer with a DCHECK that draw_blend_mode is SrcOver. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/2d466aa59bdd093b023b47ad861fbb0ddabce21f Cr-Commit-Position: refs/heads/master@{#407572}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M cc/trees/occlusion_tracker.cc View 1 chunk +3 lines, -2 lines 1 comment Download
M cc/trees/occlusion_tracker_unittest.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
ajuma
https://codereview.chromium.org/2176903002/diff/1/cc/trees/occlusion_tracker.cc File cc/trees/occlusion_tracker.cc (right): https://codereview.chromium.org/2176903002/diff/1/cc/trees/occlusion_tracker.cc#newcode355 cc/trees/occlusion_tracker.cc:355: DCHECK_EQ(layer->draw_blend_mode(), SkXfermode::kSrcOver_Mode); An alternative would be to delete draw_blend_mode ...
4 years, 5 months ago (2016-07-25 18:34:42 UTC) #10
enne (OOO)
lgtm
4 years, 4 months ago (2016-07-25 19:18:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2176903002/1
4 years, 4 months ago (2016-07-25 19:46:15 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-25 21:14:37 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-07-25 21:17:22 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2d466aa59bdd093b023b47ad861fbb0ddabce21f
Cr-Commit-Position: refs/heads/master@{#407572}

Powered by Google App Engine
This is Rietveld 408576698