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

Unified Diff: cc/render_surface_impl.cc

Issue 12179022: cc: The RenderSurface contentRect can have negative position. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/render_surface_impl.cc
diff --git a/cc/render_surface_impl.cc b/cc/render_surface_impl.cc
index c7a346b41e3c143321ec37617229d0e8014f715d..4278a2dd593c1fa6bc4f9cdfe38f66cfb31279f2 100644
--- a/cc/render_surface_impl.cc
+++ b/cc/render_surface_impl.cc
@@ -209,7 +209,8 @@ void RenderSurfaceImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& appendQ
owningLayerDrawScale.y());
// This assumes that the owning layer clips its subtree when a mask is
// present.
- DCHECK(gfx::RectF(unclippedSurfaceSize).Contains(contentRect()));
+ DCHECK(gfx::RectF(unclippedSurfaceSize).Contains(
+ gfx::Rect(contentRect().size())));
shawnsingh 2013/02/04 21:51:08 Thanks for catching this. I think it might be a s
danakj 2013/02/04 21:52:15 I just didn't think we have the position of the un
shawnsingh 2013/02/04 21:59:24 Oh, I see, you're right. Also, thinking a second
float uvScaleX = contentRect().width() / unclippedSurfaceSize.width();
float uvScaleY = contentRect().height() / unclippedSurfaceSize.height();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698