| Index: src/core/SkCanvas.cpp
|
| ===================================================================
|
| --- src/core/SkCanvas.cpp (revision 13762)
|
| +++ src/core/SkCanvas.cpp (working copy)
|
| @@ -2404,8 +2404,14 @@
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| +void SkCanvas::drawPicture(SkPicture& picture) {
|
| + SkBaseDevice* device = this->getDevice();
|
| + if (NULL != device) {
|
| + if (device->optimizedRender(picture)) {
|
| + return; // the device has rendered the entire picture
|
| + }
|
| + }
|
|
|
| -void SkCanvas::drawPicture(SkPicture& picture) {
|
| picture.draw(this);
|
| }
|
|
|
|
|