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

Unified Diff: ui/compositor/paint_context.cc

Issue 1423653005: Further plumb visual rect into cc:DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: De-static const rect in test. Created 5 years, 1 month 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
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

Powered by Google App Engine
This is Rietveld 408576698