aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/blurroundrect.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-07-07 10:41:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-07 10:41:04 -0700
commit7cdc1ee11545a10708e857adf1d4a94a2f1e2a48 (patch)
tree47918c0d3c042076a4eeb061eef782e27143ad71 /gm/blurroundrect.cpp
parentd312a04ffacb8e86a2d2eb37985b154ab4e9d3c6 (diff)
Add always-threaded SkRecord quilt tests.
Now that we're drawing tiles threaded like implside painting, remove the checks that those lock counts are balanced. They're just not right for anyone anymore. SkBitmaps themselves are not threadsafe (even const ones), so shallow copy them on playback of an SkRecord. (The underlying SkPixelRefs are threadsafe.) Simplify quilt drawing by using SkBitmap::extractSubset. No need for locking. Bump up to 256x256 tiles. 16x16 tiles just murders performance (way too much contention). This has the nice side effect of letting us enable a bunch more GMs for quilt mode; they drew wrong with small tiles but exactly right with large. BUG=171776 R=reed@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/371023005
Diffstat (limited to 'gm/blurroundrect.cpp')
-rw-r--r--gm/blurroundrect.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/gm/blurroundrect.cpp b/gm/blurroundrect.cpp
index 3e6f1bdd98..d78335f2a6 100644
--- a/gm/blurroundrect.cpp
+++ b/gm/blurroundrect.cpp
@@ -42,10 +42,6 @@ public:
fRRect.setRectRadii(r, radii);
}
- virtual uint32_t onGetFlags() const SK_OVERRIDE {
- return kSkipTiled_Flag;
- }
-
virtual SkString onShortName() SK_OVERRIDE {
return fName;
}
@@ -104,10 +100,6 @@ public:
}
protected:
- virtual uint32_t onGetFlags() const SK_OVERRIDE {
- return kSkipTiled_Flag;
- }
-
virtual SkString onShortName() SK_OVERRIDE {
return fName;
}