Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(156)

Issue 140065: Alternate alpha blending path

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 2 months ago by Stephen White
Modified:
16 years, 2 months ago
Reviewers:
reed
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This patch implements alpha blending using SkDiv255Round(), which gives numerically exact values of (a / 255) (for values in the range 0..65025). This makes Skia's compositing operators match CG's results pixel for pixel, at a performance cost of a few more integer operations per pixel. For now, these changes are hidden behind #ifdef SK_USE_ACCURATE_BLENDING.

Patch Set 1 #

Patch Set 2 : Hide some more code behind #ifdefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -7 lines) Patch
include/core/SkColorPriv.h View 3 chunks +22 lines, -3 lines 0 comments Download
src/core/SkBlitRow_D32.cpp View 1 2 chunks +8 lines, -0 lines 0 comments Download
src/core/SkBlitter_ARGB32.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download
src/core/SkScan_Antihair.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
src/core/SkXfermode.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
Stephen White
16 years, 2 months ago (2009-10-26 21:05:12 UTC) #1
Stephen White
16 years, 2 months ago (2009-10-26 21:06:30 UTC) #2
Stephen White
Hide some more code behind #ifdefs
16 years, 2 months ago (2009-10-27 03:04:50 UTC) #3
reed
16 years, 2 months ago (2009-10-30 19:13:48 UTC) #4
On 2009/10/27 03:04:50, Stephen White wrote:
> Hide some more code behind #ifdefs

Lets talk more about these as a design discussion before narrowly having a
code-review.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b