From 48c6d0d0d11c49d62925606812e50496b7893592 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 29 May 2014 17:23:57 +0000 Subject: Simplify Rect Rects are now x, y, w, h, rather than point, size. TBR=darin@chromium.org BUG=none Review URL: https://codereview.chromium.org/303743002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273511 0039d316-1c4b-4281-b951-d872f2087c98 --- mojo/examples/compositor_app/compositor_app.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mojo/examples/compositor_app') diff --git a/mojo/examples/compositor_app/compositor_app.cc b/mojo/examples/compositor_app/compositor_app.cc index db6e4e2..7209537 100644 --- a/mojo/examples/compositor_app/compositor_app.cc +++ b/mojo/examples/compositor_app/compositor_app.cc @@ -46,7 +46,11 @@ class SampleApp : public Application, public NativeViewportClient { } virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE { - host_->SetSize(bounds.size()); + AllocationScope scope; + Size::Builder size; + size.set_width(bounds.width()); + size.set_height(bounds.height()); + host_->SetSize(size.Finish()); } virtual void OnEvent(const Event& event, -- cgit v1.1