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

Unified Diff: sky/engine/core/rendering/RenderLayer.cpp

Issue 886923003: Inline two methods with only one caller. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderLayer.cpp
diff --git a/sky/engine/core/rendering/RenderLayer.cpp b/sky/engine/core/rendering/RenderLayer.cpp
index 47495eca070f9aad7ed801871ebb6cbe95ce5b46..4c3996eb57a2e78c19f067b9faf993ceb64aeb94 100644
--- a/sky/engine/core/rendering/RenderLayer.cpp
+++ b/sky/engine/core/rendering/RenderLayer.cpp
@@ -1019,22 +1019,14 @@ void RenderLayer::paintForeground(GraphicsContext* context, GraphicsContext* tra
// TODO(ojan): We probably should early return at the beginning of this function
// if the rect is empty.
if (!foregroundRectIsEmpty) {
- paintForegroundWithPhase(PaintPhaseForeground,
- context, localPaintingInfo,
- layerLocation, layerForegroundRect);
+ PaintInfo paintInfo(context, pixelSnappedIntRect(layerForegroundRect.rect()), PaintPhaseForeground, localPaintingInfo.rootLayer->renderer());
+ renderer()->paint(paintInfo, layerLocation);
}
if (shouldClip)
restoreClip(context, localPaintingInfo.paintDirtyRect, layerForegroundRect);
}
-void RenderLayer::paintForegroundWithPhase(PaintPhase phase, GraphicsContext* context,
- const LayerPaintingInfo& localPaintingInfo, LayoutPoint& layerLocation, ClipRect& layerForegroundRect)
-{
- PaintInfo paintInfo(context, pixelSnappedIntRect(layerForegroundRect.rect()), phase, localPaintingInfo.rootLayer->renderer());
- renderer()->paint(paintInfo, layerLocation);
-}
-
void RenderLayer::paintMask(GraphicsContext* context, const LayerPaintingInfo& localPaintingInfo,
LayoutPoint& layerLocation, ClipRect& layerBackgroundRect)
{
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698