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

Unified Diff: mojo/examples/compositor_app/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/examples/compositor_app/gles2_client_impl.h ('k') | mojo/examples/launcher/launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/compositor_app/gles2_client_impl.cc
diff --git a/mojo/examples/compositor_app/gles2_client_impl.cc b/mojo/examples/compositor_app/gles2_client_impl.cc
index 3b59f96f5af98aa9c3d07ca396be8c76854728f8..5cc03212c161196c345aa82023e8bc120810b8b7 100644
--- a/mojo/examples/compositor_app/gles2_client_impl.cc
+++ b/mojo/examples/compositor_app/gles2_client_impl.cc
@@ -13,7 +13,7 @@ namespace examples {
GLES2ClientImpl::GLES2ClientImpl(
ScopedMessagePipeHandle pipe,
- const base::Callback<void(gfx::Size)>& context_created_callback)
+ const base::Callback<void()>& context_created_callback)
: context_created_callback_(context_created_callback) {
context_ = MojoGLES2CreateContext(
pipe.release().value(),
@@ -42,18 +42,14 @@ gpu::ContextSupport* GLES2ClientImpl::Support() const {
MojoGLES2GetContextSupport(context_));
}
-void GLES2ClientImpl::DidCreateContext(uint32_t width,
- uint32_t height) {
+void GLES2ClientImpl::DidCreateContext() {
TRACE_EVENT0("compositor_app", "DidCreateContext");
if (!context_created_callback_.is_null())
- context_created_callback_.Run(gfx::Size(width, height));
+ context_created_callback_.Run();
}
-void GLES2ClientImpl::DidCreateContextThunk(
- void* closure,
- uint32_t width,
- uint32_t height) {
- static_cast<GLES2ClientImpl*>(closure)->DidCreateContext(width, height);
+void GLES2ClientImpl::DidCreateContextThunk(void* closure) {
+ static_cast<GLES2ClientImpl*>(closure)->DidCreateContext();
}
void GLES2ClientImpl::ContextLost() {
« no previous file with comments | « mojo/examples/compositor_app/gles2_client_impl.h ('k') | mojo/examples/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698