Index: Source/WebCore/platform/graphics/chromium/cc/CCOcclusionTracker.h |
=================================================================== |
--- Source/WebCore/platform/graphics/chromium/cc/CCOcclusionTracker.h (revision 114754) |
+++ Source/WebCore/platform/graphics/chromium/cc/CCOcclusionTracker.h (working copy) |
@@ -77,6 +77,9 @@ |
const Region& currentOcclusionInScreenSpace() const; |
const Region& currentOcclusionInTargetSurface() const; |
+ // Gives the region of the screen that is not occluded by something opaque. |
+ Region computeVisibleRegionInScreen() const { return subtract(Region(m_scissorRectInScreenSpace), m_stack.last().occlusionInScreen); } |
+ |
protected: |
struct StackObject { |
StackObject() : surface(0) { } |