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

Unified Diff: third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

Issue 18339: Attempt at getting GDI text to render when drawn using canvas. I added... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (revision 8367)
+++ third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (working copy)
@@ -36,6 +36,7 @@
#include "Color.h"
#include "FloatRect.h"
#include "Gradient.h"
+#include "ImageBuffer.h"
#include "IntRect.h"
#include "NativeImageSkia.h"
#include "NotImplemented.h"
@@ -417,8 +418,9 @@
if (paintingDisabled())
return;
- // FIXME: This is needed for image masking and complex text fills.
- notImplemented();
+#if defined(__linux__) || PLATFORM(WIN_OS)
+ platformContext()->beginLayerClippedToImage(rect, imageBuffer);
+#endif
}
void GraphicsContext::concatCTM(const TransformationMatrix& xform)

Powered by Google App Engine
This is Rietveld 408576698