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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/Shape.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/core/layout/shapes/Shape.cpp
diff --git a/third_party/WebKit/Source/core/layout/shapes/Shape.cpp b/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
index 7484888577ba25d5bb7a94e8fdab6a5d4b1d1100..e13310e3af7ae8ff132bebddfefc0ec327ff54a6 100644
--- a/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
+++ b/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
@@ -44,6 +44,7 @@
#include "platform/geometry/FloatSize.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/graphics/ImageBuffer.h"
+#include "skia/ext/cdl_paint.h"
#include "wtf/MathExtras.h"
#include "wtf/PtrUtil.h"
#include "wtf/typed_arrays/ArrayBufferContents.h"
@@ -240,9 +241,10 @@ std::unique_ptr<Shape> Shape::createRasterShape(Image* image,
// that loads SVG Images during paint invalidations to mark layoutObjects
// for layout, which is not allowed. See https://crbug.com/429346
ImageObserverDisabler disabler(image);
- SkPaint paint;
+ CdlPaint paint;
IntRect imageSourceRect(IntPoint(), image->size());
IntRect imageDestRect(IntPoint(), imageRect.size());
+
image->draw(imageBuffer->canvas(), paint, imageDestRect, imageSourceRect,
DoNotRespectImageOrientation,
Image::DoNotClampImageToSourceRect);

Powered by Google App Engine
This is Rietveld 408576698