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

Unified Diff: Source/core/rendering/InlineTextBox.cpp

Issue 177473003: Use SkLayerDrawLooper::Builder to construct SkLayerDrawLooper. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use OwnPtr instead of RefPtr Created 6 years, 10 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: Source/core/rendering/InlineTextBox.cpp
diff --git a/Source/core/rendering/InlineTextBox.cpp b/Source/core/rendering/InlineTextBox.cpp
index d36b8b4c49f6af4c5c4e2853ac0735c81c511ac1..22b99a122403c97f174f3f6b06dda2598a0ea800 100644
--- a/Source/core/rendering/InlineTextBox.cpp
+++ b/Source/core/rendering/InlineTextBox.cpp
@@ -397,17 +397,17 @@ static void paintTextWithShadows(GraphicsContext* context,
bool hasShadow = shadowList && !context->printing();
if (hasShadow) {
- DrawLooper drawLooper;
+ DrawLooper::Builder drawLooperBuilder;
for (size_t i = shadowList->shadows().size(); i--; ) {
const ShadowData& shadow = shadowList->shadows()[i];
float shadowX = horizontal ? shadow.x() : shadow.y();
float shadowY = horizontal ? shadow.y() : -shadow.x();
FloatSize offset(shadowX, shadowY);
- drawLooper.addShadow(offset, shadow.blur(), shadow.color(),
+ drawLooperBuilder.addShadow(offset, shadow.blur(), shadow.color(),
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha);
}
- drawLooper.addUnmodifiedContent();
- context->setDrawLooper(drawLooper);
+ drawLooperBuilder.addUnmodifiedContent();
+ context->setDrawLooper(*drawLooperBuilder.detachDrawLooper());
}
TextRunPaintInfo textRunPaintInfo(textRun);

Powered by Google App Engine
This is Rietveld 408576698