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

Issue 2377533002: cc: Remove Display::SetExternalViewport. (Closed)

Created:
4 years, 2 months ago by danakj
Modified:
4 years, 2 months ago
Reviewers:
boliu
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, enne (OOO), piman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove Display::SetExternalViewport. Instead expand the Display's size to cover the entire entire external viewport (aka the clip area). Also removes SetSurfaceSize from the SoftwareOutputSurface used by WebView to draw the renderer's frame into an SkCanvas. Since the Display is now sized to cover the whole clip area, it will Reshape() to that size and the OutputSurface can use that size. R=boliu@chromium.org BUG=606056 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/e9e8961052f406885b2ebcebfb27e181f624f88c Cr-Commit-Position: refs/heads/master@{#422960}

Patch Set 1 #

Patch Set 2 : webview-expand-sw: . #

Patch Set 3 : webview-expand-sw: . #

Total comments: 7

Patch Set 4 : webview-expand-sw: . #

Total comments: 2

Patch Set 5 : webview-expand-sw: rebase #

Patch Set 6 : webview-expand-sw: . #

Patch Set 7 : webview-expand-sw: noclipforhw #

Patch Set 8 : webview-expand-sw: rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -48 lines) Patch
M android_webview/browser/surfaces_instance.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M cc/surfaces/display.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 5 2 chunks +2 lines, -13 lines 0 comments Download
M content/renderer/android/synchronous_compositor_frame_sink.h View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M content/renderer/android/synchronous_compositor_frame_sink.cc View 1 2 3 4 5 6 7 8 chunks +81 lines, -28 lines 0 comments Download

Messages

Total messages: 45 (28 generated)
danakj
Maybe this works then? The parent compositor seems to use SetExternalClip still, and I'm not ...
4 years, 2 months ago (2016-09-27 00:50:15 UTC) #4
boliu
yeah, this breaks drawing when webview is offset from the origin of the canvas I ...
4 years, 2 months ago (2016-09-27 18:12:10 UTC) #8
boliu
two changes required from testing the webview shell, which only contains a translate on the ...
4 years, 2 months ago (2016-09-27 23:20:48 UTC) #9
danakj
PTAL https://codereview.chromium.org/2377533002/diff/40001/cc/surfaces/display.h File cc/surfaces/display.h (right): https://codereview.chromium.org/2377533002/diff/40001/cc/surfaces/display.h#newcode128 cc/surfaces/display.h:128: gfx::Rect external_viewport_; On 2016/09/27 23:20:48, boliu wrote: > ...
4 years, 2 months ago (2016-09-29 22:55:52 UTC) #11
boliu
hmm, now the right and bottom is cut off if by the translation of viewport ...
4 years, 2 months ago (2016-09-30 16:20:28 UTC) #18
boliu
wait, reverting the Reshape part of the change didn't fix this.. maybe this was an ...
4 years, 2 months ago (2016-09-30 16:33:00 UTC) #19
danakj
On 2016/09/30 16:33:00, boliu wrote: > wait, reverting the Reshape part of the change didn't ...
4 years, 2 months ago (2016-09-30 18:52:00 UTC) #20
danakj
https://codereview.chromium.org/2377533002/diff/60001/content/renderer/android/synchronous_compositor_frame_sink.cc File content/renderer/android/synchronous_compositor_frame_sink.cc (left): https://codereview.chromium.org/2377533002/diff/60001/content/renderer/android/synchronous_compositor_frame_sink.cc#oldcode342 content/renderer/android/synchronous_compositor_frame_sink.cc:342: client_->OnDraw(adjusted_transform, viewport, in_software_draw_); Or it's probably related to this ...
4 years, 2 months ago (2016-09-30 18:58:24 UTC) #21
danakj
https://codereview.chromium.org/2377533002/diff/60001/content/renderer/android/synchronous_compositor_frame_sink.cc File content/renderer/android/synchronous_compositor_frame_sink.cc (left): https://codereview.chromium.org/2377533002/diff/60001/content/renderer/android/synchronous_compositor_frame_sink.cc#oldcode342 content/renderer/android/synchronous_compositor_frame_sink.cc:342: client_->OnDraw(adjusted_transform, viewport, in_software_draw_); So LTHI::UpdateDrawProperties would use this transform ...
4 years, 2 months ago (2016-09-30 19:10:23 UTC) #22
boliu
On 2016/09/30 19:10:23, danakj wrote: > https://codereview.chromium.org/2377533002/diff/60001/content/renderer/android/synchronous_compositor_frame_sink.cc > File content/renderer/android/synchronous_compositor_frame_sink.cc (left): > > https://codereview.chromium.org/2377533002/diff/60001/content/renderer/android/synchronous_compositor_frame_sink.cc#oldcode342 > ...
4 years, 2 months ago (2016-10-01 00:13:10 UTC) #23
danakj
On Fri, Sep 30, 2016 at 5:13 PM, <boliu@chromium.org> wrote: > On 2016/09/30 19:10:23, danakj ...
4 years, 2 months ago (2016-10-01 00:28:39 UTC) #24
danakj
PTAL. Now without external clip.
4 years, 2 months ago (2016-10-04 02:02:47 UTC) #26
danakj
Ah, also removed the SetExternalClip for SurfacesInstance. The clip is already passed as the clip ...
4 years, 2 months ago (2016-10-04 18:52:48 UTC) #31
boliu
lgtm
4 years, 2 months ago (2016-10-04 21:53:05 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2377533002/140001
4 years, 2 months ago (2016-10-04 22:10:06 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-04 22:16:48 UTC) #43
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 22:19:32 UTC) #45
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e9e8961052f406885b2ebcebfb27e181f624f88c
Cr-Commit-Position: refs/heads/master@{#422960}

Powered by Google App Engine
This is Rietveld 408576698