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

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

Issue 2894093002: Don't access DisplayItemClient::VisualRect() for cached display items. (Closed)
Patch Set: - Created 3 years, 7 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 ebb192b3203d7f7e29c8d392cc48e36ffad12108..9c1c48edb229b440204e40ab9921166e021c2a3e 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -277,8 +277,7 @@ IntRect GraphicsLayer::InterestRect() {
void GraphicsLayer::Paint(const IntRect* interest_rect,
GraphicsContext::DisabledMode disabled_mode) {
if (PaintWithoutCommit(interest_rect, disabled_mode)) {
- GetPaintController().CommitNewDisplayItems(
- OffsetFromLayoutObjectWithSubpixelAccumulation());
+ GetPaintController().CommitNewDisplayItems();
if (RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled()) {
sk_sp<PaintRecord> record = CaptureRecord();
CheckPaintUnderInvalidations(record);
@@ -1282,8 +1281,7 @@ void GraphicsLayer::CheckPaintUnderInvalidations(
recorder.beginRecording(rect);
recorder.getRecordingCanvas()->drawBitmap(new_bitmap, rect.X(), rect.Y());
sk_sp<PaintRecord> record = recorder.finishRecordingAsPicture();
- GetPaintController().AppendDebugDrawingAfterCommit(
- *this, record, OffsetFromLayoutObjectWithSubpixelAccumulation());
+ GetPaintController().AppendDebugDrawingAfterCommit(*this, record);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698