summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authormtklein@chromium.org <mtklein@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-08 06:44:22 +0000
committermtklein@chromium.org <mtklein@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-08 06:44:22 +0000
commit94a33f631079dd5c141093cea05680b722109098 (patch)
treea9b852aa65fbc73cc86a86fb21d7f7591cc6041a /skia
parent0b330133c405050f3f39600fa20542be6264f8a7 (diff)
downloadchromium_src-94a33f631079dd5c141093cea05680b722109098.zip
chromium_src-94a33f631079dd5c141093cea05680b722109098.tar.gz
chromium_src-94a33f631079dd5c141093cea05680b722109098.tar.bz2
Define SK_PICTURE_CLONE_NOOP.
This makes SkPicture::clone() a cheap ref, meaning impl-side painting will render tiles concurrently from the same source SkPicture rather than from clones. After testing for a few months in Skia, we believe SkPicture is thread safe enough to try this out on the Chrome bots. Please revert this at the slightest sign of crash, flaky drawing, etc. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_layout_rel BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288096 Review URL: https://codereview.chromium.org/445373003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/config/SkUserConfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h
index a2b86a9..5cdbd6a 100644
--- a/skia/config/SkUserConfig.h
+++ b/skia/config/SkUserConfig.h
@@ -17,6 +17,10 @@
#ifndef SkUserConfig_DEFINED
#define SkUserConfig_DEFINED
+// Turns SkPicture::clone() into a simple "return SkRef(this);" as a way to
+// test the threadsafety of SkPicture playback.
+#define SK_PICTURE_CLONE_NOOP 1
+
/* SkTypes.h, the root of the public header files, does the following trick:
#include <SkPreConfig.h>