OLD | NEW |
1 /* Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2016 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 | 5 |
6 /* NOTE: this is auto-generated from IDL */ | 6 /* NOTE: this is auto-generated from IDL */ |
7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" | 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" |
8 | 8 |
9 #include "ppapi/c/ppb.h" | 9 #include "ppapi/c/ppb.h" |
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 10 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 static void Pnacl_M14_PPB_Graphics2D_ReplaceContents(PP_Resource graphics_2d, PP
_Resource image_data) { | 813 static void Pnacl_M14_PPB_Graphics2D_ReplaceContents(PP_Resource graphics_2d, PP
_Resource image_data) { |
814 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; | 814 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; |
815 iface->ReplaceContents(graphics_2d, image_data); | 815 iface->ReplaceContents(graphics_2d, image_data); |
816 } | 816 } |
817 | 817 |
818 static int32_t Pnacl_M14_PPB_Graphics2D_Flush(PP_Resource graphics_2d, struct PP
_CompletionCallback* callback) { | 818 static int32_t Pnacl_M14_PPB_Graphics2D_Flush(PP_Resource graphics_2d, struct PP
_CompletionCallback* callback) { |
819 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; | 819 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; |
820 return iface->Flush(graphics_2d, *callback); | 820 return iface->Flush(graphics_2d, *callback); |
821 } | 821 } |
822 | 822 |
| 823 static PP_Bool Pnacl_M14_PPB_Graphics2D_SetLayerTransform(PP_Resource resource,
float scale, const struct PP_Point* origin, const struct PP_Point* translate) { |
| 824 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0.
real_iface; |
| 825 return iface->SetLayerTransform(resource, scale, origin, translate); |
| 826 } |
| 827 |
823 /* End wrapper methods for PPB_Graphics2D_1_0 */ | 828 /* End wrapper methods for PPB_Graphics2D_1_0 */ |
824 | 829 |
825 /* Begin wrapper methods for PPB_Graphics2D_1_1 */ | 830 /* Begin wrapper methods for PPB_Graphics2D_1_1 */ |
826 | 831 |
827 static PP_Resource Pnacl_M27_PPB_Graphics2D_Create(PP_Instance instance, const s
truct PP_Size* size, PP_Bool is_always_opaque) { | 832 static PP_Resource Pnacl_M27_PPB_Graphics2D_Create(PP_Instance instance, const s
truct PP_Size* size, PP_Bool is_always_opaque) { |
828 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; | 833 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; |
829 return iface->Create(instance, size, is_always_opaque); | 834 return iface->Create(instance, size, is_always_opaque); |
830 } | 835 } |
831 | 836 |
832 static PP_Bool Pnacl_M27_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) { | 837 static PP_Bool Pnacl_M27_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) { |
(...skipping 29 matching lines...) Expand all Loading... |
862 static PP_Bool Pnacl_M27_PPB_Graphics2D_SetScale(PP_Resource resource, float sca
le) { | 867 static PP_Bool Pnacl_M27_PPB_Graphics2D_SetScale(PP_Resource resource, float sca
le) { |
863 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; | 868 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; |
864 return iface->SetScale(resource, scale); | 869 return iface->SetScale(resource, scale); |
865 } | 870 } |
866 | 871 |
867 static float Pnacl_M27_PPB_Graphics2D_GetScale(PP_Resource resource) { | 872 static float Pnacl_M27_PPB_Graphics2D_GetScale(PP_Resource resource) { |
868 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; | 873 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; |
869 return iface->GetScale(resource); | 874 return iface->GetScale(resource); |
870 } | 875 } |
871 | 876 |
| 877 static PP_Bool Pnacl_M27_PPB_Graphics2D_SetLayerTransform(PP_Resource resource,
float scale, const struct PP_Point* origin, const struct PP_Point* translate) { |
| 878 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.
real_iface; |
| 879 return iface->SetLayerTransform(resource, scale, origin, translate); |
| 880 } |
| 881 |
872 /* End wrapper methods for PPB_Graphics2D_1_1 */ | 882 /* End wrapper methods for PPB_Graphics2D_1_1 */ |
873 | 883 |
874 /* Begin wrapper methods for PPB_Graphics3D_1_0 */ | 884 /* Begin wrapper methods for PPB_Graphics3D_1_0 */ |
875 | 885 |
876 static int32_t Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue(PP_Resource instance,
int32_t attribute, int32_t* value) { | 886 static int32_t Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue(PP_Resource instance,
int32_t attribute, int32_t* value) { |
877 const struct PPB_Graphics3D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics3D_1_0.
real_iface; | 887 const struct PPB_Graphics3D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics3D_1_0.
real_iface; |
878 return iface->GetAttribMaxValue(instance, attribute, value); | 888 return iface->GetAttribMaxValue(instance, attribute, value); |
879 } | 889 } |
880 | 890 |
881 static PP_Resource Pnacl_M15_PPB_Graphics3D_Create(PP_Instance instance, PP_Reso
urce share_context, const int32_t attrib_list[]) { | 891 static PP_Resource Pnacl_M15_PPB_Graphics3D_Create(PP_Instance instance, PP_Reso
urce share_context, const int32_t attrib_list[]) { |
(...skipping 3891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4773 | 4783 |
4774 /* Not generating wrapper interface for PPB_Gamepad_1_0 */ | 4784 /* Not generating wrapper interface for PPB_Gamepad_1_0 */ |
4775 | 4785 |
4776 static const struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = { | 4786 static const struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = { |
4777 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size,
PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create, | 4787 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size,
PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create, |
4778 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D
_IsGraphics2D, | 4788 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D
_IsGraphics2D, |
4779 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B
ool* is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Describe, | 4789 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B
ool* is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Describe, |
4780 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data,
const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M14_PPB
_Graphics2D_PaintImageData, | 4790 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data,
const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M14_PPB
_Graphics2D_PaintImageData, |
4781 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect
, const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll, | 4791 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect
, const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll, |
4782 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data
))&Pnacl_M14_PPB_Graphics2D_ReplaceContents, | 4792 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data
))&Pnacl_M14_PPB_Graphics2D_ReplaceContents, |
4783 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback
callback))&Pnacl_M14_PPB_Graphics2D_Flush | 4793 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback
callback))&Pnacl_M14_PPB_Graphics2D_Flush, |
| 4794 .SetLayerTransform = (PP_Bool (*)(PP_Resource resource, float scale, const s
truct PP_Point* origin, const struct PP_Point* translate))&Pnacl_M14_PPB_Graphic
s2D_SetLayerTransform |
4784 }; | 4795 }; |
4785 | 4796 |
4786 static const struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = { | 4797 static const struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = { |
4787 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size,
PP_Bool is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Create, | 4798 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size,
PP_Bool is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Create, |
4788 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D
_IsGraphics2D, | 4799 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D
_IsGraphics2D, |
4789 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B
ool* is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Describe, | 4800 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B
ool* is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Describe, |
4790 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data,
const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M27_PPB
_Graphics2D_PaintImageData, | 4801 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data,
const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M27_PPB
_Graphics2D_PaintImageData, |
4791 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect
, const struct PP_Point* amount))&Pnacl_M27_PPB_Graphics2D_Scroll, | 4802 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect
, const struct PP_Point* amount))&Pnacl_M27_PPB_Graphics2D_Scroll, |
4792 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data
))&Pnacl_M27_PPB_Graphics2D_ReplaceContents, | 4803 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data
))&Pnacl_M27_PPB_Graphics2D_ReplaceContents, |
4793 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback
callback))&Pnacl_M27_PPB_Graphics2D_Flush, | 4804 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback
callback))&Pnacl_M27_PPB_Graphics2D_Flush, |
4794 .SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_G
raphics2D_SetScale, | 4805 .SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_G
raphics2D_SetScale, |
4795 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc
ale | 4806 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc
ale, |
| 4807 .SetLayerTransform = (PP_Bool (*)(PP_Resource resource, float scale, const s
truct PP_Point* origin, const struct PP_Point* translate))&Pnacl_M27_PPB_Graphic
s2D_SetLayerTransform |
4796 }; | 4808 }; |
4797 | 4809 |
4798 static const struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = { | 4810 static const struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = { |
4799 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i
nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue, | 4811 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i
nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue, |
4800 .Create = (PP_Resource (*)(PP_Instance instance, PP_Resource share_context,
const int32_t attrib_list[]))&Pnacl_M15_PPB_Graphics3D_Create, | 4812 .Create = (PP_Resource (*)(PP_Instance instance, PP_Resource share_context,
const int32_t attrib_list[]))&Pnacl_M15_PPB_Graphics3D_Create, |
4801 .IsGraphics3D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M15_PPB_Graphics3D
_IsGraphics3D, | 4813 .IsGraphics3D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M15_PPB_Graphics3D
_IsGraphics3D, |
4802 .GetAttribs = (int32_t (*)(PP_Resource context, int32_t attrib_list[]))&Pnac
l_M15_PPB_Graphics3D_GetAttribs, | 4814 .GetAttribs = (int32_t (*)(PP_Resource context, int32_t attrib_list[]))&Pnac
l_M15_PPB_Graphics3D_GetAttribs, |
4803 .SetAttribs = (int32_t (*)(PP_Resource context, const int32_t attrib_list[])
)&Pnacl_M15_PPB_Graphics3D_SetAttribs, | 4815 .SetAttribs = (int32_t (*)(PP_Resource context, const int32_t attrib_list[])
)&Pnacl_M15_PPB_Graphics3D_SetAttribs, |
4804 .GetError = (int32_t (*)(PP_Resource context))&Pnacl_M15_PPB_Graphics3D_GetE
rror, | 4816 .GetError = (int32_t (*)(PP_Resource context))&Pnacl_M15_PPB_Graphics3D_GetE
rror, |
4805 .ResizeBuffers = (int32_t (*)(PP_Resource context, int32_t width, int32_t he
ight))&Pnacl_M15_PPB_Graphics3D_ResizeBuffers, | 4817 .ResizeBuffers = (int32_t (*)(PP_Resource context, int32_t width, int32_t he
ight))&Pnacl_M15_PPB_Graphics3D_ResizeBuffers, |
(...skipping 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6689 | 6701 |
6690 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ | 6702 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ |
6691 if (wrapper->real_iface == NULL) { | 6703 if (wrapper->real_iface == NULL) { |
6692 const void *iface = (*__real_PPPGetInterface)(name); | 6704 const void *iface = (*__real_PPPGetInterface)(name); |
6693 if (NULL == iface) return NULL; | 6705 if (NULL == iface) return NULL; |
6694 wrapper->real_iface = iface; | 6706 wrapper->real_iface = iface; |
6695 } | 6707 } |
6696 | 6708 |
6697 return wrapper->wrapped_iface; | 6709 return wrapper->wrapped_iface; |
6698 } | 6710 } |
OLD | NEW |