| Index: ppapi/cpp/graphics_2d.cc
|
| diff --git a/ppapi/cpp/graphics_2d.cc b/ppapi/cpp/graphics_2d.cc
|
| index 3a766c83546ef224f9a437bcf156f497d3aba534..49491755a3e7959e0eb28daf7fc73ab0fef30111 100644
|
| --- a/ppapi/cpp/graphics_2d.cc
|
| +++ b/ppapi/cpp/graphics_2d.cc
|
| @@ -152,4 +152,14 @@ float Graphics2D::GetScale() {
|
| return get_interface<PPB_Graphics2D_1_1>()->GetScale(pp_resource());
|
| }
|
|
|
| +bool Graphics2D::SetLayerTransform(float scale,
|
| + const Point& origin,
|
| + const Point& translate) {
|
| + if (!has_interface<PPB_Graphics2D_1_2>())
|
| + return false;
|
| + return PP_ToBool(get_interface<PPB_Graphics2D_1_2>()->SetLayerTransform(
|
| + pp_resource(), scale, &origin.pp_point(), &translate.pp_point()));
|
| +}
|
| +
|
| +
|
| } // namespace pp
|
|
|