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

Unified Diff: mojo/examples/sample_app/sample_app.cc

Issue 131153007: Send size to NativeViewportClient::OnCreated instead of GLES2Client::DidCreateContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix various issues Created 6 years, 11 months 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 | « mojo/examples/sample_app/gles2_client_impl.cc ('k') | mojo/gles2/gles2_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/sample_app/sample_app.cc
diff --git a/mojo/examples/sample_app/sample_app.cc b/mojo/examples/sample_app/sample_app.cc
index 5c3e878d9a2ddb78d81dbfaf2d7eaf6945a13348..6c4df4d2ef7cba668b8eea1c66697640cfda1cd9 100644
--- a/mojo/examples/sample_app/sample_app.cc
+++ b/mojo/examples/sample_app/sample_app.cc
@@ -76,6 +76,7 @@ class SampleApp : public ShellClient {
}
virtual void OnBoundsChanged(const Rect& bounds) MOJO_OVERRIDE {
+ gles2_client_->SetSize(bounds.size());
}
virtual void OnEvent(const Event& event) MOJO_OVERRIDE {
« no previous file with comments | « mojo/examples/sample_app/gles2_client_impl.cc ('k') | mojo/gles2/gles2_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698