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

Issue 12192025: Add cheapness predictor success histogram (Closed)

Created:
7 years, 10 months ago by vmpstr
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Add cheapness predictor success histogram For picture piles that are fairly cheap to rasterize, we want to do the step on the same thread (instead of dispatching it to a different thread). As a first step, this change adds an accuracy metric for the predictor. Three new histograms are added: CheapPredictorAccuracy measures overall success rate of the predictor; CheapPredictorSafelyWrong counts the number of times the prediction was "this is a slow raster", but in reality it was fast; CheapPredictorBadlyWrong counts the number of times the prediction was "this is a fast raster", but in reality it was slow. BUG=173426 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180863

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add directionality to histograms #

Patch Set 3 : Removed cl 12194015 change from diff #

Total comments: 7

Patch Set 4 : Updated style, changed histograms #

Patch Set 5 : Rebased the change on top of (partial) 12194015 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -19 lines) Patch
M cc/layer_tree_host_impl.cc View 1 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/picture_pile_impl.h View 1 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/picture_pile_impl.cc View 1 3 4 1 chunk +24 lines, -0 lines 1 comment Download
M cc/test/fake_picture_layer_tiling_client.cc View 1 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/tile_manager.h View 1 2 3 4 4 chunks +14 lines, -2 lines 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 8 chunks +64 lines, -15 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
vmpstr
7 years, 10 months ago (2013-02-04 22:20:30 UTC) #1
brianderson
Would it makes sense to have to accuracy measurements, one for when we predict a ...
7 years, 10 months ago (2013-02-04 22:51:02 UTC) #2
nduca
+1 to directionality https://codereview.chromium.org/12192025/diff/1/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12192025/diff/1/cc/tile_manager.cc#newcode800 cc/tile_manager.cc:800: base::TimeTicks end_time = base::TimeTicks::Now(); now that ...
7 years, 10 months ago (2013-02-04 23:16:52 UTC) #3
vmpstr
On 2013/02/04 23:16:52, nduca wrote: > +1 to directionality > > https://codereview.chromium.org/12192025/diff/1/cc/tile_manager.cc > File cc/tile_manager.cc ...
7 years, 10 months ago (2013-02-04 23:32:44 UTC) #4
vmpstr
Added IsCheap/IsNotCheap histograms. ptal
7 years, 10 months ago (2013-02-05 00:10:58 UTC) #5
nduca
https://codereview.chromium.org/12192025/diff/2002/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12192025/diff/2002/cc/tile_manager.cc#newcode811 cc/tile_manager.cc:811: picture_pile->IsCheapInRect (rect, contents_scale), might pull out the calculation into ...
7 years, 10 months ago (2013-02-05 00:22:25 UTC) #6
vmpstr
On 2013/02/05 00:22:25, nduca wrote: > https://codereview.chromium.org/12192025/diff/2002/cc/tile_manager.cc > File cc/tile_manager.cc (right): > > https://codereview.chromium.org/12192025/diff/2002/cc/tile_manager.cc#newcode811 > ...
7 years, 10 months ago (2013-02-05 17:51:59 UTC) #7
nduca
lgtm nice
7 years, 10 months ago (2013-02-05 20:02:33 UTC) #8
vmpstr
I'd appreciate another look at this. I rebased on the latest patch from 12194015. The ...
7 years, 10 months ago (2013-02-05 22:34:57 UTC) #9
nduca
still lgtm
7 years, 10 months ago (2013-02-05 22:45:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/12192025/16001
7 years, 10 months ago (2013-02-05 22:53:49 UTC) #11
commit-bot: I haz the power
Change committed as 180863
7 years, 10 months ago (2013-02-06 02:14:00 UTC) #12
Tom Hudson
https://codereview.chromium.org/12192025/diff/16001/cc/picture_pile_impl.cc File cc/picture_pile_impl.cc (right): https://codereview.chromium.org/12192025/diff/16001/cc/picture_pile_impl.cc#newcode188 cc/picture_pile_impl.cc:188: if (!(*i)->IsCheapInRect(layer_rect)) This layer_rect is the content_rect, inverse scaled ...
7 years, 10 months ago (2013-02-06 12:24:57 UTC) #13
vmpstr
7 years, 10 months ago (2013-02-06 17:41:03 UTC) #14
Message was sent while issue was closed.
On 2013/02/06 12:24:57, Tom Hudson wrote:
> https://codereview.chromium.org/12192025/diff/16001/cc/picture_pile_impl.cc
> File cc/picture_pile_impl.cc (right):
> 
>
https://codereview.chromium.org/12192025/diff/16001/cc/picture_pile_impl.cc#n...
> cc/picture_pile_impl.cc:188: if (!(*i)->IsCheapInRect(layer_rect))
> This layer_rect is the content_rect, inverse scaled by contents_scale.
> 
> The Picture in the iterator also has a layer_rect_, which often seems to be
the
> same in practice (and you check to make sure they intersect).
> 
> Shouldn't we be worried about the tile bounds somewhere?

PicturePileImpl::IsCheapInRect is actually from
https://codereview.chromium.org/12194015 patch set 6; This change was just made
on top of it. The implementation follows GatherPixelRefs/Raster logic in how it
deals with content_rect/layer_rect, so I think its OK?

Powered by Google App Engine
This is Rietveld 408576698