Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(244)

Issue 7387045: Collapse saveLayer/drawBitmapRect/restore trios to drawBitmapRect when possible (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by robertphillips
Modified:
11 years, 8 months ago
Reviewers:
DerekS, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This moves one of the optimizations in https://codereview.appspot.com/7294049/ from the filter tool to SkPictureRecord. This optimization removes saveLayer/restore from the opcode stream when a saveLayer/drawbitmaprect/restore trio is seen and the saveLayer's paint can be folded into the drawBitmapRect's paint. The results are roughly the same as in the filter case: Executing desk_gmailthread.skp 13 Executing tabl_onlinewsj.skp 12 Executing tabl_ukwsj.skp 12 tabl_ukwsj.skp tile_256x256_gpu c 40.14 39.44 +0.70 +1.7% desk_gmailthread.skp tile_256x256_gpu c 12.47 12.20 +0.27 +2.2% tabl_onlinewsj.skp tile_256x256_gpu c 47.00 44.95 +2.05 +4.4% desk_gmailthread.skp tile_256x256 c 4.98 4.94 +0.04 +0.8% tabl_onlinewsj.skp tile_256x256 c 26.46 26.03 +0.43 +1.6% tabl_ukwsj.skp tile_256x256 c 23.99 23.56 +0.43 +1.8%

Patch Set 1 #

Patch Set 2 : patch #

Patch Set 3 : Fix Mac compiler complaint #

Total comments: 10

Patch Set 4 : Addressed code review issues #

Patch Set 5 : Disable optimization when saveLayer has bounds #

Patch Set 6 : Fix signed/unsigned compiler warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -8 lines) Patch
M src/core/SkPictureFlat.h View 1 2 3 4 3 chunks +27 lines, -3 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 21 chunks +228 lines, -5 lines 0 comments Download

Messages

Total messages: 8
robertphillips
11 years, 8 months ago (2013-02-22 15:59:23 UTC) #1
reed1
Can you illuminate the checkin desc with the specifics of this change?
11 years, 8 months ago (2013-02-22 16:06:08 UTC) #2
robertphillips
Updated description
11 years, 8 months ago (2013-02-25 13:58:08 UTC) #3
reed1
sure suggestive of wanting to formalize a table of peekholes, moving them into a separate ...
11 years, 8 months ago (2013-02-25 14:48:34 UTC) #4
robertphillips
I have taken these follow-on TODOs: Update SkPictureFlat to have array mapping from id to ...
11 years, 8 months ago (2013-02-27 18:05:06 UTC) #5
reed1
lgtm
11 years, 8 months ago (2013-02-27 18:52:06 UTC) #6
robertphillips
committed as r7916
11 years, 8 months ago (2013-03-01 14:13:17 UTC) #7
robertphillips
11 years, 8 months ago (2013-03-01 19:44:46 UTC) #8
Message was sent while issue was closed.
Relanded as 7931
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b