aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkMultiPictureDraw.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-05-06 07:16:18 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-06 07:16:18 -0700
commit6b53b9daeb2137a91d8ddb8e890d66c702bfbaa3 (patch)
tree3f9d203586289d76727e9641339722a8146a4616 /src/core/SkMultiPictureDraw.cpp
parent8ca7da80fa320b4a9734bfb26932a7c7d208a0d4 (diff)
Revert of Disable layer hoisting for non-8888 canvases (patchset #2 id:20001 of https://codereview.chromium.org/1957433002/ )
Reason for revert: Experimental revert to investigate perf regression Original issue's description: > Disable layer hoisting for non-8888 canvases > > This just stops the bleeding. A real fix would propagate the canvas' backing type down to the layer hoister. > > GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1957433002 > > Committed: https://skia.googlesource.com/skia/+/4e30f27164179d344f0c8efa9a691d1bc9a53e3f TBR=bsalomon@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review-Url: https://codereview.chromium.org/1961483002
Diffstat (limited to 'src/core/SkMultiPictureDraw.cpp')
-rw-r--r--src/core/SkMultiPictureDraw.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp
index 40d93b1dd7..26e446d2ad 100644
--- a/src/core/SkMultiPictureDraw.cpp
+++ b/src/core/SkMultiPictureDraw.cpp
@@ -124,9 +124,7 @@ void SkMultiPictureDraw::draw(bool flush) {
// we only expect 1 context for all the canvases
SkASSERT(data.fCanvas->getGrContext() == context);
- if (!data.fPaint &&
- (kRGBA_8888_SkColorType == data.fCanvas->imageInfo().colorType() ||
- kBGRA_8888_SkColorType == data.fCanvas->imageInfo().colorType())) {
+ if (!data.fPaint) {
SkRect clipBounds;
if (!data.fCanvas->getClipBounds(&clipBounds)) {
continue;