Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1082)

Unified Diff: third_party/WebKit/public/platform/WebImageLayer.h

Issue 2835373003: Plumb PaintImage to the PictureImageLayer. (Closed)
Patch Set: update Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+#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;
};
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698