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

Unified Diff: ppapi/api/ppb_graphics_2d.idl

Issue 1881603002: Added SetLayerTransform to PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added M52 to API idl 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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_graphics_2d.idl
diff --git a/ppapi/api/ppb_graphics_2d.idl b/ppapi/api/ppb_graphics_2d.idl
index 56450f0c29d51ece6b0fb920c95aa067bb2febd5..f6d802f212ee8989a1889ba50a1f64ba41bc311d 100644
--- a/ppapi/api/ppb_graphics_2d.idl
+++ b/ppapi/api/ppb_graphics_2d.idl
@@ -12,7 +12,8 @@
label Chrome {
M14 = 1.0,
- M27 = 1.1
+ M27 = 1.1,
+ M52 = 1.2
};
/**
@@ -70,7 +71,8 @@ interface PPB_Graphics2D {
* will be painted.
*
* @return Returns <code>PP_TRUE</code> on success or <code>PP_FALSE</code> if
- * the resource is invalid. The output parameters will be set to 0 on a
+ * theomments + 1 draft Download
+ * M resource is invalid. The output parameters will be set to 0 on a
piman 2016/04/15 20:12:28 bad copy & paste?
alessandroa 2016/04/21 15:39:22 Done.
* <code>PP_FALSE</code>.
*/
[always_set_output_parameters]
@@ -125,6 +127,8 @@ interface PPB_Graphics2D {
[in] PP_Rect src_rect);
/**
+ mments + 1 draft Download
+ M
piman 2016/04/15 20:12:28 same?
alessandroa 2016/04/21 15:39:22 Done.
* Scroll() enqueues a scroll of the context's backing store. This
* function has no effect until you call Flush(). The data within the
* provided clipping rectangle will be shifted by (dx, dy) pixels.
@@ -282,5 +286,24 @@ interface PPB_Graphics2D {
float_t GetScale(
[in] 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>PP_TRUE</code> on success or <code>PP_FALSE</code>
+ * if the resource is invalid or the scale factor is 0 or less.
+ */
+ [version=1.2]
+ PP_Bool SetLayerTransform(
+ [in] PP_Resource resource,
+ [in] float_t scale,
+ [in] PP_Point origin,
+ [in] PP_Point translate);
};
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698