Chromium Code Reviews| Index: content/renderer/pepper/pepper_graphics_2d_host.h |
| diff --git a/content/renderer/pepper/pepper_graphics_2d_host.h b/content/renderer/pepper/pepper_graphics_2d_host.h |
| index 03b97e7eb8f4c9676043c57cbc70f32319a3db13..5d579ac90a21545d0e6c4859198f455a2ce74991 100644 |
| --- a/content/renderer/pepper/pepper_graphics_2d_host.h |
| +++ b/content/renderer/pepper/pepper_graphics_2d_host.h |
| @@ -19,6 +19,7 @@ |
| #include "third_party/WebKit/public/platform/WebCanvas.h" |
| #include "ui/gfx/geometry/point.h" |
| #include "ui/gfx/geometry/size.h" |
| +#include "ui/gfx/transform.h" |
| namespace cc { |
| class SharedBitmap; |
| @@ -86,6 +87,9 @@ class CONTENT_EXPORT PepperGraphics2DHost |
| void SetScale(float scale); |
| float GetScale() const; |
| + void SetLayerTransform(float Scale, |
| + const PP_Point& Origin, |
|
wjmaclean
2016/04/13 14:47:18
nit: indenting is wrong here.
alessandroa
2016/04/21 15:39:21
Done.
|
| + const PP_Point& Transform); |
| bool IsAlwaysOpaque() const; |
| PPB_ImageData_Impl* ImageData(); |
| gfx::Size Size() const; |
| @@ -116,6 +120,10 @@ class CONTENT_EXPORT PepperGraphics2DHost |
| int32_t OnHostMsgFlush(ppapi::host::HostMessageContext* context); |
| int32_t OnHostMsgSetScale(ppapi::host::HostMessageContext* context, |
| float scale); |
| + int32_t OnHostMsgSetLayerTransform(ppapi::host::HostMessageContext* context, |
| + float Scale, |
| + const PP_Point& Origin, |
| + const PP_Point& Transform); |
| int32_t OnHostMsgReadImageData(ppapi::host::HostMessageContext* context, |
| PP_Resource image, |
| const PP_Point& top_left); |
| @@ -129,6 +137,7 @@ class CONTENT_EXPORT PepperGraphics2DHost |
| // rect argument will be filled by each function with the area affected by |
| // the update that requires invalidation. If there were no pixels changed, |
| // this rect can be untouched. |
| + void ExecuteTransform(gfx::Transform transform); |
| void ExecutePaintImageData(PPB_ImageData_Impl* image, |
| int x, |
| int y, |
| @@ -197,6 +206,7 @@ class CONTENT_EXPORT PepperGraphics2DHost |
| // DIP |
| float scale_; |
| + gfx::Transform transform_; |
|
wjmaclean
2016/04/13 14:47:18
Add a comment explaining what this will be used fo
alessandroa
2016/04/21 15:39:21
Done.
|
| ppapi::host::ReplyMessageContext flush_reply_context_; |
| bool is_running_in_process_; |