diff options
author | wkorman <wkorman@chromium.org> | 2015-11-25 01:13:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-25 09:14:56 +0000 |
commit | b969018fe0b7eb4b71478199249e58c85fa26847 (patch) | |
tree | e0f05badc0bb38ee50a5f97c1350e70612a83099 /ui/compositor/compositing_recorder.h | |
parent | 952e0235784f0dfef7627a41420c13d0a0ec6da8 (diff) | |
download | chromium_src-b969018fe0b7eb4b71478199249e58c85fa26847.zip chromium_src-b969018fe0b7eb4b71478199249e58c85fa26847.tar.gz chromium_src-b969018fe0b7eb4b71478199249e58c85fa26847.tar.bz2 |
Further plumb visual rect into cc:DisplayItemList.
Save rects off in cc:DisplayItemList and clear them
out in Finalize(), with TODO(vmpstr) to actually use
them to build the RTree.
Pass along the Blink visual rect obtained via work in
http://crrev.com/1426963002. Add logic to UI compositor
display item list callsites to pass along a relevant
visual rect.
Note the Blink side is still passing dummy visual rects.
BUG=529938
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1423653005
Cr-Commit-Position: refs/heads/master@{#361612}
Diffstat (limited to 'ui/compositor/compositing_recorder.h')
-rw-r--r-- | ui/compositor/compositing_recorder.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ui/compositor/compositing_recorder.h b/ui/compositor/compositing_recorder.h index 729ddb9..499f424 100644 --- a/ui/compositor/compositing_recorder.h +++ b/ui/compositor/compositing_recorder.h @@ -8,6 +8,11 @@ #include "base/basictypes.h" #include "base/macros.h" #include "ui/compositor/compositor_export.h" +#include "ui/gfx/geometry/rect.h" + +namespace gfx { +class Size; +} namespace ui { class PaintContext; @@ -20,12 +25,16 @@ class PaintContext; class COMPOSITOR_EXPORT CompositingRecorder { public: // |alpha| is a value between 0 and 255, where 0 is transparent and 255 is - // opaque. - CompositingRecorder(const PaintContext& context, uint8_t alpha); + // opaque. |size_in_layer| is the size in layer space dimensions surrounding + // everything that's visible. + CompositingRecorder(const PaintContext& context, + const gfx::Size& size_in_layer, + uint8_t alpha); ~CompositingRecorder(); private: const PaintContext& context_; + const gfx::Rect bounds_in_layer_; bool saved_; DISALLOW_COPY_AND_ASSIGN(CompositingRecorder); |