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

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: Fix cc unit tests. 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..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

Powered by Google App Engine
This is Rietveld 408576698