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

Unified Diff: mojo/examples/compositor_app/gles2_client_impl.h

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/compositor_host.cc ('k') | mojo/examples/compositor_app/gles2_client_impl.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.h
diff --git a/mojo/examples/compositor_app/gles2_client_impl.h b/mojo/examples/compositor_app/gles2_client_impl.h
index 3c91cefc6e4ecb91ff65fa303f3fc415a0e7ec75..fc1be85644e9066694406def0f147e9c266973a8 100644
--- a/mojo/examples/compositor_app/gles2_client_impl.h
+++ b/mojo/examples/compositor_app/gles2_client_impl.h
@@ -10,7 +10,6 @@
#include "mojo/public/bindings/lib/remote_ptr.h"
#include "mojo/public/gles2/gles2.h"
#include "mojom/native_viewport.h"
-#include "ui/gfx/size.h"
namespace gpu {
class ContextSupport;
@@ -26,22 +25,19 @@ class GLES2ClientImpl {
public:
GLES2ClientImpl(
ScopedMessagePipeHandle pipe,
- const base::Callback<void(gfx::Size)>& context_created_callback);
+ const base::Callback<void()>& context_created_callback);
virtual ~GLES2ClientImpl();
gpu::gles2::GLES2Interface* Interface() const;
gpu::ContextSupport* Support() const;
private:
- void DidCreateContext(uint32_t width, uint32_t height);
- static void DidCreateContextThunk(
- void* closure,
- uint32_t width,
- uint32_t height);
+ void DidCreateContext();
+ static void DidCreateContextThunk(void* closure);
void ContextLost();
static void ContextLostThunk(void* closure);
- base::Callback<void(gfx::Size viewport_size)> context_created_callback_;
+ base::Callback<void()> context_created_callback_;
MojoGLES2Context context_;
« no previous file with comments | « mojo/examples/compositor_app/compositor_host.cc ('k') | mojo/examples/compositor_app/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698