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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 1881603002: Added SetLayerTransform to PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 static PP_Bool Pnacl_M27_PPB_Graphics2D_SetScale(PP_Resource resource, float sca le) { 862 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; 863 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
864 return iface->SetScale(resource, scale); 864 return iface->SetScale(resource, scale);
865 } 865 }
866 866
867 static float Pnacl_M27_PPB_Graphics2D_GetScale(PP_Resource resource) { 867 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; 868 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
869 return iface->GetScale(resource); 869 return iface->GetScale(resource);
870 } 870 }
871 871
872 static PP_Bool Pnacl_M27_PPB_Graphics2D_SetLayerTransform(PP_Resource resource, float Scale, const struct PP_Point* Origin, const struct PP_Point* Transform) {
wjmaclean 2016/04/13 14:47:19 Don't capitalize variable names.
alessandroa 2016/04/21 15:39:21 Acknowledged.
873 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
874 return iface->SetLayerTransform(resource, Scale, Origin, Transform);
875 }
876
872 /* End wrapper methods for PPB_Graphics2D_1_1 */ 877 /* End wrapper methods for PPB_Graphics2D_1_1 */
873 878
874 /* Begin wrapper methods for PPB_Graphics3D_1_0 */ 879 /* Begin wrapper methods for PPB_Graphics3D_1_0 */
875 880
876 static int32_t Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue(PP_Resource instance, int32_t attribute, int32_t* value) { 881 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; 882 const struct PPB_Graphics3D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics3D_1_0. real_iface;
878 return iface->GetAttribMaxValue(instance, attribute, value); 883 return iface->GetAttribMaxValue(instance, attribute, value);
879 } 884 }
880 885
881 static PP_Resource Pnacl_M15_PPB_Graphics3D_Create(PP_Instance instance, PP_Reso urce share_context, const int32_t attrib_list[]) { 886 static PP_Resource Pnacl_M15_PPB_Graphics3D_Create(PP_Instance instance, PP_Reso urce share_context, const int32_t attrib_list[]) {
(...skipping 3903 matching lines...) Expand 10 before | Expand all | Expand 10 after
4785 4790
4786 static const struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = { 4791 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, 4792 .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, 4793 .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, 4794 .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, 4795 .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, 4796 .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, 4797 .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, 4798 .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, 4799 .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 4800 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc ale,
4801 .SetLayerTransform = (PP_Bool (*)(PP_Resource resource, float Scale, const s truct PP_Point* Origin, const struct PP_Point* Transform))&Pnacl_M27_PPB_Graphic s2D_SetLayerTransform
wjmaclean 2016/04/13 14:47:19 Don't capitalize variable names.
alessandroa 2016/04/21 15:39:21 Acknowledged.
4796 }; 4802 };
4797 4803
4798 static const struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = { 4804 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, 4805 .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, 4806 .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, 4807 .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, 4808 .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, 4809 .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, 4810 .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, 4811 .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
6689 6695
6690 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6696 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6691 if (wrapper->real_iface == NULL) { 6697 if (wrapper->real_iface == NULL) {
6692 const void *iface = (*__real_PPPGetInterface)(name); 6698 const void *iface = (*__real_PPPGetInterface)(name);
6693 if (NULL == iface) return NULL; 6699 if (NULL == iface) return NULL;
6694 wrapper->real_iface = iface; 6700 wrapper->real_iface = iface;
6695 } 6701 }
6696 6702
6697 return wrapper->wrapped_iface; 6703 return wrapper->wrapped_iface;
6698 } 6704 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698