Adding setSurface public API method to SkDeferredCanvas
authorjunov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 24 May 2013 17:13:00 +0000 (17:13 +0000)
committerjunov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 24 May 2013 17:13:00 +0000 (17:13 +0000)
commit7070f76b90b098b4713bc0d13dc129adea64d7ef
treeb44d530daa8465ee05a64359ff00ea440b7383a3
parent24287c15d6c80560fc023b7924ff0bc41ad7f587
Adding setSurface public API method to SkDeferredCanvas

The purpose of this change is to provide an API that Blink 2D canvas layers can use
to install a new render target when recovering from a lost graphics context.

Review URL: https://codereview.chromium.org/15896005

git-svn-id: http://skia.googlecode.com/svn/trunk@9276 2bbb7eff-a529-9590-31e7-b0007b416f81
include/utils/SkDeferredCanvas.h
src/utils/SkDeferredCanvas.cpp
tests/DeferredCanvasTest.cpp