Added SetLayerTransform to PPAPI.
SetLayerTransform() sets a transformation factor that will be applied for the current
layer displayed on the output device.
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 true on success or false if the resource is invalid or the scale factor is 0 or less.
BUG=605379
NOPRESUBMIT=true
Reason:
** Presubmit ERRORS **
TODOs found in stable public PPAPI files:
ppapi/cpp/graphics_2d.h
Review URL: https://codereview.chromium.org/1881603002
Cr-Commit-Position: refs/heads/master@{#388851}
diff --git a/ppapi/proxy/graphics_2d_resource.h b/ppapi/proxy/graphics_2d_resource.h
index 7c8fb69..3fa6b76 100644
--- a/ppapi/proxy/graphics_2d_resource.h
+++ b/ppapi/proxy/graphics_2d_resource.h
@@ -42,6 +42,9 @@
void ReplaceContents(PP_Resource image_data) override;
PP_Bool SetScale(float scale) override;
float GetScale() override;
+ PP_Bool SetLayerTransform(float scale,
+ const PP_Point* origin,
+ const PP_Point* translate) override;
int32_t Flush(scoped_refptr<TrackedCallback> callback) override;
bool ReadImageData(PP_Resource image, const PP_Point* top_left) override;