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

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: fix TODO 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
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 810ea270e73b89e1620ed6ae2debd5cf91344e1e..aa3bdf245925de88282818bca3e9490657061668 100644
--- a/mojo/examples/sample_app/sample_app.cc
+++ b/mojo/examples/sample_app/sample_app.cc
@@ -57,7 +57,8 @@ class SampleApp : public ShellClient {
virtual ~NativeViewportClientImpl() {}
- virtual void OnCreated() MOJO_OVERRIDE {
+ virtual void OnCreated(uint32_t width, uint32_t height) MOJO_OVERRIDE {
+ gles2_client_->SetSize(gfx::Size(width, height));
}
virtual void OnDestroyed() MOJO_OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698