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

Side by Side Diff: mojo/public/gles2/gles2_types.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/gles2/gles2_client_impl.cc ('k') | mojo/services/gles2/gles2.mojom » ('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_PUBLIC_GLES2_GLES2_TYPES_H_ 5 #ifndef MOJO_PUBLIC_GLES2_GLES2_TYPES_H_
6 #define MOJO_PUBLIC_GLES2_GLES2_TYPES_H_ 6 #define MOJO_PUBLIC_GLES2_GLES2_TYPES_H_
7 7
8 // Note: This header should be compilable as C. 8 // Note: This header should be compilable as C.
9 9
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include "mojo/public/gles2/gles2_export.h" 12 #include "mojo/public/gles2/gles2_export.h"
13 13
14 #ifdef __cplusplus 14 #ifdef __cplusplus
15 extern "C" { 15 extern "C" {
16 #endif 16 #endif
17 17
18 typedef struct MojoGLES2ContextPrivate *MojoGLES2Context; 18 typedef struct MojoGLES2ContextPrivate *MojoGLES2Context;
19 // TODO(piman): 19 // TODO(piman): create context synchronously
20 // - create context synchronously 20 typedef void (*MojoGLES2ContextCreated)(void* closure);
21 // - pass width/height through native viewport, not here.
22 typedef void (*MojoGLES2ContextCreated)(
23 void* closure, uint32_t width, uint32_t height);
24 typedef void (*MojoGLES2ContextLost)(void* closure); 21 typedef void (*MojoGLES2ContextLost)(void* closure);
25 typedef void (*MojoGLES2DrawAnimationFrame)(void* closure); 22 typedef void (*MojoGLES2DrawAnimationFrame)(void* closure);
26 23
27 #ifdef __cplusplus 24 #ifdef __cplusplus
28 } // extern "C" 25 } // extern "C"
29 #endif 26 #endif
30 27
31 #endif // MOJO_PUBLIC_GLES2_GLES2_TYPES_H_ 28 #endif // MOJO_PUBLIC_GLES2_GLES2_TYPES_H_
OLDNEW
« no previous file with comments | « mojo/gles2/gles2_client_impl.cc ('k') | mojo/services/gles2/gles2.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698