Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
index 363c577fb781308428af3b117f9023011c8558e7..ec9a35e7e7b666f37a99d295724de054f587039c 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
@@ -68,6 +68,7 @@ |
#include "platform/graphics/StaticBitmapImage.h" |
#include "platform/graphics/UnacceleratedImageBufferSurface.h" |
#include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" |
+#include "platform/graphics/paint/PaintCanvas.h" |
#include "platform/image-encoders/ImageEncoderUtils.h" |
#include "platform/transforms/AffineTransform.h" |
#include "public/platform/Platform.h" |
@@ -391,7 +392,8 @@ void HTMLCanvasElement::didDisableAcceleration() { |
didDraw(FloatRect(0, 0, size().width(), size().height())); |
} |
-void HTMLCanvasElement::restoreCanvasMatrixClipStack(SkCanvas* canvas) const { |
+void HTMLCanvasElement::restoreCanvasMatrixClipStack( |
+ PaintCanvas* canvas) const { |
if (m_context) |
m_context->restoreCanvasMatrixClipStack(canvas); |
} |
@@ -818,7 +820,7 @@ bool HTMLCanvasElement::shouldAccelerate(AccelerationCriteria criteria) const { |
if (RuntimeEnabledFeatures::displayList2dCanvasEnabled()) { |
#if 0 |
// TODO(junov): re-enable this code once we solve the problem of recording |
- // GPU-backed images to an SkPicture for cross-context rendering crbug.com/490328 |
+ // GPU-backed images to a PaintRecord for cross-context rendering crbug.com/490328 |
// If the compositor provides GPU acceleration to display list canvases, we |
// prefer that over direct acceleration. |
@@ -1085,7 +1087,7 @@ void HTMLCanvasElement::updateExternallyAllocatedMemory() const { |
m_externallyAllocatedMemory = externallyAllocatedMemory; |
} |
-SkCanvas* HTMLCanvasElement::drawingCanvas() const { |
+PaintCanvas* HTMLCanvasElement::drawingCanvas() const { |
return buffer() ? m_imageBuffer->canvas() : nullptr; |
} |
@@ -1094,7 +1096,7 @@ void HTMLCanvasElement::disableDeferral(DisableDeferralReason reason) const { |
m_imageBuffer->disableDeferral(reason); |
} |
-SkCanvas* HTMLCanvasElement::existingDrawingCanvas() const { |
+PaintCanvas* HTMLCanvasElement::existingDrawingCanvas() const { |
if (!hasImageBuffer()) |
return nullptr; |