Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Issue 183763047: Add notifyPixelsChanged() to inner loop of BitmapScaleBench. (Closed)

Created:
6 years, 9 months ago by Tom Hudson
Modified:
6 years, 9 months ago
Reviewers:
humper, scroggo, reed1, tomhudson
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Adding this call simulates seeing a *different* bitmap every time we scale, which changes the code path (places much heavier load on constructing a new filter). This better emulates the kind of environment most embedders see us in, where they try to cache a scaled bitmap rather than frequently rescaling it. This change will cause significant regressions in microbenchmark scores. BUG=skia:2236 R=humper@google.com,reed@google.com,scroggo@google.com Committed: http://code.google.com/p/skia/source/detail?r=13685

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M bench/BitmapScaleBench.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tomhudson
Ready for argument.
6 years, 9 months ago (2014-03-06 12:20:30 UTC) #1
tomhudson
Since Skia now automatically caches scaled bitmaps, this benchmark wasn't measuring much of what it ...
6 years, 9 months ago (2014-03-06 14:55:33 UTC) #2
humper
On 2014/03/06 12:20:30, tomhudson wrote: > Ready for argument. It looks like a cheaper way ...
6 years, 9 months ago (2014-03-06 14:58:00 UTC) #3
tomhudson
Greg's right, notifyPixelsChanged() triggers the proper behavior without any apparent overhead. PTAL?
6 years, 9 months ago (2014-03-06 15:46:37 UTC) #4
reed1
that seems as cheap as I can imagine. Is that effectively what chrome has to ...
6 years, 9 months ago (2014-03-06 15:53:58 UTC) #5
scroggo
lgtm
6 years, 9 months ago (2014-03-06 15:55:55 UTC) #6
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 9 months ago (2014-03-06 16:00:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/183763047/20001
6 years, 9 months ago (2014-03-06 16:00:48 UTC) #8
tomhudson
On 2014/03/06 15:53:58, reed1 wrote: > that seems as cheap as I can imagine. Is ...
6 years, 9 months ago (2014-03-06 16:20:06 UTC) #9
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 17:16:38 UTC) #10
Message was sent while issue was closed.
Change committed as 13685

Powered by Google App Engine
This is Rietveld 408576698