Title: [110432] trunk/Source/WebCore
- Revision
- 110432
- Author
- [email protected]
- Date
- 2012-03-12 08:47:40 -0700 (Mon, 12 Mar 2012)
Log Message
[chromium] A couple early-outs for occlusion tracker
https://bugs.webkit.org/show_bug.cgi?id=80742
Patch by Dana Jansens <[email protected]> on 2012-03-12
Reviewed by Adrienne Walker.
Covered by existing tests.
* platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
(WebCore::::occluded):
(WebCore::::unoccludedContentRect):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (110431 => 110432)
--- trunk/Source/WebCore/ChangeLog 2012-03-12 15:45:43 UTC (rev 110431)
+++ trunk/Source/WebCore/ChangeLog 2012-03-12 15:47:40 UTC (rev 110432)
@@ -1,3 +1,16 @@
+2012-03-12 Dana Jansens <[email protected]>
+
+ [chromium] A couple early-outs for occlusion tracker
+ https://bugs.webkit.org/show_bug.cgi?id=80742
+
+ Reviewed by Adrienne Walker.
+
+ Covered by existing tests.
+
+ * platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
+ (WebCore::::occluded):
+ (WebCore::::unoccludedContentRect):
+
2012-03-12 Zeno Albisser <[email protected]>
[Qt][Mac] Build fails after adding WebCoreCFAutorelease(CFTypeRef) (r110360).
Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCOcclusionTracker.cpp (110431 => 110432)
--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCOcclusionTracker.cpp 2012-03-12 15:45:43 UTC (rev 110431)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCOcclusionTracker.cpp 2012-03-12 15:47:40 UTC (rev 110432)
@@ -243,6 +243,8 @@
ASSERT(!m_stack.isEmpty());
if (m_stack.isEmpty())
return false;
+ if (contentRect.isEmpty())
+ return true;
ASSERT(layer->targetRenderSurface() == m_stack.last().surface);
@@ -284,6 +286,8 @@
ASSERT(!m_stack.isEmpty());
if (m_stack.isEmpty())
return contentRect;
+ if (contentRect.isEmpty())
+ return contentRect;
// We want to return a rect that contains all the visible parts of |contentRect| in both screen space and in the target surface.
// So we find the visible parts of |contentRect| in each space, and take the intersection.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes