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

Issue 10349013: Prevent browser thumbnailer from trying to read from frontbuffer (surface texture) when none exists. (Closed)

Created:
8 years, 7 months ago by mmocny
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, yusukes+watch_chromium.org, brettw-cc_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, James Su
Visibility:
Public.

Description

Prevent browser thumbnailer from trying to read from frontbuffer (surface texture) when none exists. BUG=123817, 129410 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139089

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixing unittests and adding one EXPECT clause. #

Total comments: 3

Patch Set 3 : Providing implementations for the other platforms #

Total comments: 2

Patch Set 4 : Added check for backing store. #

Patch Set 5 : Renaming HasSurface to IsSurfaceAvailableForCopy #

Total comments: 3

Patch Set 6 : Removing test for surface from ShouldUpdateThumbnail function. #

Patch Set 7 : Just rebasing. #

Patch Set 8 : DCHECK protection against segfault. #

Total comments: 2

Patch Set 9 : Replacing DCHECK with early exit. #

Patch Set 10 : rebase for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
M chrome/browser/tab_contents/thumbnail_generator.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/render_widget_host_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
mmocny
This patch adds another condition to "ShouldUpdateThumbnail()" to check if we even have a frontbuffer ...
8 years, 7 months ago (2012-05-03 19:15:35 UTC) #1
mmocny
https://chromiumcodereview.appspot.com/10349013/diff/6001/content/public/browser/render_widget_host_view.h File content/public/browser/render_widget_host_view.h (right): https://chromiumcodereview.appspot.com/10349013/diff/6001/content/public/browser/render_widget_host_view.h#newcode86 content/public/browser/render_widget_host_view.h:86: virtual bool HasSurface() const = 0; This name is ...
8 years, 7 months ago (2012-05-03 19:46:07 UTC) #2
mazda
http://codereview.chromium.org/10349013/diff/1/chrome/browser/tab_contents/thumbnail_generator.cc File chrome/browser/tab_contents/thumbnail_generator.cc (right): http://codereview.chromium.org/10349013/diff/1/chrome/browser/tab_contents/thumbnail_generator.cc#newcode584 chrome/browser/tab_contents/thumbnail_generator.cc:584: Profile::FromBrowserContext(web_contents->GetBrowserContext()); NULL check for profile is needed. http://codereview.chromium.org/10349013/diff/1/chrome/browser/tab_contents/thumbnail_generator.cc#newcode585 chrome/browser/tab_contents/thumbnail_generator.cc:585: ...
8 years, 7 months ago (2012-05-03 19:57:30 UTC) #3
mmocny
Some of the comments you made for the ShouldUpdateThumbnail function were reverted back to the ...
8 years, 7 months ago (2012-05-03 20:05:41 UTC) #4
mazda
http://codereview.chromium.org/10349013/diff/6001/content/public/browser/render_widget_host_view.h File content/public/browser/render_widget_host_view.h (right): http://codereview.chromium.org/10349013/diff/6001/content/public/browser/render_widget_host_view.h#newcode86 content/public/browser/render_widget_host_view.h:86: virtual bool HasSurface() const = 0; On 2012/05/03 19:46:08, ...
8 years, 7 months ago (2012-05-03 20:19:33 UTC) #5
mmocny
On 2012/05/03 20:19:33, mazda wrote: > http://codereview.chromium.org/10349013/diff/6001/content/public/browser/render_widget_host_view.h > File content/public/browser/render_widget_host_view.h (right): > > http://codereview.chromium.org/10349013/diff/6001/content/public/browser/render_widget_host_view.h#newcode86 > ...
8 years, 7 months ago (2012-05-03 20:51:28 UTC) #6
mazda
http://codereview.chromium.org/10349013/diff/6001/content/public/browser/render_widget_host_view.h File content/public/browser/render_widget_host_view.h (right): http://codereview.chromium.org/10349013/diff/6001/content/public/browser/render_widget_host_view.h#newcode86 content/public/browser/render_widget_host_view.h:86: virtual bool HasSurface() const = 0; On 2012/05/03 20:19:33, ...
8 years, 7 months ago (2012-05-04 22:20:31 UTC) #7
mmocny
http://codereview.chromium.org/10349013/diff/16001/chrome/browser/tab_contents/thumbnail_generator.cc File chrome/browser/tab_contents/thumbnail_generator.cc (right): http://codereview.chromium.org/10349013/diff/16001/chrome/browser/tab_contents/thumbnail_generator.cc#newcode508 chrome/browser/tab_contents/thumbnail_generator.cc:508: if (!ShouldUpdateThumbnail(profile, top_sites, url, surface_available)) Yes, it is certainly ...
8 years, 7 months ago (2012-05-07 13:28:22 UTC) #8
mazda
http://codereview.chromium.org/10349013/diff/16001/chrome/browser/tab_contents/thumbnail_generator.cc File chrome/browser/tab_contents/thumbnail_generator.cc (right): http://codereview.chromium.org/10349013/diff/16001/chrome/browser/tab_contents/thumbnail_generator.cc#newcode508 chrome/browser/tab_contents/thumbnail_generator.cc:508: if (!ShouldUpdateThumbnail(profile, top_sites, url, surface_available)) On 2012/05/07 13:28:23, mmocny ...
8 years, 7 months ago (2012-05-07 16:37:19 UTC) #9
mmocny
mazda: Can I confirm that the win/mac accelerated CopyFromCompositingSurface path is not asynchronous? It appears ...
8 years, 7 months ago (2012-05-23 14:07:26 UTC) #10
mmocny
Reviewers may you please take a look? brettw: You seem to have been reviewing the ...
8 years, 7 months ago (2012-05-23 15:08:52 UTC) #11
sky
chrome LGTM
8 years, 7 months ago (2012-05-23 15:28:43 UTC) #12
mazda
lgtm > mazda: Can I confirm that the win/mac accelerated CopyFromCompositingSurface path is not asynchronous? ...
8 years, 7 months ago (2012-05-23 16:04:06 UTC) #13
piman
On Wed, May 23, 2012 at 7:07 AM, <mmocny@chromium.org> wrote: > mazda: Can I confirm ...
8 years, 7 months ago (2012-05-23 17:38:54 UTC) #14
mmocny
On 2012/05/23 17:38:54, piman wrote: > On Wed, May 23, 2012 at 7:07 AM, <mailto:mmocny@chromium.org> ...
8 years, 7 months ago (2012-05-23 18:05:12 UTC) #15
mmocny
Just found a segfault in tip that is fixed by this patch (https://code.google.com/p/chromium/issues/detail?id=129410). We may ...
8 years, 7 months ago (2012-05-23 19:00:34 UTC) #16
mazda
http://codereview.chromium.org/10349013/diff/34001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/10349013/diff/34001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode456 content/browser/renderer_host/render_widget_host_view_aura.cc:456: image_transport_clients_.end()); When this condition holds, |container| is initialized with ...
8 years, 7 months ago (2012-05-23 20:06:23 UTC) #17
mmocny
http://codereview.chromium.org/10349013/diff/34001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/10349013/diff/34001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode456 content/browser/renderer_host/render_widget_host_view_aura.cc:456: image_transport_clients_.end()); You are right. The issue was that we ...
8 years, 7 months ago (2012-05-23 20:28:30 UTC) #18
brettw
thumbnail_generator LGTM
8 years, 7 months ago (2012-05-25 17:34:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmocny@chromium.org/10349013/38001
8 years, 7 months ago (2012-05-25 17:34:56 UTC) #20
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_view_aura.cc: While running patch -p1 --forward --force; patching file content/browser/renderer_host/render_widget_host_view_aura.cc ...
8 years, 7 months ago (2012-05-25 17:35:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmocny@chromium.org/10349013/42002
8 years, 7 months ago (2012-05-25 17:52:43 UTC) #22
commit-bot: I haz the power
8 years, 7 months ago (2012-05-25 19:09:37 UTC) #23
Change committed as 139089

Powered by Google App Engine
This is Rietveld 408576698