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

Unified Diff: cc/occlusion_tracker.cc

Issue 11368156: cc: Expose clear and swap on Region (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 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/layer_tree_host_unittest.cc ('k') | cc/region.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/occlusion_tracker.cc
diff --git a/cc/occlusion_tracker.cc b/cc/occlusion_tracker.cc
index 50a453e186cfc4e4eaa461446ac35361cc03a750..afaf9c2dc5ecfdf611a8a474ad6d0aebc1e73fa9 100644
--- a/cc/occlusion_tracker.cc
+++ b/cc/occlusion_tracker.cc
@@ -111,13 +111,13 @@ void OcclusionTrackerBase<LayerType, RenderSurfaceType>::finishedRenderTarget(co
// TODO(senorblanco): Make this smarter for SkImageFilter case: once
// SkImageFilters can report affectsOpacity(), call that.
if (finishedTarget->maskLayer() || !surfaceOpacityKnown(surface) || surface->drawOpacity() < 1 || finishedTarget->filters().hasFilterThatAffectsOpacity() || finishedTarget->filter()) {
- m_stack.back().occlusionInScreen = Region();
- m_stack.back().occlusionInTarget = Region();
+ m_stack.back().occlusionInScreen.Clear();
+ m_stack.back().occlusionInTarget.Clear();
} else {
if (!surfaceTransformsToTargetKnown(surface))
- m_stack.back().occlusionInTarget = Region();
+ m_stack.back().occlusionInTarget.Clear();
if (!surfaceTransformsToScreenKnown(surface))
- m_stack.back().occlusionInScreen = Region();
+ m_stack.back().occlusionInScreen.Clear();
}
}
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/region.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698