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

Issue 61403003: Limit pixels that get cleared to repaint area. (Closed)

Created:
7 years, 1 month ago by Vangelis Kokkevis
Modified:
7 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Limit pixels that get cleared to repaint area. Since we now keep the canvas around in the ContentLayerUpdater, we often end up getting small invalidations that paint on a large canvas. In those cases, instead of clearing the entire canvas to transparent, clear only the portion that will be repainted. BUG=313494 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233539

Patch Set 1 #

Total comments: 2

Patch Set 2 : Variable name fix #

Patch Set 3 : Simplify the code by always clearing with drawColor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M cc/resources/content_layer_updater.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Vangelis Kokkevis
Enne, can you please take a look?
7 years, 1 month ago (2013-11-06 01:32:36 UTC) #1
enne (OOO)
lgtm. 80% seems pretty reasonable here. +reed FYI for any thoughts from the Skia side ...
7 years, 1 month ago (2013-11-06 01:59:45 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vangelis@chromium.org/61403003/60001
7 years, 1 month ago (2013-11-06 02:07:01 UTC) #3
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94526
7 years, 1 month ago (2013-11-06 06:23:01 UTC) #4
reed1
Since you *always* set a clip, why not always call drawColor (which respects the clip) ...
7 years, 1 month ago (2013-11-06 14:57:04 UTC) #5
vangelis
On 2013/11/06 14:57:04, reed1 wrote: > Since you *always* set a clip, why not always ...
7 years, 1 month ago (2013-11-06 16:35:53 UTC) #6
reed1
On 2013/11/06 16:35:53, vangelis wrote: > On 2013/11/06 14:57:04, reed1 wrote: > > Since you ...
7 years, 1 month ago (2013-11-06 16:38:36 UTC) #7
reed1
7 years, 1 month ago (2013-11-06 16:38:48 UTC) #8
Tom Hudson
On 2013/11/06 16:38:36, reed1 wrote: > On 2013/11/06 16:35:53, vangelis wrote: > > On 2013/11/06 ...
7 years, 1 month ago (2013-11-06 16:44:38 UTC) #9
reed1
7 years, 1 month ago (2013-11-06 16:45:54 UTC) #10
robertphillips
I don't think this use case will arise for the GPU. When SW rendering, the ...
7 years, 1 month ago (2013-11-06 19:55:03 UTC) #11
Vangelis Kokkevis
Thanks folks. Based on the the feedback and my own measurements on my Z620 (which ...
7 years, 1 month ago (2013-11-07 01:46:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vangelis@chromium.org/61403003/360001
7 years, 1 month ago (2013-11-07 01:56:45 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 08:02:05 UTC) #14
Message was sent while issue was closed.
Change committed as 233539

Powered by Google App Engine
This is Rietveld 408576698