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

Unified Diff: ui/compositor/paint_context.h

Issue 1423653005: Further plumb visual rect into cc:DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clip recorder params in omnibox. 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
« no previous file with comments | « ui/compositor/paint_cache.cc ('k') | ui/compositor/paint_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/paint_context.h
diff --git a/ui/compositor/paint_context.h b/ui/compositor/paint_context.h
index b118c02ac8a64391d5d2ae2d4bbae2676ff9a930..9d42b556bf835c83384b523d90b301a716791a57 100644
--- a/ui/compositor/paint_context.h
+++ b/ui/compositor/paint_context.h
@@ -80,6 +80,13 @@ class COMPOSITOR_EXPORT PaintContext {
// cache contents.
friend class PaintCache;
+ // Returns a rect with the given size in the space of the context's
+ // containing layer.
+ gfx::Rect ToLayerSpaceBounds(const gfx::Size& size_in_layer) const;
+
+ // Returns the given rect translated by the layer space offset.
+ gfx::Rect ToLayerSpaceRect(const gfx::Rect& rect) const;
+
cc::DisplayItemList* list_;
scoped_ptr<SkPictureRecorder> owned_recorder_;
// A pointer to the |owned_recorder_| in this PaintContext, or in another one
« no previous file with comments | « ui/compositor/paint_cache.cc ('k') | ui/compositor/paint_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698