diff options
author | Nicolas Roard <nicolasroard@google.com> | 2012-04-06 11:07:38 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-06 11:07:38 -0700 |
commit | c88c88907b618e468ec3928b06a3a31d4f99b9c6 (patch) | |
tree | b6c7a50f0d978dc64f40d06065c2a4449ac882fd /Source/WebKit/android/WebCoreSupport | |
parent | dce2610c764191370d209db76d3fbc3381000349 (diff) | |
parent | 64e4b265f84573b97d408f7d3e5aa99a647be057 (diff) | |
download | external_webkit-c88c88907b618e468ec3928b06a3a31d4f99b9c6.zip external_webkit-c88c88907b618e468ec3928b06a3a31d4f99b9c6.tar.gz external_webkit-c88c88907b618e468ec3928b06a3a31d4f99b9c6.tar.bz2 |
Merge "Implements a recording GraphicsContext"
Diffstat (limited to 'Source/WebKit/android/WebCoreSupport')
-rw-r--r-- | Source/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp b/Source/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp index 95ced96..52aeb23 100644 --- a/Source/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp +++ b/Source/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp @@ -264,7 +264,9 @@ public: if (!m_poster || (!m_poster->getPixels() && !m_poster->pixelRef())) return; - SkCanvas* canvas = ctxt->platformContext()->mCanvas; + SkCanvas* canvas = ctxt->platformContext()->getCanvas(); + if (!canvas) + return; // We paint with the following rules in mind: // - only downscale the poster, never upscale // - maintain the natural aspect ratio of the poster |