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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2755183002: Change drawPicture calls to playback to avoid culling (Closed)
Patch Set: 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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 5826cacd0a6e23ad3606c08c47422bf1ece5987b..4457c2c28793b0a73cc1e1a27ea57532918ceccd 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -310,7 +310,7 @@ class ChromePrintContext : public PrintContext {
builder.context().setPrinting(true);
float scale = spoolPage(builder, pageNumber);
- canvas->drawPicture(builder.endRecording());
+ canvas->PlaybackPaintRecord(builder.endRecording().get());
return scale;
}
@@ -377,7 +377,7 @@ class ChromePrintContext : public PrintContext {
currentHeight += pageSizeInPixels.height() + 1;
}
}
- canvas->drawPicture(builder.endRecording());
+ canvas->PlaybackPaintRecord(builder.endRecording().get());
}
protected:
« cc/paint/paint_canvas.h ('K') | « third_party/WebKit/Source/web/PageWidgetDelegate.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698