Index: ui/compositor/paint_context.cc |
diff --git a/ui/compositor/paint_context.cc b/ui/compositor/paint_context.cc |
index aea2aec90134feb9521cf7a043bb1db1a1dfd999..296667663f80024111d7098e96a5e090a5082c0c 100644 |
--- a/ui/compositor/paint_context.cc |
+++ b/ui/compositor/paint_context.cc |
@@ -54,4 +54,13 @@ PaintContext::PaintContext(const PaintContext& other, |
PaintContext::~PaintContext() { |
} |
+gfx::Rect PaintContext::ToLayerSpaceBounds( |
+ const gfx::Size& size_in_layer) const { |
+ return gfx::Rect(size_in_layer) + offset_; |
+} |
+ |
+gfx::Rect PaintContext::ToLayerSpaceRect(const gfx::Rect& rect) const { |
+ return rect + offset_; |
+} |
+ |
} // namespace ui |