aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@google.com>2014-08-21 17:10:14 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-21 17:10:14 -0700
commitc8c4b957288fd3114d60e3faa9bc95c4c15ca1f2 (patch)
tree62838b2b8e2370712349fd87331f7a324fb47e25
parentc8460493adbaba5acef69b3127c452df99117b24 (diff)
Revert of Revert back to SkPictureData pictures. Huge perf regression. (patchset #1 of https://codereview.chromium.org/496603002/)
Reason for revert: Try again now that we have --bbh on nanobench and it's looking decent. Original issue's description: > Revert back to SkPictureData pictures. Huge perf regression. > > http://skiaperf.com/#108 > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/4082d290eea2f70caa82120ff3bc4fbdccbf206c R=reed@google.com, mtklein@chromium.org TBR=mtklein@chromium.org, reed@google.com NOTREECHECKS=true NOTRY=true BUG=skia: Author: mtklein@google.com Review URL: https://codereview.chromium.org/496173002
-rw-r--r--src/core/SkPicture.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index d1a81a5aff..6239763c3d 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -447,12 +447,8 @@ SkPicture* SkPicture::CreateFromStream(SkStream* stream, InstallPixelRefProc pro
if (NULL == data) {
return NULL;
}
-#if 0
const SkPicture src(data, info.fWidth, info.fHeight);
return Forwardport(src);
-#else
- return SkNEW_ARGS(SkPicture, (data, info.fWidth, info.fHeight));
-#endif
}
return NULL;
@@ -472,12 +468,8 @@ SkPicture* SkPicture::CreateFromBuffer(SkReadBuffer& buffer) {
if (NULL == data) {
return NULL;
}
-#if 0
const SkPicture src(data, info.fWidth, info.fHeight);
return Forwardport(src);
-#else
- return SkNEW_ARGS(SkPicture, (data, info.fWidth, info.fHeight));
-#endif
}
return NULL;