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

Unified Diff: mojo/gles2/gles2_client_impl.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/gles2/gles2_client_impl.h ('k') | mojo/public/gles2/gles2_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/gles2_client_impl.cc
diff --git a/mojo/gles2/gles2_client_impl.cc b/mojo/gles2/gles2_client_impl.cc
index 6f4e21b46dd537e96f6cd0a7fbe097dd77f85522..4bca145998cd8912f03be82ce1587717df4868dd 100644
--- a/mojo/gles2/gles2_client_impl.cc
+++ b/mojo/gles2/gles2_client_impl.cc
@@ -38,9 +38,7 @@ void GLES2ClientImpl::CancelAnimationFrames() {
service_->CancelAnimationFrames();
}
-void GLES2ClientImpl::DidCreateContext(uint64_t encoded,
- uint32_t width,
- uint32_t height) {
+void GLES2ClientImpl::DidCreateContext(uint64_t encoded) {
// Ack, Hans! It's the giant hack.
// TODO(abarth): Replace this hack with something more disciplined. Most
// likley, we should receive a MojoHandle that we use to wire up the
@@ -48,7 +46,7 @@ void GLES2ClientImpl::DidCreateContext(uint64_t encoded,
// still in-process, we just reinterpret_cast the value into a GL interface.
implementation_ = reinterpret_cast<gpu::gles2::GLES2Implementation*>(
static_cast<uintptr_t>(encoded));
- created_callback_(closure_, width, height);
+ created_callback_(closure_);
}
void GLES2ClientImpl::ContextLost() {
« no previous file with comments | « mojo/gles2/gles2_client_impl.h ('k') | mojo/public/gles2/gles2_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698