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

Issue 108040: Send array of paint rects and bitmaps as opposed to a Union (Closed)

Created:
11 years, 7 months ago by MAD
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

To help resolve the performance issue introduced when enabling the resize corner, we now keep all non-intersecting rects separately and send an array of invalidation bitmaps via IPC as opposed to a single unionized rect :-) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18090

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 24

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Total comments: 39

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Total comments: 8

Patch Set 22 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -117 lines) Patch
M chrome/browser/renderer_host/backing_store.h View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/backing_store.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/backing_store_mac.cc View 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/backing_store_win.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +31 lines, -10 lines 2 comments Download
M chrome/browser/renderer_host/backing_store_x.cc View 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +78 lines, -39 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +72 lines, -17 lines 2 comments Download
M chrome/browser/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/renderer/render_widget.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 chunks +145 lines, -30 lines 0 comments Download
M skia/ext/bitmap_platform_device_mac.cc View 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
MAD
Salut, please review this sensitive change about drawing invalidations using multiple sub-rects from a single, ...
11 years, 7 months ago (2009-05-21 16:08:07 UTC) #1
Amanda Walker
Mac related changes LGTM.
11 years, 7 months ago (2009-05-21 16:22:09 UTC) #2
darin (slow to review)
just some initial feedback... http://codereview.chromium.org/108040/diff/2129/3116 File chrome/renderer/render_widget.cc (right): http://codereview.chromium.org/108040/diff/2129/3116#newcode60 Line 60: rect = rect.Union(*it); what ...
11 years, 7 months ago (2009-05-21 17:03:06 UTC) #3
MAD
On top of answers to Darin's comment, I have some additional stuff coming up. I ...
11 years, 7 months ago (2009-05-21 17:15:49 UTC) #4
darin (slow to review)
i'm not sure what a good limit should be on the number of rects. can ...
11 years, 7 months ago (2009-05-21 17:33:17 UTC) #5
MAD
quick answers to Darin's last comments... http://codereview.chromium.org/108040/diff/2129/3116 File chrome/renderer/render_widget.cc (right): http://codereview.chromium.org/108040/diff/2129/3116#newcode60 Line 60: rect = ...
11 years, 7 months ago (2009-05-21 17:40:17 UTC) #6
agl
Just looking at the Linux bits: http://codereview.chromium.org/108040/diff/2129/3121 File chrome/browser/renderer_host/backing_store_x.cc (right): http://codereview.chromium.org/108040/diff/2129/3121#newcode80 Line 80: const gfx::Rect ...
11 years, 7 months ago (2009-05-21 22:31:20 UTC) #7
MAD
Some changes done, some answers to question... Still looking at the numbers trying to find ...
11 years, 7 months ago (2009-05-22 14:25:42 UTC) #8
agl
Linux code: LGTM http://codereview.chromium.org/108040/diff/2129/3121 File chrome/browser/renderer_host/backing_store_x.cc (right): http://codereview.chromium.org/108040/diff/2129/3121#newcode102 Line 102: const int x_offset = paint_rect.x() ...
11 years, 7 months ago (2009-05-22 16:28:37 UTC) #9
agl
http://codereview.chromium.org/108040/diff/2129/3121 File chrome/browser/renderer_host/backing_store_x.cc (right): http://codereview.chromium.org/108040/diff/2129/3121#newcode102 Line 102: const int x_offset = paint_rect.x() - bitmap_rect.x(); Of ...
11 years, 7 months ago (2009-05-22 16:55:46 UTC) #10
MAD
Made some changes to the linux code as requested by agl and also put a ...
11 years, 7 months ago (2009-05-25 21:00:24 UTC) #11
MAD
Ping? BYE MAD
11 years, 7 months ago (2009-05-28 15:53:10 UTC) #12
darin (slow to review)
more feedback. really sorry for the slow turnaround time. http://codereview.chromium.org/108040/diff/3192/2201 File chrome/browser/renderer_host/backing_store.h (right): http://codereview.chromium.org/108040/diff/3192/2201#newcode69 Line ...
11 years, 7 months ago (2009-05-29 00:10:36 UTC) #13
MAD
Salut again, Answers to questions from Darin as well as fixes as suggested... I also ...
11 years, 6 months ago (2009-05-29 19:49:47 UTC) #14
darin (slow to review)
http://codereview.chromium.org/108040/diff/3192/2194 File chrome/browser/renderer_host/render_widget_host.cc (right): http://codereview.chromium.org/108040/diff/3192/2194#newcode713 Line 713: BackingStoreManager::PrepareBackingStore(this, view_size, suppose the view_size is 2x2. suppose ...
11 years, 6 months ago (2009-05-30 16:43:44 UTC) #15
darin (slow to review)
http://codereview.chromium.org/108040/diff/3192/2198 File chrome/renderer/render_widget.cc (right): http://codereview.chromium.org/108040/diff/3192/2198#newcode44 Line 44: bool IsDamagedRectBigEnough(const gfx::Size& min_size) const { Ah, yeah... ...
11 years, 6 months ago (2009-05-30 16:49:54 UTC) #16
MAD
This covers the most recent comments from Darin, and while testing them, I stumbled on ...
11 years, 6 months ago (2009-06-01 21:21:37 UTC) #17
darin (slow to review)
Thanks for dealing with the complete coverage case. I don't know how often we will ...
11 years, 6 months ago (2009-06-02 16:52:53 UTC) #18
MAD
There you go... Thanks! BYE MAD http://codereview.chromium.org/108040/diff/3255/3258 File chrome/browser/renderer_host/backing_store_win.cc (right): http://codereview.chromium.org/108040/diff/3255/3258#newcode88 Line 88: y_destination = ...
11 years, 6 months ago (2009-06-02 21:12:29 UTC) #19
MAD
Ping? Thanks! BYE MAD
11 years, 6 months ago (2009-06-05 20:26:56 UTC) #20
MAD
Re-Ping? BYE MAD
11 years, 6 months ago (2009-06-10 16:17:46 UTC) #21
darin (slow to review)
Looks good to me. Final nits: http://codereview.chromium.org/108040/diff/5003/4004 File chrome/browser/renderer_host/backing_store_win.cc (right): http://codereview.chromium.org/108040/diff/5003/4004#newcode89 Line 89: // so ...
11 years, 6 months ago (2009-06-10 17:23:24 UTC) #22
MAD
Cool... I resolved a few merge conflicts as well as these changes and am now ...
11 years, 6 months ago (2009-06-10 19:00:13 UTC) #23
darin (slow to review)
11 years, 6 months ago (2009-06-10 19:42:45 UTC) #24
LGTM

Powered by Google App Engine
This is Rietveld 408576698