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

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

Issue 2623043002: Fix first paint tracking for SPv2 (Closed)
Patch Set: - 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/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 90bcff377d4614c143ff1dfa32faccd5c523a3e8..d932ef3eb64962ba18e61d24ab4ca8c0ca90965a 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -338,32 +338,9 @@ bool GraphicsLayer::paintWithoutCommit(
m_previousInterestRect = *interestRect;
m_client->paintContents(this, context, m_paintingPhase, *interestRect);
- notifyFirstPaintToClient();
return true;
}
-void GraphicsLayer::notifyFirstPaintToClient() {
- bool isFirstPaint = false;
- if (!m_painted) {
- DisplayItemList& itemList = m_paintController->newDisplayItemList();
- for (DisplayItem& item : itemList) {
- DisplayItem::Type type = item.getType();
- if (type == DisplayItem::kDocumentBackground &&
- !m_paintController->nonDefaultBackgroundColorPainted()) {
- continue;
- }
- if (DisplayItem::isDrawingType(type) &&
- static_cast<const DrawingDisplayItem&>(item).picture()) {
- m_painted = true;
- isFirstPaint = true;
- break;
- }
- }
- }
- m_client->notifyPaint(isFirstPaint, m_paintController->textPainted(),
- m_paintController->imagePainted());
-}
-
void GraphicsLayer::updateChildList() {
WebLayer* childHost = m_layer->layer();
childHost->removeAllChildren();

Powered by Google App Engine
This is Rietveld 408576698