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

Issue 417343003: Don't capture screenshots for in-page navigations. (Closed)

Created:
6 years, 5 months ago by mfomitchev
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Don't capture screenshots for in-page navigations. This is an optimization to speed up in-page navigations. We want those to be blazingly fast, and currently the pixel readback done while taking a screenshot takes 40ms on a GPU on Pixel. This may be reverted once screenshotting is optimizaed. Also changed the background color shown bu GestureNav when there is no screenshot available from gray to white to make it look less broken. BUG=379983 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285797

Patch Set 1 #

Patch Set 2 : Whitepace #

Total comments: 14

Patch Set 3 : Addressing review feedback. #

Patch Set 4 : Addressing review feedback. #

Total comments: 1

Patch Set 5 : Fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -34 lines) Patch
M content/browser/frame_host/navigator_impl.cc View 1 2 3 1 chunk +5 lines, -16 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 3 4 5 chunks +19 lines, -17 lines 0 comments Download
M content/test/data/overscroll_navigation.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
mfomitchev
Urgent small patch for M37 - can you please review?
6 years, 5 months ago (2014-07-25 21:51:37 UTC) #1
sadrul
lgtm
6 years, 5 months ago (2014-07-25 21:54:25 UTC) #2
Charlie Reis
Typos in CL description: optimizaed, bu GestureNav https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc#newcode451 content/browser/frame_host/navigator_impl.cc:451: if (new_url.ReplaceComponents(clear_ref) ...
6 years, 5 months ago (2014-07-25 22:07:40 UTC) #3
sky
https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc#newcode444 content/browser/frame_host/navigator_impl.cc:444: bool same_page_navigation = false; Is this the same as ...
6 years, 5 months ago (2014-07-25 22:08:06 UTC) #4
mfomitchev
https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc#newcode444 content/browser/frame_host/navigator_impl.cc:444: bool same_page_navigation = false; Please see my reply to ...
6 years, 5 months ago (2014-07-25 22:29:15 UTC) #5
sky
https://codereview.chromium.org/417343003/diff/20001/content/browser/web_contents/aura/image_window_delegate.cc File content/browser/web_contents/aura/image_window_delegate.cc (right): https://codereview.chromium.org/417343003/diff/20001/content/browser/web_contents/aura/image_window_delegate.cc#newcode69 content/browser/web_contents/aura/image_window_delegate.cc:69: canvas->DrawColor(SK_ColorWHITE); On 2014/07/25 22:29:15, mfomitchev wrote: > Kuscher asked ...
6 years, 5 months ago (2014-07-25 22:44:49 UTC) #6
Charlie Reis
[+japhet for pushState / in-page fun] https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc#newcode451 content/browser/frame_host/navigator_impl.cc:451: if (new_url.ReplaceComponents(clear_ref) == ...
6 years, 5 months ago (2014-07-25 22:45:28 UTC) #7
mfomitchev
https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/417343003/diff/20001/content/browser/frame_host/navigator_impl.cc#newcode451 content/browser/frame_host/navigator_impl.cc:451: if (new_url.ReplaceComponents(clear_ref) == Yep, it fails. Changing it to ...
6 years, 5 months ago (2014-07-25 23:09:58 UTC) #8
Charlie Reis
LGTM. I don't think there's a bug on file yet. Nate, can you confirm that ...
6 years, 5 months ago (2014-07-25 23:55:55 UTC) #9
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 5 months ago (2014-07-26 01:50:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/417343003/80001
6 years, 5 months ago (2014-07-26 05:00:28 UTC) #11
mfomitchev1
The CQ bit was unchecked by mfomitchev@google.com
6 years, 5 months ago (2014-07-26 18:55:37 UTC) #12
mfomitchev1
The CQ bit was checked by mfomitchev@google.com
6 years, 5 months ago (2014-07-26 18:55:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/417343003/80001
6 years, 5 months ago (2014-07-26 18:55:59 UTC) #14
commit-bot: I haz the power
6 years, 5 months ago (2014-07-26 19:58:20 UTC) #15
Message was sent while issue was closed.
Change committed as 285797

Powered by Google App Engine
This is Rietveld 408576698