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

Side by Side Diff: mojo/gles2/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, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/examples/sample_app/sample_app.cc ('k') | mojo/gles2/gles2_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_GLES2_GLES2_CLIENT_IMPL_H_ 5 #ifndef MOJO_GLES2_GLES2_CLIENT_IMPL_H_
6 #define MOJO_GLES2_GLES2_CLIENT_IMPL_H_ 6 #define MOJO_GLES2_GLES2_CLIENT_IMPL_H_
7 7
8 #include "gpu/command_buffer/client/gles2_implementation.h" 8 #include "gpu/command_buffer/client/gles2_implementation.h"
9 #include "mojo/public/bindings/lib/remote_ptr.h" 9 #include "mojo/public/bindings/lib/remote_ptr.h"
10 #include "mojo/public/gles2/gles2.h" 10 #include "mojo/public/gles2/gles2.h"
(...skipping 12 matching lines...) Expand all
23 MojoGLES2ContextLost lost_callback, 23 MojoGLES2ContextLost lost_callback,
24 MojoGLES2DrawAnimationFrame animation_callback, 24 MojoGLES2DrawAnimationFrame animation_callback,
25 void* closure); 25 void* closure);
26 virtual ~GLES2ClientImpl(); 26 virtual ~GLES2ClientImpl();
27 gpu::gles2::GLES2Interface* interface() const { return implementation_; } 27 gpu::gles2::GLES2Interface* interface() const { return implementation_; }
28 gpu::ContextSupport* context_support() const { return implementation_; } 28 gpu::ContextSupport* context_support() const { return implementation_; }
29 void RequestAnimationFrames(); 29 void RequestAnimationFrames();
30 void CancelAnimationFrames(); 30 void CancelAnimationFrames();
31 31
32 private: 32 private:
33 virtual void DidCreateContext(uint64_t encoded, 33 virtual void DidCreateContext(uint64_t encoded) MOJO_OVERRIDE;
34 uint32_t width,
35 uint32_t height) MOJO_OVERRIDE;
36 virtual void ContextLost() MOJO_OVERRIDE; 34 virtual void ContextLost() MOJO_OVERRIDE;
37 virtual void DrawAnimationFrame() MOJO_OVERRIDE; 35 virtual void DrawAnimationFrame() MOJO_OVERRIDE;
38 36
39 37
40 RemotePtr<GLES2> service_; 38 RemotePtr<GLES2> service_;
41 gpu::gles2::GLES2Implementation* implementation_; 39 gpu::gles2::GLES2Implementation* implementation_;
42 MojoGLES2ContextCreated created_callback_; 40 MojoGLES2ContextCreated created_callback_;
43 MojoGLES2ContextLost lost_callback_; 41 MojoGLES2ContextLost lost_callback_;
44 MojoGLES2DrawAnimationFrame animation_callback_; 42 MojoGLES2DrawAnimationFrame animation_callback_;
45 void* closure_; 43 void* closure_;
46 44
47 MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl); 45 MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl);
48 }; 46 };
49 47
50 } // namespace gles2 48 } // namespace gles2
51 } // namespace mojo 49 } // namespace mojo
52 50
53 #endif // MOJO_GLES2_GLES2_CLIENT_IMPL_H_ 51 #endif // MOJO_GLES2_GLES2_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/examples/sample_app/sample_app.cc ('k') | mojo/gles2/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698