From bfac689d6c25602931658142b34f34f503aa6c10 Mon Sep 17 00:00:00 2001 From: "aelias@chromium.org" Date: Thu, 29 Aug 2013 11:19:19 +0000 Subject: Optimize alpha software PictureDrawQuads. Instead of mallocing another bitmap, edit the SkPicture's draw commands at playback time to use the PictureDrawQuad's opacity. This results in similar performance as if Blink had baked in the opacity in the first place. However, it's not correct in some cases: filed http://crbug.com/280374 to track. Also turn off setFilterBitmap for software PictureDrawQuads as this is very costly in practice. BUG=275048 Review URL: https://chromiumcodereview.appspot.com/22867046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220257 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/skia_chrome.gypi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'skia/skia_chrome.gypi') diff --git a/skia/skia_chrome.gypi b/skia/skia_chrome.gypi index a9880c0..203e3f6 100644 --- a/skia/skia_chrome.gypi +++ b/skia/skia_chrome.gypi @@ -49,6 +49,8 @@ 'ext/lazy_pixel_ref_utils.cc', 'ext/lazy_pixel_ref_utils.h', 'ext/SkThread_chrome.cc', + 'ext/opacity_draw_filter.cc', + 'ext/opacity_draw_filter.h', 'ext/paint_simplifier.cc', 'ext/paint_simplifier.h', 'ext/platform_canvas.cc', -- cgit v1.1