Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / cc / resources / bitmap_skpicture_content_layer_updater.cc
index f1c2219..21fdbbb 100644 (file)
@@ -69,6 +69,8 @@ BitmapSkPictureContentLayerUpdater::CreateResource(
 void BitmapSkPictureContentLayerUpdater::PaintContentsRect(
     SkCanvas* canvas,
     const gfx::Rect& source_rect) {
+  if (!canvas)
+    return;
   // Translate the origin of content_rect to that of source_rect.
   canvas->translate(content_rect().x() - source_rect.x(),
                     content_rect().y() - source_rect.y());