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

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

Issue 1393593002: Convert SkLayerDrawLooper::addLayerOnTop calls to use addLayer instead Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo 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/DrawLooperBuilder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp b/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
index 1b30b6767fbf6cbb01c36da4f8f302ee4259d7aa..5be60aa04839f1f6320a5a817e75aa8cc551b66c 100644
--- a/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp
@@ -60,8 +60,7 @@ PassRefPtr<SkDrawLooper> DrawLooperBuilder::detachDrawLooper()
void DrawLooperBuilder::addUnmodifiedContent()
{
- SkLayerDrawLooper::LayerInfo info;
- m_skDrawLooperBuilder.addLayerOnTop(info);
+ m_skDrawLooperBuilder.addLayer();
}
void DrawLooperBuilder::addShadow(const FloatSize& offset, float blur, const Color& color,
@@ -92,7 +91,7 @@ void DrawLooperBuilder::addShadow(const FloatSize& offset, float blur, const Col
info.fOffset.set(offset.width(), offset.height());
info.fPostTranslate = (shadowTransformMode == ShadowIgnoresTransforms);
- SkPaint* paint = m_skDrawLooperBuilder.addLayerOnTop(info);
+ SkPaint* paint = m_skDrawLooperBuilder.addLayer(info);
if (blur) {
const SkScalar sigma = skBlurRadiusToSigma(blur);

Powered by Google App Engine
This is Rietveld 408576698