| Index: sky/engine/core/painting/DrawLooperLayerInfo.h
|
| diff --git a/sky/engine/core/painting/DrawLooperLayerInfo.h b/sky/engine/core/painting/DrawLooperLayerInfo.h
|
| index 7f8378487cfe9aaed67fd1d1e8c00e09d642b021..4879357761e526e46bbea33263700dc74239209a 100644
|
| --- a/sky/engine/core/painting/DrawLooperLayerInfo.h
|
| +++ b/sky/engine/core/painting/DrawLooperLayerInfo.h
|
| @@ -6,9 +6,10 @@
|
| #define SKY_ENGINE_CORE_PAINTING_DRAWLOOPERLAYERINFO_H_
|
|
|
| #include "dart/runtime/include/dart_api.h"
|
| -#include "sky/engine/core/painting/Point.h"
|
| +#include "sky/engine/core/painting/Offset.h"
|
| #include "sky/engine/core/painting/TransferMode.h"
|
| #include "sky/engine/tonic/dart_wrappable.h"
|
| +#include "third_party/skia/include/core/SkPoint.h"
|
| #include "third_party/skia/include/effects/SkLayerDrawLooper.h"
|
|
|
| namespace blink {
|
| @@ -25,7 +26,7 @@ class DrawLooperLayerInfo : public RefCounted<DrawLooperLayerInfo>,
|
|
|
| void setPaintBits(unsigned bits) { layer_info_.fPaintBits = bits; }
|
| void setColorMode(SkXfermode::Mode mode) { layer_info_.fColorMode = mode; }
|
| - void setOffset(Point offset) { layer_info_.fOffset = offset.sk_point; }
|
| + void setOffset(Offset offset) { layer_info_.fOffset = SkPoint::Make(offset.sk_size.width(), offset.sk_size.height()); }
|
| void setPostTranslate(bool val) { layer_info_.fPostTranslate = val; }
|
|
|
| const SkLayerDrawLooper::LayerInfo& layer_info() const { return layer_info_; }
|
|
|