Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebImageLayer.h |
| diff --git a/third_party/WebKit/public/platform/WebImageLayer.h b/third_party/WebKit/public/platform/WebImageLayer.h |
| index 39ed82df5c8515bbd1dcd5f085204c31af4c7c9d..f34681c9d4b4b6753d112030962780786c09da82 100644 |
| --- a/third_party/WebKit/public/platform/WebImageLayer.h |
| +++ b/third_party/WebKit/public/platform/WebImageLayer.h |
| @@ -29,7 +29,12 @@ |
| #include "WebCommon.h" |
| #include "WebLayer.h" |
| -class SkImage; |
| +#if INSIDE_BLINK |
|
vmpstr
2017/04/25 22:05:46
Not really sure if there's a better magic here...
|
| +#include "platform/graphics/paint/PaintImage.h" |
| +#else |
| +#include "cc/paint/paint_image.h" |
| +using PaintImage = cc::PaintImage; |
| +#endif |
| namespace blink { |
| @@ -38,7 +43,7 @@ class WebImageLayer { |
| virtual ~WebImageLayer() {} |
| virtual WebLayer* Layer() = 0; |
| - virtual void SetImage(const SkImage*) = 0; |
| + virtual void SetImage(PaintImage) = 0; |
| virtual void SetNearestNeighbor(bool) = 0; |
| }; |