Index: ui/compositor/paint_context.cc |
diff --git a/ui/compositor/paint_context.cc b/ui/compositor/paint_context.cc |
index aea2aec90134feb9521cf7a043bb1db1a1dfd999..07503fe2f0c709cbfe75675baa5c978562736251 100644 |
--- a/ui/compositor/paint_context.cc |
+++ b/ui/compositor/paint_context.cc |
@@ -54,4 +54,8 @@ PaintContext::PaintContext(const PaintContext& other, |
PaintContext::~PaintContext() { |
} |
+gfx::Rect PaintContext::ToVisualRect(const gfx::Size& visual_size) const { |
+ return gfx::Rect(gfx::Point(offset_.x(), offset_.y()), visual_size); |
danakj
2015/11/06 00:32:45
nit: return gfx::Rect(visual_size) + offset_ ?
wkorman
2015/11/16 19:01:03
Done.
|
+} |
+ |
} // namespace ui |