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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.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/platform/graphics/ImageBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
index 8a959919052273ddf1112460b0821cd8c9773761..a13aae35226b245001622f53bd1b653f20a05edc 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -53,7 +53,7 @@
#include "public/platform/Platform.h"
#include "public/platform/WebGraphicsContext3DProvider.h"
#include "skia/ext/texture_handle.h"
-#include "third_party/skia/include/core/SkPicture.h"
+#include "skia/ext/cdl_picture.h"
#include "third_party/skia/include/core/SkSwizzle.h"
#include "third_party/skia/include/gpu/GrContext.h"
#include "third_party/skia/include/gpu/gl/GrGLTypes.h"
@@ -122,7 +122,7 @@ bool ImageBuffer::canCreateImageBuffer(const IntSize& size) {
return true;
}
-SkCanvas* ImageBuffer::canvas() const {
+CdlCanvas* ImageBuffer::canvas() const {
return m_surface->canvas();
}
@@ -175,7 +175,7 @@ void ImageBuffer::notifySurfaceInvalid() {
m_client->notifySurfaceInvalid();
}
-void ImageBuffer::resetCanvas(SkCanvas* canvas) const {
+void ImageBuffer::resetCanvas(CdlCanvas* canvas) const {
if (m_client)
m_client->restoreCanvasMatrixClipStack(canvas);
}

Powered by Google App Engine
This is Rietveld 408576698