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

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: 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/gles2/gles2_client_impl.cc
diff --git a/mojo/gles2/gles2_client_impl.cc b/mojo/gles2/gles2_client_impl.cc
index a8168279b5d8c49d671b0f92a03d83e94dc1dccc..cb6f0a8421947047f73153557498c40e51eb5e0e 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() {

Powered by Google App Engine
This is Rietveld 408576698