Index: webkit/plugins/npapi/webplugin_delegate_impl_mac.mm |
=================================================================== |
--- webkit/plugins/npapi/webplugin_delegate_impl_mac.mm (revision 81254) |
+++ webkit/plugins/npapi/webplugin_delegate_impl_mac.mm (working copy) |
@@ -37,6 +37,11 @@ |
#include "webkit/plugins/npapi/quickdraw_drawing_manager_mac.h" |
#endif |
+#if defined(USE_SKIA) |
+#include "skia/ext/platform_canvas.h" |
+#include "skia/ext/skia_utils_mac.h" |
+#endif |
+ |
using WebKit::WebCursorInfo; |
using WebKit::WebKeyboardEvent; |
using WebKit::WebInputEvent; |
@@ -469,6 +474,14 @@ |
#endif |
} |
+#if defined(USE_SKIA) |
+void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, |
stuartmorgan
2011/04/12 17:35:51
I don't suppose there's a less confusing way to do
_cary
2011/04/12 21:03:55
Done.
|
+ const gfx::Rect& rect) { |
+ gfx::SkiaBitLocker bitLocker(canvas); |
stuartmorgan
2011/04/12 17:35:51
Does this have the same transparency-preserving pr
_cary
2011/04/12 21:03:55
Yes, the Skia bitmap preserves alpha so transparen
|
+ Paint(bitLocker.cgContext(), rect); |
+} |
+#endif |
+ |
void WebPluginDelegateImpl::Print(CGContextRef context) { |
NOTIMPLEMENTED(); |
} |