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

Issue 9854012: Close the screenshot flash effect before the screenshot task is actually executed. (Closed)

Created:
8 years, 9 months ago by Jun Mukai
Modified:
8 years, 9 months ago
Reviewers:
Daniel Erat, piman
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, ben+watch_chromium.org, Yusuke Sato, mazda
Visibility:
Public.

Description

Close the screenshot flash effect before the screenshot task is actually executed. The screenshot task takes time so the flash could be noticeably long. BUG=120092 TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128925 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=129442

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix comment #

Total comments: 2

Patch Set 3 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M chrome/browser/ui/views/ash/screenshot_taker.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Jun Mukai
8 years, 9 months ago (2012-03-26 04:45:21 UTC) #1
Daniel Erat
I forget already, what was the reason for making the flash happen before the screenshot ...
8 years, 9 months ago (2012-03-26 13:15:32 UTC) #2
Jun Mukai
See crbug.com/119492 for the reason of order change: visual feedback -> actual screenshot task. The ...
8 years, 9 months ago (2012-03-26 14:27:12 UTC) #3
Daniel Erat
LGTM Hmm, so this means that we can sometimes block the UI thread for 600 ...
8 years, 9 months ago (2012-03-26 14:49:14 UTC) #4
Jun Mukai
Added piman to Cc just in case. > Hmm, so this means that we can ...
8 years, 9 months ago (2012-03-26 15:09:30 UTC) #5
piman
I sincerely lack the context. At some point we may indeed want to move the ...
8 years, 9 months ago (2012-03-26 16:49:56 UTC) #6
Daniel Erat
On 2012/03/26 16:49:56, piman wrote: > I sincerely lack the context. > At some point ...
8 years, 9 months ago (2012-03-26 16:53:19 UTC) #7
piman
8 years, 9 months ago (2012-03-26 16:54:29 UTC) #8
On 2012/03/26 16:53:19, Daniel Erat wrote:
> On 2012/03/26 16:49:56, piman wrote:
> > I sincerely lack the context.
> > At some point we may indeed want to move the compositor off the main thread.
> > What is the concern about this particular patch?
> 
> That with the approach used here (to display visual feedback in response to a
> screenshot being taken, create a layer, hide it slightly later, and then post
a
> task to actually capture the screen), the layer could end up obscuring the
> screenshot.  I think that this change is dependent on the compositor drawing a
> frame between the layer being destroyed and the screenshot-taking task being
> run.

Well that could happen with or without the compositor thread.

Powered by Google App Engine
This is Rietveld 408576698