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

Issue 10965048: [BrowserTag] Send dib info with NavigateGuest message, (Closed)

Created:
8 years, 3 months ago by lazyboy
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

[BrowserTag] Send dib info with NavigateGuest message, This would fix guest painting in: set no src + resize + navigate to src case. Without this change, for the scenario above, we don't get any dib at all from embedder upon setting the non-empty src. Now we also ship dib on NavigateGuest if necessary. This dib is the last accumulated dib from updateGeometry(). Note that our unit test exercises this case, but doesn't look for correct painting, it only expects UpdateRect to be called with correct size. I've updated the test now to look for correct sized damage buffer instead. BUG=151948 TEST= Create an empty src guest and keep changing its size in SetInterval from the embedder, then in the middle set a non-empty src. Observed that guest paints correctly with final size. Updated unit test to look for damage buffer with correct size instead of looking for UpdateRect with correct size. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159404

Patch Set 1 #

Patch Set 2 : Unit test now checks for damage_buffer to be of correct size. #

Total comments: 6

Patch Set 3 : Address CL comments; fix resize_pending_ flag setting in browser_plugin.cc #

Total comments: 2

Patch Set 4 : Address comments from Fady + remove commented code. #

Total comments: 7

Patch Set 5 : Address comments. #

Patch Set 6 : sync @r158676 #

Patch Set 7 : Update BrowserPluginTest after sync. #

Patch Set 8 : Fix windows + mac failures. #

Patch Set 9 : Fix windows damage buffer creation code, thanks for fsamuel@ #

Patch Set 10 : Sync #

Patch Set 11 : Fix incorrect merge in browser_plugin_messages.h #

Patch Set 12 : Fix OSX (this CL exposes this): manage transport dibs on mac ourselves, instead of letting browser … #

Total comments: 2

Patch Set 13 : Address comments from fsamuel@, also add comments why we need to pass handle for mac. #

Patch Set 14 : Fix typo #

Patch Set 15 : Mac fix renderer side content_browsertests; use mocked versions of transport dib for tests + clean … #

Total comments: 4

Patch Set 16 : Address comments #

Patch Set 17 : Sync @tott, correct rebase, bring back two lost comments from previous rounds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -222 lines) Patch
M content/browser/browser_plugin/browser_plugin_embedder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +17 lines, -14 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +57 lines, -20 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -37 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -7 lines 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest.h View 1 4 chunks +20 lines, -13 lines 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest.cc View 1 2 6 chunks +38 lines, -44 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -4 lines 0 comments Download
M content/common/browser_plugin_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +25 lines, -20 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +97 lines, -45 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/browser_plugin/mock_browser_plugin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/mock_browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
lazyboy
Hey Fady, Couple things: 1. It is possible I've missed taking scale_factor into account in ...
8 years, 3 months ago (2012-09-21 22:52:15 UTC) #1
Fady Samuel
On 2012/09/21 22:52:15, lazyboy wrote: > Hey Fady, > Couple things: > 1. It is ...
8 years, 3 months ago (2012-09-21 23:01:19 UTC) #2
lazyboy
I have modified unit test to check for damage buffer with correct size. Verified the ...
8 years, 3 months ago (2012-09-24 21:32:44 UTC) #3
Fady Samuel
http://codereview.chromium.org/10965048/diff/6008/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): http://codereview.chromium.org/10965048/diff/6008/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode155 content/browser/browser_plugin/browser_plugin_embedder.cc:155: TransportDIB* damage_buffer = NULL; This makes this method a ...
8 years, 3 months ago (2012-09-24 22:16:58 UTC) #4
lazyboy
https://chromiumcodereview.appspot.com/10965048/diff/6008/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://chromiumcodereview.appspot.com/10965048/diff/6008/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode155 content/browser/browser_plugin/browser_plugin_embedder.cc:155: TransportDIB* damage_buffer = NULL; On 2012/09/24 22:16:58, Fady Samuel ...
8 years, 2 months ago (2012-09-25 17:57:22 UTC) #5
Fady Samuel
LGTM with a minor nit. Please have Charlie OWNER review this. https://chromiumcodereview.appspot.com/10965048/diff/12001/content/browser/browser_plugin/browser_plugin_embedder.h File content/browser/browser_plugin/browser_plugin_embedder.h (right): ...
8 years, 2 months ago (2012-09-25 18:02:01 UTC) #6
lazyboy
Added Charlie for reviewing. On 2012/09/25 18:02:01, Fady Samuel wrote: > LGTM with a minor ...
8 years, 2 months ago (2012-09-25 18:47:03 UTC) #7
lazyboy
https://chromiumcodereview.appspot.com/10965048/diff/12001/content/browser/browser_plugin/browser_plugin_embedder.h File content/browser/browser_plugin/browser_plugin_embedder.h (right): https://chromiumcodereview.appspot.com/10965048/diff/12001/content/browser/browser_plugin/browser_plugin_embedder.h#newcode31 content/browser/browser_plugin/browser_plugin_embedder.h:31: class TransportDIB; On 2012/09/25 18:02:01, Fady Samuel wrote: > ...
8 years, 2 months ago (2012-09-25 18:47:13 UTC) #8
Charlie Reis
Seems good overall, though I admit that I don't know much about things like damage ...
8 years, 2 months ago (2012-09-25 22:44:24 UTC) #9
Fady Samuel
https://chromiumcodereview.appspot.com/10965048/diff/17002/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://chromiumcodereview.appspot.com/10965048/diff/17002/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode139 content/browser/browser_plugin/browser_plugin_embedder.cc:139: // too long. On 2012/09/25 22:44:24, creis wrote: > ...
8 years, 2 months ago (2012-09-25 22:49:38 UTC) #10
lazyboy
https://chromiumcodereview.appspot.com/10965048/diff/17002/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://chromiumcodereview.appspot.com/10965048/diff/17002/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode139 content/browser/browser_plugin/browser_plugin_embedder.cc:139: // too long. Removed the TODO. On 2012/09/25 22:49:38, ...
8 years, 2 months ago (2012-09-25 23:15:29 UTC) #11
Charlie Reis
Thanks, LGTM.
8 years, 2 months ago (2012-09-25 23:24:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/10965048/16003
8 years, 2 months ago (2012-09-26 01:45:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/10965048/10005
8 years, 2 months ago (2012-09-26 01:58:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/10965048/14009
8 years, 2 months ago (2012-09-26 03:37:53 UTC) #15
commit-bot: I haz the power
Retried try job too often for step(s) content_browsertests
8 years, 2 months ago (2012-09-26 05:16:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/10965048/8032
8 years, 2 months ago (2012-09-28 04:14:20 UTC) #17
commit-bot: I haz the power
Retried try job too often for step(s) content_browsertests
8 years, 2 months ago (2012-09-28 05:47:07 UTC) #18
lazyboy
Fady, can you take a look at the recent changes to fix OSX transport dib ...
8 years, 2 months ago (2012-09-28 18:21:09 UTC) #19
Fady Samuel
LGTM with one nit: Please add a comment. Thanks for fixing all these nasty platform-specific ...
8 years, 2 months ago (2012-09-28 18:31:46 UTC) #20
lazyboy
https://chromiumcodereview.appspot.com/10965048/diff/20006/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://chromiumcodereview.appspot.com/10965048/diff/20006/content/renderer/browser_plugin/browser_plugin.cc#newcode487 content/renderer/browser_plugin/browser_plugin.cc:487: delete damage_buffer_; On 2012/09/28 18:31:46, Fady Samuel wrote: > ...
8 years, 2 months ago (2012-09-28 19:05:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/10965048/15029
8 years, 2 months ago (2012-09-28 20:02:39 UTC) #22
commit-bot: I haz the power
Retried try job too often for step(s) content_browsertests
8 years, 2 months ago (2012-09-28 21:25:14 UTC) #23
lazyboy
On 2012/09/28 21:25:14, I haz the power (commit-bot) wrote: > Retried try job too often ...
8 years, 2 months ago (2012-09-28 23:35:46 UTC) #24
Fady Samuel
LGTM with nits. http://codereview.chromium.org/10965048/diff/9023/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): http://codereview.chromium.org/10965048/diff/9023/content/renderer/browser_plugin/browser_plugin.cc#newcode465 content/renderer/browser_plugin/browser_plugin.cc:465: if (damage_buffer_) { No need for ...
8 years, 2 months ago (2012-09-28 23:46:48 UTC) #25
lazyboy
Thanks for checking during late evening! https://chromiumcodereview.appspot.com/10965048/diff/9023/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://chromiumcodereview.appspot.com/10965048/diff/9023/content/renderer/browser_plugin/browser_plugin.cc#newcode465 content/renderer/browser_plugin/browser_plugin.cc:465: if (damage_buffer_) { ...
8 years, 2 months ago (2012-09-29 00:50:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/10965048/26003
8 years, 2 months ago (2012-09-29 00:54:41 UTC) #27
commit-bot: I haz the power
8 years, 2 months ago (2012-09-29 14:14:12 UTC) #28
Change committed as 159404

Powered by Google App Engine
This is Rietveld 408576698