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

Unified Diff: cc/trees/occlusion_tracker.cc

Issue 23455060: mix-blend-mode implementation for accelerated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittests fixed Created 7 years, 1 month 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 | « cc/trees/layer_tree_host_unittest_occlusion.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker.cc
diff --git a/cc/trees/occlusion_tracker.cc b/cc/trees/occlusion_tracker.cc
index 09fc11492142255ab969a07fafce6124809df908..1c6c8a04e4ea25a2c2d66bbc539fdf6b9b8655bf 100644
--- a/cc/trees/occlusion_tracker.cc
+++ b/cc/trees/occlusion_tracker.cc
@@ -224,9 +224,9 @@ void OcclusionTrackerBase<LayerType, RenderSurfaceType>::FinishedRenderTarget(
// If the occlusion within the surface can not be applied to things outside of
// the surface's subtree, then clear the occlusion here so it won't be used.
- if (finished_target->mask_layer() ||
- !SurfaceOpacityKnown(surface) ||
+ if (finished_target->mask_layer() || !SurfaceOpacityKnown(surface) ||
surface->draw_opacity() < 1 ||
+ !finished_target->uses_default_blend_mode() ||
target_is_only_for_copy_request ||
finished_target->filters().HasFilterThatAffectsOpacity()) {
stack_.back().occlusion_from_outside_target.Clear();
@@ -405,6 +405,9 @@ void OcclusionTrackerBase<LayerType, RenderSurfaceType>::
if (!LayerOpacityKnown(layer) || layer->draw_opacity() < 1)
return;
+ if (!layer->uses_default_blend_mode())
+ return;
+
if (LayerIsInUnsorted3dRenderingContext(layer))
return;
« no previous file with comments | « cc/trees/layer_tree_host_unittest_occlusion.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698