diff options
author | Nicolas Roard <nicolasroard@google.com> | 2012-04-02 16:16:59 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2012-04-06 11:05:38 -0700 |
commit | 64e4b265f84573b97d408f7d3e5aa99a647be057 (patch) | |
tree | e349e52565c0cc487526fd68b608f8648678c1c7 /Source/WebCore/plugins/android | |
parent | d01f8866730e5ebe8609f82f95cf281432460607 (diff) | |
download | external_webkit-64e4b265f84573b97d408f7d3e5aa99a647be057.zip external_webkit-64e4b265f84573b97d408f7d3e5aa99a647be057.tar.gz external_webkit-64e4b265f84573b97d408f7d3e5aa99a647be057.tar.bz2 |
Implements a recording GraphicsContext
Change-Id: I41feadb23dce25af321331c459eb159c6141831b
Diffstat (limited to 'Source/WebCore/plugins/android')
-rw-r--r-- | Source/WebCore/plugins/android/PluginViewAndroid.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/WebCore/plugins/android/PluginViewAndroid.cpp b/Source/WebCore/plugins/android/PluginViewAndroid.cpp index 315d8a4..fdf6e03 100644 --- a/Source/WebCore/plugins/android/PluginViewAndroid.cpp +++ b/Source/WebCore/plugins/android/PluginViewAndroid.cpp @@ -690,7 +690,10 @@ void PluginView::paint(GraphicsContext* context, const IntRect& rect) notification of its global position change. */ updatePluginWidget(); - m_window->setSurfaceClip(context->platformContext()->mCanvas->getTotalClip().getBounds()); + SkCanvas* canvas = context->platformContext()->getCanvas(); + if (!canvas) + return; + m_window->setSurfaceClip(canvas->getTotalClip().getBounds()); } else { m_window->inval(rect, false); context->save(); |