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

Unified Diff: ui/compositor/compositing_recorder.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/clip_recorder.cc ('k') | ui/compositor/compositing_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositing_recorder.h
diff --git a/ui/compositor/compositing_recorder.h b/ui/compositor/compositing_recorder.h
index 729ddb9d5816f62a0972158e683eade9a42f2c86..499f424bf10d35f357b29cb14d235cf30271baec 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);
« no previous file with comments | « ui/compositor/clip_recorder.cc ('k') | ui/compositor/compositing_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698