Searched defs:sub_rect (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/cc/base/
H A Dsimple_enclosed_region.cc26 void SimpleEnclosedRegion::Subtract(const gfx::Rect& sub_rect) { argument
28 // largest rectangle inside |rect_| that does not intersect with |sub_rect|.
29 if (!rect_.Intersects(sub_rect))
31 if (sub_rect.Contains(rect_)) {
41 int delta_left = sub_rect.x() - left;
42 int delta_right = right - sub_rect.right();
43 int delta_top = sub_rect.y() - top;
44 int delta_bottom = bottom - sub_rect.bottom();
47 // |sub_rect| and inside rect_.
51 horizontal_bottom = sub_rect
[all...]
/external/chromium_org/cc/output/
H A Drenderer_pixeltest.cc1226 gfx::Rect sub_rect = gfx::Rect(50, 50, 100, 100); local
1227 EXPECT_NE(sub_rect.x(), child_pass->output_rect.x());
1228 EXPECT_NE(sub_rect.y(), child_pass->output_rect.y());
1229 EXPECT_NE(sub_rect.right(), child_pass->output_rect.right());
1230 EXPECT_NE(sub_rect.bottom(), child_pass->output_rect.bottom());
1231 EXPECT_TRUE(child_pass->output_rect.Contains(sub_rect));
1237 sub_rect,
1238 sub_rect,

Completed in 258 milliseconds