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

Unified Diff: Source/core/html/canvas/ClipList.h

Issue 895153002: Make CanvasRenderingContext2D use SkCanvas directly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix issue with the copy composite operator Created 5 years, 10 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 | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/ClipList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/ClipList.h
diff --git a/Source/core/html/canvas/ClipList.h b/Source/core/html/canvas/ClipList.h
index ef010c0fd3ef6040311cf13018bb392188fa8a89..b50c208349f93a7dc2dd68cc751cda641f6ac6a7 100644
--- a/Source/core/html/canvas/ClipList.h
+++ b/Source/core/html/canvas/ClipList.h
@@ -6,12 +6,13 @@
#define ClipList_h
#include "platform/graphics/GraphicsTypes.h"
-#include "platform/graphics/Path.h"
#include "wtf/Vector.h"
+class SkCanvas;
+class SkPath;
+
namespace blink {
-class GraphicsContext;
class AffineTransform;
class ClipList {
@@ -20,15 +21,14 @@ public:
ClipList(const ClipList&);
~ClipList() { }
- void clipPath(const Path&, WindRule, AntiAliasingMode, const AffineTransform&);
- void playback(GraphicsContext*) const;
+ void clipPath(const SkPath&, AntiAliasingMode, const SkMatrix&);
+ void playback(SkCanvas*) const;
private:
struct ClipOp {
- Path m_path;
+ SkPath m_path;
AntiAliasingMode m_antiAliasingMode;
- WindRule m_windRule;
ClipOp();
ClipOp(const ClipOp&);
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/ClipList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698