summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authormtklein <mtklein@chromium.org>2014-08-27 08:35:33 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-27 15:36:28 +0000
commiteaadd523b978859587ff753031f76aea39b87976 (patch)
tree170e112c222dad2d9dc637bc35d30b11293b70c8 /skia
parent047af26ba1bb8dd0cb74c132b2578eb91d8c7076 (diff)
downloadchromium_src-eaadd523b978859587ff753031f76aea39b87976.zip
chromium_src-eaadd523b978859587ff753031f76aea39b87976.tar.gz
chromium_src-eaadd523b978859587ff753031f76aea39b87976.tar.bz2
Try backing SkPicture with SkRecord in Chromium.
This is our first attempt, mostly to feel this out. Performance and correctness problems are both possible. Please revert this if a benchmark even smells funny. That said, we've been working on this a while, are pretty confident it's good stuff, and have had Skia's internal testing entirely switched over for a week. Parts of Chromium that serialize and deserialize SkPictures are already switched over. This CL finishes things off by switching the default recorded-from-scratch SkPicture to use SkRecord too. BUG= Review URL: https://codereview.chromium.org/504823003 Cr-Commit-Position: refs/heads/master@{#292157}
Diffstat (limited to 'skia')
-rw-r--r--skia/config/SkUserConfig.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h
index 5cdbd6a..607616d 100644
--- a/skia/config/SkUserConfig.h
+++ b/skia/config/SkUserConfig.h
@@ -17,10 +17,6 @@
#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>
@@ -261,6 +257,13 @@ SK_API void SkDebugf_FileLine(const char* file, int line, bool fatal,
#define SK_SUPPORT_LEGACY_GETDEVICE
#endif
+// 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
+
+// Turns on new (nicer, hopefully faster) SkPicture backend.
+#define SK_PICTURE_USE_SK_RECORD 1
+
// ===== End Chrome-specific definitions =====
#endif