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

Unified Diff: cc/draw_quad.cc

Issue 11270042: Add non-member non-mutating methods for common gfx::Rect operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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 | « cc/direct_renderer.cc ('k') | cc/software_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/draw_quad.cc
diff --git a/cc/draw_quad.cc b/cc/draw_quad.cc
index e350c69718d2099bcd9bce0576843110191e6168..13a1c45fe00ac53305bcce1053c647a8aa77fdec 100644
--- a/cc/draw_quad.cc
+++ b/cc/draw_quad.cc
@@ -43,8 +43,7 @@ gfx::Rect DrawQuad::opaqueRect() const
void DrawQuad::setQuadVisibleRect(gfx::Rect quadVisibleRect)
{
- m_quadVisibleRect = quadVisibleRect;
- m_quadVisibleRect.Intersect(m_quadRect);
+ m_quadVisibleRect = gfx::IntersectRects(quadVisibleRect, m_quadRect);
}
unsigned DrawQuad::size() const
« no previous file with comments | « cc/direct_renderer.cc ('k') | cc/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698