OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Note: This header should be compilable as C. | 5 // Note: This header should be compilable as C. |
6 | 6 |
7 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_ | 7 #ifndef MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_ |
8 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_ | 8 #define MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
12 #include "third_party/mojo/src/mojo/public/c/gpu/MGL/mgl_types.h" | 12 #include "mojo/public/c/gpu/MGL/mgl_types.h" |
13 | 13 |
14 #ifdef __cplusplus | 14 #ifdef __cplusplus |
15 extern "C" { | 15 extern "C" { |
16 #endif | 16 #endif |
17 | 17 |
18 // Resizes the default framebuffer for the currently bound onscreen MGLContext. | 18 // Resizes the default framebuffer for the currently bound onscreen MGLContext. |
19 void MGLResizeSurface(uint32_t width, uint32_t height); | 19 void MGLResizeSurface(uint32_t width, uint32_t height); |
20 | 20 |
21 // Presents the default framebuffer for the currently bound onscreen MGLContext | 21 // Presents the default framebuffer for the currently bound onscreen MGLContext |
22 // to the windowing system or display. | 22 // to the windowing system or display. |
23 void MGLSwapBuffers(); | 23 void MGLSwapBuffers(); |
24 | 24 |
25 #ifdef __cplusplus | 25 #ifdef __cplusplus |
26 } // extern "C" | 26 } // extern "C" |
27 #endif | 27 #endif |
28 | 28 |
29 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_ | 29 #endif // MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_ |
OLD | NEW |