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

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

Issue 2755183002: Change drawPicture calls to playback to avoid culling (Closed)
Patch Set: Address review comments 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/PageWidgetDelegate.cpp
diff --git a/third_party/WebKit/Source/web/PageWidgetDelegate.cpp b/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
index 9f5e391fce9aea30990cf94c82a3d7c81a17c93d..e42928116fb927b47dcfd7c255238e4c67f65887 100644
--- a/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
+++ b/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
@@ -68,6 +68,7 @@ static void paintInternal(Page& page,
return;
IntRect intRect(rect);
+ // TODO(enne): intRect is not correct: http://crbug.com/703231
PaintRecordBuilder builder(intRect);
{
GraphicsContext& paintContext = builder.context();
@@ -97,7 +98,7 @@ static void paintInternal(Page& page,
}
}
- canvas->drawPicture(builder.endRecording());
+ canvas->PlaybackPaintRecord(builder.endRecording());
}
void PageWidgetDelegate::paint(Page& page,

Powered by Google App Engine
This is Rietveld 408576698