Commit 427f564d authored by mtklein@chromium.org's avatar mtklein@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#288233}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288233 0039d316-1c4b-4281-b951-d872f2087c98
parent 52717b42
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment