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

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

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/ContentLayerDelegate.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
index 2fa29b1df8772470fa7d87d85283e7c2e2bb442d..86569bcf07ab45600d4ebe68fdadf085d759946f 100644
--- a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
@@ -32,7 +32,7 @@
#include "platform/TracedValue.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/GraphicsContext.h"
-#include "platform/graphics/paint/DisplayItemList.h"
+#include "platform/graphics/paint/PaintController.h"
#include "platform/transforms/AffineTransform.h"
#include "platform/transforms/TransformationMatrix.h"
#include "public/platform/WebDisplayItemList.h"
@@ -85,35 +85,35 @@ void ContentLayerDelegate::paintContents(
// here so the browser is usable during development and does not crash due
// to committing the new display items twice.
if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) {
- m_painter->displayItemList()->paintArtifact().appendToWebDisplayItemList(webDisplayItemList);
+ m_painter->paintController()->paintArtifact().appendToWebDisplayItemList(webDisplayItemList);
return;
}
- DisplayItemList* displayItemList = m_painter->displayItemList();
- ASSERT(displayItemList);
- displayItemList->setDisplayItemConstructionIsDisabled(
+ PaintController* paintController = m_painter->paintController();
+ ASSERT(paintController);
+ paintController->setDisplayItemConstructionIsDisabled(
paintingControl == WebContentLayerClient::DisplayListConstructionDisabled);
// We also disable caching when Painting or Construction are disabled. In both cases we would like
// to compare assuming the full cost of recording, not the cost of re-using cached content.
if (paintingControl != WebContentLayerClient::PaintDefaultBehavior)
- displayItemList->invalidateAll();
+ paintController->invalidateAll();
GraphicsContext::DisabledMode disabledMode = GraphicsContext::NothingDisabled;
if (paintingControl == WebContentLayerClient::DisplayListPaintingDisabled
|| paintingControl == WebContentLayerClient::DisplayListConstructionDisabled)
disabledMode = GraphicsContext::FullyDisabled;
- GraphicsContext context(displayItemList, disabledMode);
+ GraphicsContext context(paintController, disabledMode);
m_painter->paint(context, clip);
- displayItemList->commitNewDisplayItems();
- displayItemList->paintArtifact().appendToWebDisplayItemList(webDisplayItemList);
+ paintController->commitNewDisplayItems();
+ paintController->paintArtifact().appendToWebDisplayItemList(webDisplayItemList);
}
size_t ContentLayerDelegate::approximateUnsharedMemoryUsage() const
{
- return m_painter->displayItemList()->approximateUnsharedMemoryUsage();
+ return m_painter->paintController()->approximateUnsharedMemoryUsage();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698