Index: ui/compositor/paint_context.cc |
diff --git a/ui/compositor/paint_context.cc b/ui/compositor/paint_context.cc |
index aea2aec90134feb9521cf7a043bb1db1a1dfd999..d6abed65560db010a2725fa54edce7b6c3fe5d70 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::ToLayerSpaceBounds(const gfx::Size& layer_size) const { |
+ return gfx::Rect(layer_size) + offset_; |
+} |
+ |
} // namespace ui |