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

Unified Diff: mojo/examples/compositor_app/compositor_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/compositor_app/compositor_app.cc
diff --git a/mojo/examples/compositor_app/compositor_app.cc b/mojo/examples/compositor_app/compositor_app.cc
index a4e11825119366f3473da7c009039fa138abf8ef..e81ca1ed96dca833b24390e247c96fa86569bd6b 100644
--- a/mojo/examples/compositor_app/compositor_app.cc
+++ b/mojo/examples/compositor_app/compositor_app.cc
@@ -62,13 +62,14 @@ class SampleApp : public ShellClient {
host_.reset(new CompositorHost(gles2_client_.get()));
}
- void DidCreateContext(gfx::Size viewport_size) {
- host_->DidCreateContext(viewport_size);
+ void DidCreateContext() {
+ host_->DidCreateContext();
}
virtual ~NativeViewportClientImpl() {}
- virtual void OnCreated() MOJO_OVERRIDE {
+ virtual void OnCreated(uint32_t width, uint32_t height) MOJO_OVERRIDE {
+ host_->SetSize(gfx::Size(width, height));
}
virtual void OnDestroyed() MOJO_OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698