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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/ClipList.cpp

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/modules/canvas2d/ClipList.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/ClipList.cpp b/third_party/WebKit/Source/modules/canvas2d/ClipList.cpp
index 49f2683990d124f56446c1b434d9a9fbb3db2111..0d9bfdffa16734c7c5bdcce3b177d731c5ec1c8a 100644
--- a/third_party/WebKit/Source/modules/canvas2d/ClipList.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/ClipList.cpp
@@ -5,6 +5,7 @@
#include "modules/canvas2d/ClipList.h"
#include "platform/transforms/AffineTransform.h"
+#include "skia/ext/cdl_canvas.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/pathops/SkPathOps.h"
@@ -27,7 +28,7 @@ void ClipList::clipPath(const SkPath& path,
m_clipList.append(newClip);
}
-void ClipList::playback(SkCanvas* canvas) const {
+void ClipList::playback(CdlCanvas* canvas) const {
for (const ClipOp* it = m_clipList.begin(); it < m_clipList.end(); it++) {
canvas->clipPath(it->m_path, SkRegion::kIntersect_Op,
it->m_antiAliasingMode == AntiAliased);

Powered by Google App Engine
This is Rietveld 408576698