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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 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/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 45b6face3a7e19ecb7adad0ec96b4594bb5da1c8..193492b34cfcdab2e4f7c522faa7c17ffeb68609 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -314,7 +314,7 @@ IntRect GraphicsLayer::interestRect()
void GraphicsLayer::paint(const IntRect* interestRect, GraphicsContext::DisabledMode disabledMode)
{
if (paintWithoutCommit(interestRect, disabledMode))
- paintController().commitNewDisplayItems(offsetFromLayoutObjectWithSubpixelAccumulation());
+ getPaintController().commitNewDisplayItems(offsetFromLayoutObjectWithSubpixelAccumulation());
}
bool GraphicsLayer::paintWithoutCommit(const IntRect* interestRect, GraphicsContext::DisabledMode disabledMode)
@@ -333,15 +333,15 @@ bool GraphicsLayer::paintWithoutCommit(const IntRect* interestRect, GraphicsCont
interestRect = &newInterestRect;
}
- if (!paintController().subsequenceCachingIsDisabled()
+ if (!getPaintController().subsequenceCachingIsDisabled()
&& !m_client->needsRepaint()
- && !paintController().cacheIsEmpty()
+ && !getPaintController().cacheIsEmpty()
&& m_previousInterestRect == *interestRect) {
- ASSERT(!paintController().hasInvalidations());
+ ASSERT(!getPaintController().hasInvalidations());
return false;
}
- GraphicsContext context(paintController(), disabledMode);
+ GraphicsContext context(getPaintController(), disabledMode);
#ifndef NDEBUG
if (contentsOpaque() && s_drawDebugRedFill) {
@@ -1054,7 +1054,7 @@ void GraphicsLayer::setNeedsDisplay()
for (size_t i = 0; i < m_linkHighlights.size(); ++i)
m_linkHighlights[i]->invalidate();
- paintController().invalidateAll();
+ getPaintController().invalidateAll();
if (isTrackingPaintInvalidations())
trackPaintInvalidationObject("##ALL##");
}
@@ -1078,7 +1078,7 @@ void GraphicsLayer::invalidateDisplayItemClient(const DisplayItemClient& display
if (!drawsContent())
return;
- paintController().invalidate(displayItemClient);
+ getPaintController().invalidate(displayItemClient);
if (isTrackingPaintInvalidations())
trackPaintInvalidationObject(displayItemClient.debugName());
}
@@ -1203,7 +1203,7 @@ scoped_ptr<base::trace_event::ConvertableToTraceFormat> GraphicsLayer::TakeDebug
return std::move(tracedValue);
}
-PaintController& GraphicsLayer::paintController()
+PaintController& GraphicsLayer::getPaintController()
{
RELEASE_ASSERT(drawsContent());
if (!m_paintController)
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('k') | third_party/WebKit/Source/platform/graphics/Image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698