skia2/include
bungeman@google.com f64c6842c1 Add a 'unique' method to SkRefCnt, document the usage, and add support.
std::shared_ptr has a method called 'unique' which captures the concept that
a reference count of 1 is special, and can be used to optimize copy on write.
It also has some undocumented need for memory barriers in certain situations
and those needs are documented here.

The motivation for looking into this is crbug.com/258499 . The use of the
reference count in this manner is a benign race with both ref() and unref().
By introducing sk_atomic_unprotected_read, it is possible for Chromium to
annotate this read to tell ThreadSanitizer that this is known.

R=bsalomon@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10221 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-19 23:18:52 +00:00
..
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
config Re-enable inst counting in debug builds. 2013-01-15 20:37:04 +00:00
core Add a 'unique' method to SkRefCnt, document the usage, and add support. 2013-07-19 23:18:52 +00:00
device/xps XPS ttc handling. 2013-05-07 15:28:15 +00:00
effects Implement offset for GPU filter path. Although we can't yet use this in Blink for FEOffset, due to SVG semantics, we can use it to support crop rect (upcoming patch). 2013-07-10 21:22:18 +00:00
gpu Replace all instances of GrRect with SkRect. 2013-07-17 21:39:42 +00:00
images Separate core and images project. 2013-05-31 14:00:10 +00:00
lazy The two leaks are: 2013-07-11 22:29:29 +00:00
pathops Export SkPathOps.h functions for external use. 2013-07-09 19:43:35 +00:00
pdf Revert "Adds SkPDFResourceDict class to manage resource dicts. Refactors existing code to use this class." 2013-07-19 20:13:44 +00:00
pipe Fixes for piping bitmaps with encoded data. 2013-04-30 02:32:41 +00:00
ports Remove unimplemented Mutex() method from SkFontMgr.h. 2013-07-18 19:04:45 +00:00
svg Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
text Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
utils Export SkProxyCanvas and SkNWayCanvas for external use. 2013-07-15 22:49:37 +00:00
views use select() so we can wait for XEvents or our timer 2013-06-17 13:42:43 +00:00
xml Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00