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

Unified Diff: third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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
Index: third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
index 80212ac2cdd747eaa9224a11149d403bb28b6339..937ac120cdca44a542962b8b4e0cbf9d71244d2b 100644
--- a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
@@ -6,12 +6,12 @@
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/GraphicsContext.h"
-#include "third_party/skia/include/core/SkPicture.h"
+#include "platform/graphics/paint/PaintRecord.h"
namespace blink {
-void PaintGeneratedImage::draw(SkCanvas* canvas,
- const SkPaint& paint,
+void PaintGeneratedImage::draw(PaintCanvas* canvas,
+ const PaintFlags& paint,
const FloatRect& destRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
@@ -19,7 +19,7 @@ void PaintGeneratedImage::draw(SkCanvas* canvas,
const ColorBehavior& colorBehavior) {
// TODO(ccameron): This function should not ignore |colorBehavior|.
// https://crbug.com/672306
- SkAutoCanvasRestore ar(canvas, true);
+ PaintCanvasAutoRestore ar(canvas, true);
canvas->clipRect(destRect);
canvas->translate(destRect.x(), destRect.y());
if (destRect.size() != srcRect.size())

Powered by Google App Engine
This is Rietveld 408576698