ppapi Graphics2d should invalidate all changes without clipping to visible area.
ppapi Graphics2d should invalidate all changes without clipping to visible area.

Currently the flush operation assumes that WebKit will request the ppapi plugin
to repaint any newly exposed regions, and so it only invalidates the visible
portion of changes. However, for accelerated compositing, this behavior is not
correct. This patch rearranges the logic to work for both accelerated and
non-accelerated compositing.

BUG=122860
TEST=tested manually, created crbug.com/125763 for making a unit test


Review URL: http://codereview.chromium.org/10223009

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@134755 0039d316-1c4b-4281-b951-d872f2087c98

adobe/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,ropik/chromium,yitian134/chromium