| 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 a6a00dde1ece5f9140253eeed9f6c5fb3add5de0..55a6b12e4d89bba1f73ce4fa67fd90a69e2ca0c2 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
|
| @@ -303,12 +303,12 @@
|
| skia::GetMetaData(*m_canvas) = m_metaData;
|
| }
|
|
|
| -PassRefPtr<SkPicture> GraphicsContext::endRecording()
|
| +PassRefPtr<const SkPicture> GraphicsContext::endRecording()
|
| {
|
| if (contextDisabled())
|
| return nullptr;
|
|
|
| - RefPtr<SkPicture> picture = adoptRef(m_pictureRecorder.endRecordingAsPicture());
|
| + RefPtr<const SkPicture> picture = adoptRef(m_pictureRecorder.endRecordingAsPicture());
|
| m_canvas = nullptr;
|
| ASSERT(picture);
|
| return picture.release();
|
| @@ -635,10 +635,11 @@
|
|
|
| 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(SkShader::MakeBitmapShader(
|
| - *misspellBitmap[index], SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix));
|
| + paint.setShader(shader.get());
|
|
|
| SkRect rect;
|
| rect.set(originX, originY, originX + WebCoreFloatToSkScalar(width) * deviceScaleFactor, originY + SkIntToScalar(misspellBitmap[index]->height()));
|
|
|