| Index: third_party/WebKit/Source/web/WebFontImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebFontImpl.cpp b/third_party/WebKit/Source/web/WebFontImpl.cpp
|
| index c4f4952fa6d6fb5415cfdbcad2d1317098e0ef25..989251efd0e8d5d2b2b9b0c6d6f8781f94de1e6b 100644
|
| --- a/third_party/WebKit/Source/web/WebFontImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebFontImpl.cpp
|
| @@ -33,6 +33,7 @@
|
| #include "platform/fonts/FontCache.h"
|
| #include "platform/fonts/FontDescription.h"
|
| #include "platform/graphics/GraphicsContext.h"
|
| +#include "platform/graphics/GraphicsScreen.h"
|
| #include "platform/graphics/paint/DrawingRecorder.h"
|
| #include "platform/graphics/paint/SkPictureBuilder.h"
|
| #include "platform/text/TextRun.h"
|
| @@ -100,6 +101,8 @@ void WebFontImpl::drawText(WebCanvas* canvas, const WebTextRun& run, const WebFl
|
| TextRunPaintInfo runInfo(textRun);
|
| runInfo.bounds = textClipRect;
|
|
|
| + WillPaintForDevice device(ScreenDevice::sRGBPlugin); // FIXME: PPAPI internal text metrics.
|
| +
|
| IntRect intRect(clip);
|
| SkPictureBuilder pictureBuilder(intRect);
|
| GraphicsContext& context = pictureBuilder.context();
|
|
|