summaryrefslogtreecommitdiffstats
path: root/ppapi/api
diff options
context:
space:
mode:
authorraymes@google.com <raymes@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-18 00:30:40 +0000
committerraymes@google.com <raymes@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-18 00:30:40 +0000
commite00cae6ea8f2ce0dbfebbb43f6b010fd91ab6761 (patch)
treed99d9248ee5fafe29b866d7847b40e62db21526b /ppapi/api
parenta16c121ff846f791458441d55f21e7abcdd39f8f (diff)
downloadchromium_src-e00cae6ea8f2ce0dbfebbb43f6b010fd91ab6761.zip
chromium_src-e00cae6ea8f2ce0dbfebbb43f6b010fd91ab6761.tar.gz
chromium_src-e00cae6ea8f2ce0dbfebbb43f6b010fd91ab6761.tar.bz2
Add SetOffset to PPB_Graphics2D_Dev
Add a SetOffset function to PPB_Graphics2D_Dev which allows the graphics context to be offset into the plugin element. This allows having a graphics context which is smaller than the plugin element and painting into only a portion of the plugin elements. This makes it possible to do viewporting for very large plugins. R=piman@chromium.org, tsepez@chromium.org, yzshen@chromium.org Review URL: https://codereview.chromium.org/25661002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235581 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r--ppapi/api/dev/ppb_graphics_2d_dev.idl16
1 files changed, 15 insertions, 1 deletions
diff --git a/ppapi/api/dev/ppb_graphics_2d_dev.idl b/ppapi/api/dev/ppb_graphics_2d_dev.idl
index 33b5f59..2924760 100644
--- a/ppapi/api/dev/ppb_graphics_2d_dev.idl
+++ b/ppapi/api/dev/ppb_graphics_2d_dev.idl
@@ -8,7 +8,8 @@
[generate_thunk]
label Chrome {
- M22 = 0.1
+ M22 = 0.1,
+ M32 = 0.2
};
/* PPB_Graphics2D_Dev interface */
@@ -45,5 +46,18 @@ interface PPB_Graphics2D_Dev {
*/
float_t GetScale(
[in] PP_Resource resource);
+
+ /***
+ * Sets the offset into the plugin element at which the graphics context is
+ * painted. This allows a portion of the plugin element to be painted to.
+ * The new offset will only be applied after Flush() has been called.
+ *
+ * @param[in] resource A <code>Graphics2D</code> context resource.
+ * @param[in] offset The offset at which the context should be painted.
+ */
+ [version=0.2]
+ void SetOffset(
+ [in] PP_Resource resource,
+ [in] PP_Point offset);
};