| Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc
|
| diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
|
| index 7a82402195b6b7bd5fa96ee7584e4c6495f10f36..f308202cb956420d3e1fe15949e6cbd7309317ab 100644
|
| --- a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
|
| +++ b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
|
| @@ -644,7 +644,7 @@ void WebPluginDelegateImpl::PlatformDestroyInstance() {
|
|
|
| void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas,
|
| const gfx::Rect& rect) {
|
| - if (windowless_) {
|
| + if (windowless_ && skia::SupportsPlatformPaint(canvas)) {
|
| skia::ScopedPlatformPaint scoped_platform_paint(canvas);
|
| HDC hdc = scoped_platform_paint.GetPlatformSurface();
|
| WindowlessPaint(hdc, rect);
|
|
|