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

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

Issue 2752593002: cc: Make PaintCanvas abstract (Closed)
Patch Set: Remove default parameters on virtual functions Created 3 years, 9 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/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 7e642f9a342dc3e6c15a1fc1a8a5e0ecebcdb6f9..633df72db2143dc74d4e8042d50eeb7bf1c862bd 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -1222,7 +1222,7 @@ void GraphicsLayer::checkPaintUnderInvalidations(const PaintRecord& newRecord) {
oldBitmap.allocPixels(
SkImageInfo::MakeN32Premul(rect.width(), rect.height()));
{
- PaintCanvas canvas(oldBitmap);
+ SkiaPaintCanvas canvas(oldBitmap);
canvas.clear(SK_ColorTRANSPARENT);
canvas.translate(-rect.x(), -rect.y());
canvas.drawPicture(tracking->lastPaintedRecord.get());
@@ -1232,7 +1232,7 @@ void GraphicsLayer::checkPaintUnderInvalidations(const PaintRecord& newRecord) {
newBitmap.allocPixels(
SkImageInfo::MakeN32Premul(rect.width(), rect.height()));
{
- PaintCanvas canvas(newBitmap);
+ SkiaPaintCanvas canvas(newBitmap);
canvas.clear(SK_ColorTRANSPARENT);
canvas.translate(-rect.x(), -rect.y());
canvas.drawPicture(&newRecord);

Powered by Google App Engine
This is Rietveld 408576698