BrowserFontResource should not push opacity info to Blink
commit34483e90726bc4537a746e2b49f3f47a2991a88f
authorfmalita <fmalita@chromium.org>
Mon, 9 Mar 2015 16:01:17 +0000 (9 09:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 9 Mar 2015 16:02:17 +0000 (9 16:02 +0000)
tree260516514b8e8d8bf7a606d0f48011d47a4934a1
parent22ba3f74c260f348af127b25ceccaf06a7f34454
BrowserFontResource should not push opacity info to Blink

Blink's opacity & LCD logic is being removed - instead this is to be
handled by setting appropriate SkSurfaceProps onto the target canvas.

Unfortunately that's not directly applicable to
BrowserFontResource_Trusted::DrawTextAt/DrawTextToCanvas because the
API allows different opacity flags to be specified for different
calls directed to the same canvas.

We work around by disabling LCD text at the last stage, using a
temporary SkCanvas.

BUG=430617
R=reed@google.com,piman@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#319645}
content/child/browser_font_resource_trusted.cc
content/child/browser_font_resource_trusted.h