| Index: ppapi/thunk/ppb_graphics_2d_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_graphics_2d_thunk.cc b/ppapi/thunk/ppb_graphics_2d_thunk.cc
|
| index 527b0aa80cc700e35195aa233305bbb3883f09e7..1782ce27d5d82fe72933f2a97c7e69ab95767553 100644
|
| --- a/ppapi/thunk/ppb_graphics_2d_thunk.cc
|
| +++ b/ppapi/thunk/ppb_graphics_2d_thunk.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// From ppb_graphics_2d.idl modified Wed Jan 27 17:10:16 2016.
|
| +// From ppb_graphics_2d.idl modified Fri Apr 15 13:30:07 2016.
|
|
|
| #include <stdint.h>
|
| #include <string.h>
|
| @@ -102,13 +102,25 @@ float GetScale(PP_Resource resource) {
|
| return enter.object()->GetScale();
|
| }
|
|
|
| +PP_Bool SetLayerTransform(PP_Resource resource,
|
| + float scale,
|
| + const struct PP_Point* origin,
|
| + const struct PP_Point* translate) {
|
| + VLOG(4) << "PPB_Graphics2D::SetLayerTransform()";
|
| + EnterResource<PPB_Graphics2D_API> enter(resource, true);
|
| + if (enter.failed())
|
| + return PP_FALSE;
|
| + return enter.object()->SetLayerTransform(scale, origin, translate);
|
| +}
|
| +
|
| const PPB_Graphics2D_1_0 g_ppb_graphics2d_thunk_1_0 = {
|
| &Create, &IsGraphics2D, &Describe, &PaintImageData,
|
| - &Scroll, &ReplaceContents, &Flush};
|
| + &Scroll, &ReplaceContents, &Flush, &SetLayerTransform};
|
|
|
| const PPB_Graphics2D_1_1 g_ppb_graphics2d_thunk_1_1 = {
|
| - &Create, &IsGraphics2D, &Describe, &PaintImageData, &Scroll,
|
| - &ReplaceContents, &Flush, &SetScale, &GetScale};
|
| + &Create, &IsGraphics2D, &Describe, &PaintImageData,
|
| + &Scroll, &ReplaceContents, &Flush, &SetScale,
|
| + &GetScale, &SetLayerTransform};
|
|
|
| } // namespace
|
|
|
|
|