0
Files
src/skia
caryclark@google.com 3a761d29fc Adjust the CoreGraphics context for offscreen layers.
UI elements like buttons are drawn on Mac by pointing
the CoreGraphics context at the Skia bitmap associated
with the current device. If the elements are drawn
in a transparent context, Skia creates an offscreen
layer to capture the draw, then applies the transparency.

CoreGraphics does not know that it is drawing to an
offscreen, so the clip and matrix need to be adjusted
by the offscreen's origin, which is its position on
the device.

Also, use getTopDevice() instead of getDevice() to
obtain the bitmap. Normally, they will return the same
SkDevice (and in that case, getOrigin() will return
(0,0)) but if there's a layer present, getDevice()
will return the actual device instead of the tempoary
offscreen.

BUG:108767
TEST:http://jsfiddle.net/casaschi/JWkfA/

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117217 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-11 14:50:39 +00:00
..
2011-12-14 05:40:30 +00:00
2011-07-07 15:33:27 +00:00

This is a copy of the Skia source tree. In the original repository, the include
directories and the "corecg" directories are separated out. On top of
  libs/graphics -> skia
we have the following mappings from source repository to our tree:
  include/corecg -> skia/include/corecg
  include/graphics -> skia/include
  libs/corecg -> skia/corecg

platform/* are our own files that provide extra functionality we need our
Skia to implement.

DO NOT CHANGE THE SKIA FILES IN OUR TREE. These will be overwritten when we
sync to newer versions of Skia. The exception is platform/

THE EXCEPTION IS include/corecg/SkUserConfig.h which are the application's
definition of its options and environment. This file must be manually merged
with any changes in the Skia tree so that our options are preserved and we
also pick up any important changes they make.

 -- brettw@google.com, 28 December 2006

Patches we are tracking locally (until Skia is fixed upstream):
fix_for_1186198.diff -- eseidel, 6/4/08, BUG=1186198
linux_patch.diff