Chromium Code Reviews| Index: ppapi/proxy/graphics_2d_resource.cc |
| diff --git a/ppapi/proxy/graphics_2d_resource.cc b/ppapi/proxy/graphics_2d_resource.cc |
| index 3b91a6a493b99c6f64422b43b235272b66f301f6..d7b2cbcb238ded01cade87873bf6fbdc7ead74d8 100644 |
| --- a/ppapi/proxy/graphics_2d_resource.cc |
| +++ b/ppapi/proxy/graphics_2d_resource.cc |
| @@ -113,6 +113,17 @@ float Graphics2DResource::GetScale() { |
| return scale_; |
| } |
| +PP_Bool Graphics2DResource::SetLayerTransform(float scale, |
| + const PP_Point* origin, |
|
wjmaclean
2016/04/13 14:47:19
Indenting is wrong here.
alessandroa
2016/04/21 15:39:21
Acknowledged.
|
| + const PP_Point* transform) { |
| + if (scale <= 0.0f) |
| + return PP_FALSE; |
|
wjmaclean
2016/04/13 14:47:19
nit: Add blank line after this line.
alessandroa
2016/04/21 15:39:21
Done.
|
| + Post(RENDERER, PpapiHostMsg_Graphics2D_SetLayerTransform(scale, |
| + *origin, |
| + *transform)); |
| + return PP_TRUE; |
| +} |
| + |
| int32_t Graphics2DResource::Flush(scoped_refptr<TrackedCallback> callback) { |
| // If host is not even created, return failure immediately. This can happen |
| // when failed to initialize (in constructor). |