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

Unified Diff: ppapi/cpp/graphics_2d.cc

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/cpp/graphics_2d.cc
diff --git a/ppapi/cpp/graphics_2d.cc b/ppapi/cpp/graphics_2d.cc
index 3a766c83546ef224f9a437bcf156f497d3aba534..4abcb5c8d85669edbafcbf2a49bdc773064f1dec 100644
--- a/ppapi/cpp/graphics_2d.cc
+++ b/ppapi/cpp/graphics_2d.cc
@@ -152,4 +152,17 @@ float Graphics2D::GetScale() {
return get_interface<PPB_Graphics2D_1_1>()->GetScale(pp_resource());
}
+bool Graphics2D::SetLayerTransform(float scale,
+ const Point& origin,
+ const Point& transform) {
+ if (!has_interface<PPB_Graphics2D_1_1>())
+ return false;
+ return PP_ToBool(get_interface<PPB_Graphics2D_1_1>()->SetLayerTransform(
+ pp_resource(),
wjmaclean 2016/04/13 14:47:19 Indenting is wrong here.
alessandroa 2016/04/21 15:39:21 Acknowledged.
+ scale,
+ &origin.pp_point(),
+ &transform.pp_point()));
+}
+
+
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698