summaryrefslogtreecommitdiffstats
path: root/mojo/examples/compositor_app
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-29 17:23:57 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-29 17:23:57 +0000
commit48c6d0d0d11c49d62925606812e50496b7893592 (patch)
tree26893543a76364c407e985b5acc84fe50f3202fd /mojo/examples/compositor_app
parent9ac4b3aa68b70da5d4346a6f38dd704acb5b82c2 (diff)
downloadchromium_src-48c6d0d0d11c49d62925606812e50496b7893592.zip
chromium_src-48c6d0d0d11c49d62925606812e50496b7893592.tar.gz
chromium_src-48c6d0d0d11c49d62925606812e50496b7893592.tar.bz2
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
Diffstat (limited to 'mojo/examples/compositor_app')
-rw-r--r--mojo/examples/compositor_app/compositor_app.cc6
1 files changed, 5 insertions, 1 deletions
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,