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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
diff --git a/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c b/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
index f8ae75c97cfbaffabb0ef90374e55da15b34c967..2dd989f50714a9bb3b378ebf498ca41a931b47b2 100644
--- a/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
+++ b/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
@@ -869,6 +869,11 @@ static float Pnacl_M27_PPB_Graphics2D_GetScale(PP_Resource resource) {
return iface->GetScale(resource);
}
+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.
+ const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1.real_iface;
+ return iface->SetLayerTransform(resource, Scale, Origin, Transform);
+}
+
/* End wrapper methods for PPB_Graphics2D_1_1 */
/* Begin wrapper methods for PPB_Graphics3D_1_0 */
@@ -4792,7 +4797,8 @@ static const struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = {
.ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data))&Pnacl_M27_PPB_Graphics2D_ReplaceContents,
.Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M27_PPB_Graphics2D_Flush,
.SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_Graphics2D_SetScale,
- .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetScale
+ .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetScale,
+ .SetLayerTransform = (PP_Bool (*)(PP_Resource resource, float Scale, const struct PP_Point* Origin, const struct PP_Point* Transform))&Pnacl_M27_PPB_Graphics2D_SetLayerTransform
wjmaclean 2016/04/13 14:47:19 Don't capitalize variable names.
alessandroa 2016/04/21 15:39:21 Acknowledged.
};
static const struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = {

Powered by Google App Engine
This is Rietveld 408576698