DescriptionAdd Skia to CG adapter for plugins.
Skia on Mac uses Skia to render WebKit, and CG
to render UI elements. The CG elements need a
transcribed graphics context that preserves the
canvas matrix, and the canvas clip.
The SkiaBitLocker utility class sets up a CGContext
from the SkCanvas, locks the bitmap's bits, and
releases the lock when the class goes out of scope.
The SkiaBitLocker implementation is described by
this patch:
http://codereview.chromium.org/7031006/
For ppapi, use the CG bitmap copy only if Skia
is not used.
Otherwise, adjust the Mac-specific code to convert
the canvas to a CGContext as needed.
Also, add a CG-specific entry point for painting
so that the delegate can paint using a WebCanvas,
while the proxy paints with a CGContext.
This change adds a code path that will be enabled
in the future, but does not modify any
existing code, so there is no functional change.
BUG=79463
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86662
Patch Set 1 #
Total comments: 12
Patch Set 2 : '' #
Total comments: 4
Patch Set 3 : '' #
Total comments: 2
Patch Set 4 : '' #Patch Set 5 : '' #
Total comments: 2
Patch Set 6 : '' #
Total comments: 12
Patch Set 7 : '' #
Messages
Total messages: 18 (0 generated)
|