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

Issue 591693002: Creating PNG images from web content to be used by OverviewMode navigation (Closed)

Created:
6 years, 3 months ago by Mr4D (OOO till 08-26)
Modified:
6 years, 2 months ago
Reviewers:
sadrul, oshima
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Creating PNG images from web content to be used by OverviewMode navigation This patch reads back content from the GPU in quarter res and stores it (in memory) as PNG. The OverviewMode can then grab an image through an activity to present it accordingly. Since we do not have browser test framework for Athena, there is no unit test yet. I took however issue 412474 on to mitigate that and I will use this test as the gunieapig test. In the meantime sadrul@chromium.org can start using this for his overviewmode presentation development. BUG=408837 TEST=Visual: Added Logging statements to see that the code gets properly executed. Committed: https://crrev.com/7144431a072fad80fc82ee87e7216011c534ef3b Cr-Commit-Position: refs/heads/master@{#296729}

Patch Set 1 #

Total comments: 44

Patch Set 2 : Addressed #

Total comments: 3

Patch Set 3 : Addressed and using ImageSkia again #

Total comments: 2

Patch Set 4 : Changed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -107 lines) Patch
M athena/activity/public/activity_view_model.h View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M athena/content/app_activity.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M athena/content/app_activity.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M athena/content/app_activity_proxy.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M athena/content/app_activity_proxy.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M athena/content/app_activity_registry.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M athena/content/content_proxy.h View 1 2 3 chunks +38 lines, -41 lines 0 comments Download
M athena/content/content_proxy.cc View 1 2 3 chunks +111 lines, -54 lines 0 comments Download
M athena/test/sample_activity.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M athena/test/sample_activity.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
Mr4D (OOO till 08-26)
Please have a look! This is as discussed adding the possibility to retrieve images for ...
6 years, 3 months ago (2014-09-19 22:17:17 UTC) #2
oshima
https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h File athena/activity/public/activity_view_model.h (right): https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h#newcode11 athena/activity/public/activity_view_model.h:11: #include "ui/gfx/image/image.h" forward decl should be enough https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h#newcode61 athena/activity/public/activity_view_model.h:61: ...
6 years, 3 months ago (2014-09-22 16:10:29 UTC) #3
sadrul
https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h File athena/activity/public/activity_view_model.h (right): https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h#newcode61 athena/activity/public/activity_view_model.h:61: virtual scoped_ptr<gfx::Image> GetOverviewModeImage() = 0; Why this change? https://codereview.chromium.org/591693002/diff/1/athena/content/content_proxy.cc ...
6 years, 3 months ago (2014-09-22 16:13:33 UTC) #4
oshima
https://codereview.chromium.org/591693002/diff/1/athena/content/content_proxy.cc File athena/content/content_proxy.cc (right): https://codereview.chromium.org/591693002/diff/1/athena/content/content_proxy.cc#newcode128 athena/content/content_proxy.cc:128: web_view_->SetFastResize(true); We may not want to resize at all ...
6 years, 3 months ago (2014-09-22 18:26:05 UTC) #5
Mr4D (OOO till 08-26)
Addressed! Please have another look! https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h File athena/activity/public/activity_view_model.h (right): https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h#newcode11 athena/activity/public/activity_view_model.h:11: #include "ui/gfx/image/image.h" Done. https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h#newcode61 ...
6 years, 3 months ago (2014-09-23 19:07:34 UTC) #6
oshima
lgtm with a nit. Let me know if 0.0 scale (= unscaled) doesn't work. https://codereview.chromium.org/591693002/diff/1/athena/activity/public/activity_view_model.h ...
6 years, 3 months ago (2014-09-24 00:40:01 UTC) #7
oshima
On 2014/09/24 00:40:01, oshima wrote: > lgtm with a nit. Let me know if 0.0 ...
6 years, 3 months ago (2014-09-24 00:40:28 UTC) #8
Mr4D (OOO till 08-26)
Addressed - and also converted gfx::Image to gfx::SkiaImage as requested. Sadrul, can you have another ...
6 years, 3 months ago (2014-09-24 16:18:25 UTC) #9
sadrul
lgtm https://codereview.chromium.org/591693002/diff/40001/athena/activity/public/activity_view_model.h File athena/activity/public/activity_view_model.h (right): https://codereview.chromium.org/591693002/diff/40001/athena/activity/public/activity_view_model.h#newcode62 athena/activity/public/activity_view_model.h:62: // ActiveViewModel will hold no reference to the ...
6 years, 2 months ago (2014-09-25 16:04:01 UTC) #10
Mr4D (OOO till 08-26)
Thanks for your review! Sadrul, please note that you should only use the web view ...
6 years, 2 months ago (2014-09-25 16:29:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/591693002/60001
6 years, 2 months ago (2014-09-25 16:31:19 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 06956bc45dc7902e980ac70873fa50afb76884b3
6 years, 2 months ago (2014-09-25 17:12:26 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 17:13:32 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7144431a072fad80fc82ee87e7216011c534ef3b
Cr-Commit-Position: refs/heads/master@{#296729}

Powered by Google App Engine
This is Rietveld 408576698