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

Issue 12213018: Implementation for cc::Picture::IsCheapInRect(). (Closed)

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

Description

Implementation for cc::Picture::IsCheapInRect(). Minimal implementation for cc::Picture::IsCheapInRect() with new classes skia::AnalysisCanvas and skia::AnalysisDevice. Supercedes http://codereview.chromium.org/12184010/. Based on GatherPixelRefs. Not a good implementation yet, but it does seem to count draw calls and is right more often than a stopped clock. I'm not happy with clipping/culling; something is going very wrong there. TBR=nduca,junov,tomhudson CC=skyostil BUG=173426 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181369

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove stale comment #

Total comments: 4

Patch Set 3 : Cleaned up patch and git state #

Patch Set 4 : Respond to junov's comments, add missing SK_API #

Total comments: 10

Patch Set 5 : Respond to skyostil's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -2 lines) Patch
M cc/picture.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M cc/picture.cc View 1 2 3 chunks +13 lines, -2 lines 0 comments Download
A skia/ext/analysis_canvas.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A skia/ext/analysis_canvas.cc View 1 2 3 4 1 chunk +190 lines, -0 lines 0 comments Download
M skia/skia.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
nduca
https://codereview.chromium.org/12213018/diff/1/cc/picture.cc File cc/picture.cc (right): https://codereview.chromium.org/12213018/diff/1/cc/picture.cc#newcode119 cc/picture.cc:119: TRACE_EVENT0("cc", "Picture::IsCheapInRect"); is your git branch mucked up? this ...
7 years, 10 months ago (2013-02-06 08:42:25 UTC) #1
Tom Hudson
On 2013/02/06 08:42:25, nduca wrote: > https://codereview.chromium.org/12213018/diff/1/cc/picture.cc > File cc/picture.cc (right): > > https://codereview.chromium.org/12213018/diff/1/cc/picture.cc#newcode119 > ...
7 years, 10 months ago (2013-02-06 10:58:24 UTC) #2
Tom Hudson
I found my bug: what would need to be passed down from Render to IsCheapInRect ...
7 years, 10 months ago (2013-02-06 13:53:19 UTC) #3
Justin Novosad
Looks like a good foundation for further ramifications. lgtm with minor corrections. https://codereview.chromium.org/12213018/diff/4001/skia/ext/analysis_canvas.cc File skia/ext/analysis_canvas.cc ...
7 years, 10 months ago (2013-02-06 14:08:03 UTC) #4
Tom Hudson
https://codereview.chromium.org/12213018/diff/4001/skia/ext/analysis_canvas.cc File skia/ext/analysis_canvas.cc (right): https://codereview.chromium.org/12213018/diff/4001/skia/ext/analysis_canvas.cc#newcode158 skia/ext/analysis_canvas.cc:158: return SkCanvas::clipRect(rect, op, doAA); On 2013/02/06 14:08:03, junov wrote: ...
7 years, 10 months ago (2013-02-06 17:36:00 UTC) #5
Sami
lgtm with some minor nit-picking. https://codereview.chromium.org/12213018/diff/10001/skia/ext/analysis_canvas.cc File skia/ext/analysis_canvas.cc (right): https://codereview.chromium.org/12213018/diff/10001/skia/ext/analysis_canvas.cc#newcode17 skia/ext/analysis_canvas.cc:17: int gPictureCostThreshold = 1000; ...
7 years, 10 months ago (2013-02-06 17:41:47 UTC) #6
Tom Hudson
https://codereview.chromium.org/12213018/diff/10001/skia/ext/analysis_canvas.cc File skia/ext/analysis_canvas.cc (right): https://codereview.chromium.org/12213018/diff/10001/skia/ext/analysis_canvas.cc#newcode17 skia/ext/analysis_canvas.cc:17: int gPictureCostThreshold = 1000; On 2013/02/06 17:41:47, Sami wrote: ...
7 years, 10 months ago (2013-02-06 17:53:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomhudson@chromium.org/12213018/2002
7 years, 10 months ago (2013-02-06 17:54:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomhudson@chromium.org/12213018/2002
7 years, 10 months ago (2013-02-07 17:08:31 UTC) #9
Tom Hudson
New version will show up in the morning. (I don't know what's wrong with the ...
7 years, 10 months ago (2013-02-07 20:17:23 UTC) #10
commit-bot: I haz the power
7 years, 10 months ago (2013-02-07 22:08:25 UTC) #11
Message was sent while issue was closed.
Change committed as 181369

Powered by Google App Engine
This is Rietveld 408576698