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

Unified Diff: ui/compositor/transform_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/paint_recorder.cc ('k') | ui/compositor/transform_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/transform_recorder.h
diff --git a/ui/compositor/transform_recorder.h b/ui/compositor/transform_recorder.h
index f3307bc704cc137862aec67741843c81892231bd..b7c95a83236c8a61eec6d26a6e3dd15cd0f35628 100644
--- a/ui/compositor/transform_recorder.h
+++ b/ui/compositor/transform_recorder.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "ui/compositor/compositor_export.h"
+#include "ui/gfx/geometry/rect.h"
namespace cc {
class DisplayItem;
@@ -14,6 +15,7 @@ class DisplayItemList;
}
namespace gfx {
+class Size;
class Transform;
}
@@ -26,13 +28,17 @@ class PaintContext;
// PaintRecorders or other TransformRecorders will be transformed.
class COMPOSITOR_EXPORT TransformRecorder {
public:
- explicit TransformRecorder(const PaintContext& context);
+ // |size_in_layer| is the size in layer space dimensions surrounding
+ // everything that's visible.
+ TransformRecorder(const PaintContext& context,
+ const gfx::Size& size_in_layer);
~TransformRecorder();
void Transform(const gfx::Transform& transform);
private:
const PaintContext& context_;
+ const gfx::Rect bounds_in_layer_;
bool transformed_;
DISALLOW_COPY_AND_ASSIGN(TransformRecorder);
« no previous file with comments | « ui/compositor/paint_recorder.cc ('k') | ui/compositor/transform_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698