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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.h

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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
Index: third_party/WebKit/Source/platform/graphics/Image.h
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
index dfbfe4ee08731923fe82023230cf74bfcdacf8f3..619b929bfd6ed5ad16564d11856ad918e2527314 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.h
+++ b/third_party/WebKit/Source/platform/graphics/Image.h
@@ -35,6 +35,7 @@
#include "platform/graphics/ImageAnimationPolicy.h"
#include "platform/graphics/ImageObserver.h"
#include "platform/graphics/ImageOrientation.h"
+#include "skia/ext/cdl_common.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Assertions.h"
#include "wtf/Noncopyable.h"
@@ -43,10 +44,8 @@
#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/text/WTFString.h"
-class SkCanvas;
class SkImage;
class SkMatrix;
-class SkPaint;
namespace blink {
@@ -168,14 +167,14 @@ class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> {
DoNotClampImageToSourceRect
};
- virtual void draw(SkCanvas*,
- const SkPaint&,
+ virtual void draw(CdlCanvas*,
+ const CdlPaint&,
const FloatRect& dstRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
ImageClampingMode) = 0;
- virtual bool applyShader(SkPaint&, const SkMatrix& localMatrix);
+ virtual bool applyShader(CdlPaint&, const SkMatrix& localMatrix);
// Compute the tile which contains a given point (assuming a repeating tile
// grid). The point and returned value are in destination grid space.
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsTypes.h ('k') | third_party/WebKit/Source/platform/graphics/Image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698