Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp |
index 55a6b12e4d89bba1f73ce4fa67fd90a69e2ca0c2..7826b2355242b3ddc4258275d5c09bbd77233d39 100644 |
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp |
@@ -635,11 +635,10 @@ void GraphicsContext::drawLineForDocumentMarker(const FloatPoint& pt, float widt |
SkMatrix localMatrix; |
localMatrix.setTranslate(originX, originY); |
- RefPtr<SkShader> shader = adoptRef(SkShader::CreateBitmapShader( |
- *misspellBitmap[index], SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix)); |
SkPaint paint; |
- paint.setShader(shader.get()); |
+ paint.setShader(SkShader::MakeBitmapShader(*misspellBitmap[index], |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix)); |
SkRect rect; |
rect.set(originX, originY, originX + WebCoreFloatToSkScalar(width) * deviceScaleFactor, originY + SkIntToScalar(misspellBitmap[index]->height())); |