OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // display. | 61 // display. |
62 void (*MarkAsDirty)(PP_Resource compositor, PP_Resource layer); | 62 void (*MarkAsDirty)(PP_Resource compositor, PP_Resource layer); |
63 | 63 |
64 // Changes to z-index, rectangles will be submitted for display. Also for | 64 // Changes to z-index, rectangles will be submitted for display. Also for |
65 // each PPB_Surface3D and PPB_VideoLayer marked as dirty will have the | 65 // each PPB_Surface3D and PPB_VideoLayer marked as dirty will have the |
66 // updates made available for compositing. | 66 // updates made available for compositing. |
67 // | 67 // |
68 // Since this is an asynchronous operation, |callback| will be called when | 68 // Since this is an asynchronous operation, |callback| will be called when |
69 // this operation is done. | 69 // this operation is done. |
70 // | 70 // |
71 // Returns PP_TRUE if the operation was successful. PP_FALSE otherwise. | 71 // Returns an error code from pp_errors.h. |
72 PP_Bool (*SwapBuffers)(PP_Resource compositor, | 72 int32_t (*SwapBuffers)(PP_Resource compositor, |
73 struct PP_CompletionCallback callback); | 73 struct PP_CompletionCallback callback); |
74 }; | 74 }; |
75 | 75 |
76 #endif /* PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ */ | 76 #endif /* PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ */ |
OLD | NEW |