Index: ppapi/c/ppb_graphics_2d.h |
diff --git a/ppapi/c/ppb_graphics_2d.h b/ppapi/c/ppb_graphics_2d.h |
index 251f34e33c2eb3546e523bf28f17ab28b1272aad..7387bae1349b8552c9b197fe0367d67e1f070e98 100644 |
--- a/ppapi/c/ppb_graphics_2d.h |
+++ b/ppapi/c/ppb_graphics_2d.h |
@@ -3,7 +3,7 @@ |
* found in the LICENSE file. |
*/ |
-/* From ppb_graphics_2d.idl modified Fri Apr 26 08:49:08 2013. */ |
+/* From ppb_graphics_2d.idl modified Fri Apr 15 13:30:07 2016. */ |
#ifndef PPAPI_C_PPB_GRAPHICS_2D_H_ |
#define PPAPI_C_PPB_GRAPHICS_2D_H_ |
@@ -276,6 +276,23 @@ struct PPB_Graphics2D_1_1 { |
* is not a valid <code>Graphics2D</code> context, this will return 0.0. |
*/ |
float (*GetScale)(PP_Resource resource); |
+ /** |
+ * SetLayerTransform() sets a transformation factor that will be applied for |
+ * the current graphics context displayed on the output device. If both |
+ * SetScale and SetLayerTransform will be used, they are going to get combined |
+ * for the final result. |
+ * This function has no effect until you call Flush(). |
+ * @param[in] scale The scale to be applied. |
+ * @param[in] origin The origin of the scale. |
+ * @param[in] translate The translation to be applied. |
+ * |
+ * @return Returns <code>true</code> on success or <code>false</code> |
+ * if the resource is invalid or the scale factor is 0 or less. |
+ */ |
+ PP_Bool (*SetLayerTransform)(PP_Resource resource, |
+ float scale, |
+ const struct PP_Point* origin, |
+ const struct PP_Point* translate); |
}; |
typedef struct PPB_Graphics2D_1_1 PPB_Graphics2D; |
@@ -298,6 +315,10 @@ struct PPB_Graphics2D_1_0 { |
void (*ReplaceContents)(PP_Resource graphics_2d, PP_Resource image_data); |
int32_t (*Flush)(PP_Resource graphics_2d, |
struct PP_CompletionCallback callback); |
+ PP_Bool (*SetLayerTransform)(PP_Resource resource, |
+ float scale, |
+ const struct PP_Point* origin, |
+ const struct PP_Point* translate); |
}; |
/** |
* @} |