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

Issue 376683004: Pass resourceless software mode in BeginFrameArgs (Closed)

Created:
6 years, 5 months ago by boliu
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, cc-bugs_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

Pass resourceless software mode in SetExternalConstraints This fixes the bug that resourceless software mode not dirtying the draw properties. This allows OutputSurface::ForcedDrawToSoftwareDevice to be removed. And merged the valid_for_tile_management parameter into resourceless_software_draw. This effectively reverses the last bool parameter on SetExternalDrawConstraints. BUG=391829 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282445

Patch Set 1 #

Patch Set 2 : remove ForcedDrawToSoftwareDevice #

Patch Set 3 : use SetExternalConstraints #

Patch Set 4 : rebase #

Patch Set 5 : tiny clean up #

Total comments: 14

Patch Set 6 : rebase #

Patch Set 7 : remove valid_for_tile_management, review #

Patch Set 8 : fix accidental header modification #

Total comments: 6

Patch Set 9 : rebase #

Patch Set 10 : comment, clang-format #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -101 lines) Patch
M android_webview/browser/parent_output_surface.cc View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +20 lines, -16 lines 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 5 6 2 chunks +1 line, -6 lines 0 comments Download
M cc/output/output_surface.cc View 1 2 3 4 5 6 2 chunks +6 lines, -7 lines 0 comments Download
M cc/output/output_surface_client.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M cc/surfaces/display.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_output_surface.h View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 4 chunks +0 lines, -7 lines 0 comments Download
M cc/test/fake_output_surface_client.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 6 chunks +22 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +19 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.h View 1 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.cc View 1 2 3 4 5 6 3 chunks +8 lines, -13 lines 2 comments Download

Messages

Total messages: 22 (0 generated)
boliu
PS1 adds BeginFrameArgs::allow_separate_surface, and PS2 removes ForcedDrawToSoftwareDevice on top of PS1. All still work in ...
6 years, 5 months ago (2014-07-07 22:21:43 UTC) #1
boliu
Actually SetExternalDrawConstaints feels like a better fit than BeginFrameArgs. Please take a look at PS3.
6 years, 5 months ago (2014-07-08 02:21:40 UTC) #2
boliu
ping?
6 years, 5 months ago (2014-07-08 20:33:49 UTC) #3
brianderson
https://codereview.chromium.org/376683004/diff/80001/cc/output/output_surface.cc File cc/output/output_surface.cc (left): https://codereview.chromium.org/376683004/diff/80001/cc/output/output_surface.cc#oldcode278 cc/output/output_surface.cc:278: #if 0 I'm removing this in https://codereview.chromium.org/323423005. There's a ...
6 years, 5 months ago (2014-07-08 21:26:12 UTC) #4
boliu
https://codereview.chromium.org/376683004/diff/80001/cc/output/output_surface.cc File cc/output/output_surface.cc (left): https://codereview.chromium.org/376683004/diff/80001/cc/output/output_surface.cc#oldcode278 cc/output/output_surface.cc:278: #if 0 On 2014/07/08 21:26:12, brianderson wrote: > I'm ...
6 years, 5 months ago (2014-07-08 21:31:14 UTC) #5
danakj
https://codereview.chromium.org/376683004/diff/80001/android_webview/browser/parent_output_surface.cc File android_webview/browser/parent_output_surface.cc (right): https://codereview.chromium.org/376683004/diff/80001/android_webview/browser/parent_output_surface.cc#newcode32 android_webview/browser/parent_output_surface.cc:32: SetExternalDrawConstraints(identity, empty, clip, false, true); nit: use a temp ...
6 years, 5 months ago (2014-07-09 17:21:07 UTC) #6
danakj
Do you think the whole external draw constraints could move into the BeginFrameArgs maybe afterward? ...
6 years, 5 months ago (2014-07-09 17:22:01 UTC) #7
brianderson
On 2014/07/09 17:22:01, danakj wrote: > Do you think the whole external draw constraints could ...
6 years, 5 months ago (2014-07-09 17:29:29 UTC) #8
boliu
On 2014/07/09 17:29:29, brianderson wrote: > On 2014/07/09 17:22:01, danakj wrote: > > Do you ...
6 years, 5 months ago (2014-07-09 17:55:12 UTC) #9
boliu
Dana, how do you feel about merging resourceless_software_draw and valid_for_tile_management? Right now: valid_for_tile_management == !resourceless_software_draw ...
6 years, 5 months ago (2014-07-09 18:46:58 UTC) #10
danakj
On 2014/07/09 18:46:58, boliu wrote: > Dana, how do you feel about merging resourceless_software_draw and ...
6 years, 5 months ago (2014-07-09 18:52:18 UTC) #11
boliu
Merged valid_for_tile_management into resourceless_software_draw, so effectively reversed the meaning of the bool in SetExternalDrawConstraints. Good ...
6 years, 5 months ago (2014-07-09 20:59:50 UTC) #12
danakj
https://codereview.chromium.org/376683004/diff/140001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/376683004/diff/140001/cc/layers/picture_layer_impl.cc#newcode404 cc/layers/picture_layer_impl.cc:404: if (!layer_tree_impl()->resourceless_software_draw()) { Thanks for making them all resourceless_software_draw ...
6 years, 5 months ago (2014-07-10 18:33:59 UTC) #13
boliu
https://codereview.chromium.org/376683004/diff/140001/cc/output/software_renderer.cc File cc/output/software_renderer.cc (right): https://codereview.chromium.org/376683004/diff/140001/cc/output/software_renderer.cc#newcode475 cc/output/software_renderer.cc:475: DCHECK(resource_provider_); On 2014/07/10 18:33:59, danakj wrote: > is this ...
6 years, 5 months ago (2014-07-10 18:40:36 UTC) #14
danakj
ok cool, a comment on that DCHECK would be cool. LGTM https://codereview.chromium.org/376683004/diff/140001/cc/output/software_renderer.cc File cc/output/software_renderer.cc (right): ...
6 years, 5 months ago (2014-07-10 18:43:21 UTC) #15
boliu
+sievers for synchronous compositor
6 years, 5 months ago (2014-07-10 18:50:26 UTC) #16
boliu
Oh, added that comment in software_renderer
6 years, 5 months ago (2014-07-10 18:50:55 UTC) #17
no sievers
synchronous compositor changes lgtm https://codereview.chromium.org/376683004/diff/180001/content/browser/android/in_process/synchronous_compositor_output_surface.cc File content/browser/android/in_process/synchronous_compositor_output_surface.cc (right): https://codereview.chromium.org/376683004/diff/180001/content/browser/android/in_process/synchronous_compositor_output_surface.cc#newcode222 content/browser/android/in_process/synchronous_compositor_output_surface.cc:222: bool resourceless_software_draw = false; do ...
6 years, 5 months ago (2014-07-10 19:13:36 UTC) #18
danakj
https://codereview.chromium.org/376683004/diff/180001/content/browser/android/in_process/synchronous_compositor_output_surface.cc File content/browser/android/in_process/synchronous_compositor_output_surface.cc (right): https://codereview.chromium.org/376683004/diff/180001/content/browser/android/in_process/synchronous_compositor_output_surface.cc#newcode222 content/browser/android/in_process/synchronous_compositor_output_surface.cc:222: bool resourceless_software_draw = false; On 2014/07/10 19:13:36, sievers wrote: ...
6 years, 5 months ago (2014-07-10 19:14:37 UTC) #19
boliu
The CQ bit was checked by boliu@chromium.org
6 years, 5 months ago (2014-07-10 19:37:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/376683004/180001
6 years, 5 months ago (2014-07-10 19:39:00 UTC) #21
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 22:49:16 UTC) #22
Message was sent while issue was closed.
Change committed as 282445

Powered by Google App Engine
This is Rietveld 408576698