[PDF] Add clip support and some optimizations for "complex" xfer modes.
authorvandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 24 May 2011 16:39:05 +0000 (16:39 +0000)
committervandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 24 May 2011 16:39:05 +0000 (16:39 +0000)
commit481aef68333e01c19badda456d8e60bd1f1bee2a
treee2f472800cff801a1ddf334f64b9d79f3216a8b3
parent2f83940c4db5d17dcb4fd7df24d8002022730a85
[PDF] Add clip support and some optimizations for "complex" xfer modes.

For Clear, Src, Dst/Src-In/Out, we have to consider the current clip, and
potentially draw Dst, clipped to the inverse of the current clip before
doing the operation of interest.

For clear or src, if we haven't drawn anything, or the clip is empty, there's
nothing to be done.
For Src/Dst-In/Out, if either is empty, the result is empty.

Review URL: http://codereview.appspot.com/4538082

git-svn-id: http://skia.googlecode.com/svn/trunk@1407 2bbb7eff-a529-9590-31e7-b0007b416f81
include/pdf/SkPDFDevice.h
src/pdf/SkPDFDevice.cpp