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

Issue 15688002: Part 1/3 (compositor) of adding with device scale factor to transport surfaces (Closed)

Created:
7 years, 7 months ago by ccameron
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Part 1/3 (compositor) of adding with device scale factor to transport surfaces Add a DeviceScaleFactor method to RendererClient (and all its instances) to get the scale factor from the layer tree to the output surface. Add a scale factor argument to OutputSurface::Reshape Replace OutputSurface::Reshape's use of WebGraphicsContext3D's reshape with reshapeWithScaleFactor. Implement reshapeWithScaleFactor for command buffer based WebGraphicsContext3Ds, but stop propagating the scale factor argument there. BUG=132714 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202189

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add reshape unit test #

Patch Set 3 : Update unit tests #

Total comments: 2

Patch Set 4 : Fix return value #

Total comments: 6

Patch Set 5 : Fix indent #

Total comments: 2

Patch Set 6 : Add in process impl #

Patch Set 7 : Fix android build #

Patch Set 8 : Update Android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -17 lines) Patch
M cc/output/gl_renderer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 8 chunks +50 lines, -4 lines 0 comments Download
M cc/output/output_surface.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/output/output_surface.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/output/renderer.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/output/software_renderer_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/pixel_test.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 3 chunks +48 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/mailbox_output_surface.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/mailbox_output_surface.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
ccameron
Adding jamesr for cc/ changes Adding kbr for content/ and webkit/ changes. This is part ...
7 years, 7 months ago (2013-05-22 08:37:28 UTC) #1
danakj
https://codereview.chromium.org/15688002/diff/1/cc/output/gl_renderer_unittest.cc File cc/output/gl_renderer_unittest.cc (right): https://codereview.chromium.org/15688002/diff/1/cc/output/gl_renderer_unittest.cc#newcode170 cc/output/gl_renderer_unittest.cc:170: return 1.f; Can we have a test where this ...
7 years, 7 months ago (2013-05-22 14:08:42 UTC) #2
ccameron
Added two more unit tests (one for LTHI -> WGC3D and another for renderer->outputsurface). https://codereview.chromium.org/15688002/diff/1/cc/output/gl_renderer_unittest.cc ...
7 years, 7 months ago (2013-05-22 18:26:11 UTC) #3
danakj
https://codereview.chromium.org/15688002/diff/8001/cc/output/gl_renderer_unittest.cc File cc/output/gl_renderer_unittest.cc (right): https://codereview.chromium.org/15688002/diff/8001/cc/output/gl_renderer_unittest.cc#newcode173 cc/output/gl_renderer_unittest.cc:173: return 1.f; This should return scale_factor_ right?
7 years, 7 months ago (2013-05-22 18:28:15 UTC) #4
ccameron
https://codereview.chromium.org/15688002/diff/8001/cc/output/gl_renderer_unittest.cc File cc/output/gl_renderer_unittest.cc (right): https://codereview.chromium.org/15688002/diff/8001/cc/output/gl_renderer_unittest.cc#newcode173 cc/output/gl_renderer_unittest.cc:173: return 1.f; On 2013/05/22 18:28:16, danakj wrote: > This ...
7 years, 7 months ago (2013-05-22 18:34:55 UTC) #5
danakj
Thanks for the test, it looks good. /me passes back to jamesr for the WGC3D ...
7 years, 7 months ago (2013-05-22 18:39:16 UTC) #6
Ken Russell (switch to Gerrit)
lgtm https://codereview.chromium.org/15688002/diff/9019/cc/output/gl_renderer_unittest.cc File cc/output/gl_renderer_unittest.cc (right): https://codereview.chromium.org/15688002/diff/9019/cc/output/gl_renderer_unittest.cc#newcode1548 cc/output/gl_renderer_unittest.cc:1548: renderer_.ViewportChanged(); Is there any way to check that ...
7 years, 7 months ago (2013-05-22 18:50:54 UTC) #7
jamesr
lgtm. remember to update wgc3d_in_process_impl
7 years, 7 months ago (2013-05-22 19:04:34 UTC) #8
ccameron
Thanks!! https://codereview.chromium.org/15688002/diff/9019/cc/output/gl_renderer_unittest.cc File cc/output/gl_renderer_unittest.cc (right): https://codereview.chromium.org/15688002/diff/9019/cc/output/gl_renderer_unittest.cc#newcode1514 cc/output/gl_renderer_unittest.cc:1514: clear_viewport_changed(); On 2013/05/22 18:39:16, danakj wrote: > nit: ...
7 years, 7 months ago (2013-05-22 19:24:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/15688002/11002
7 years, 7 months ago (2013-05-23 23:37:02 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-24 00:04:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/15688002/33001
7 years, 7 months ago (2013-05-24 09:36:22 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-24 10:09:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/15688002/54001
7 years, 7 months ago (2013-05-24 18:35:57 UTC) #14
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 22:01:53 UTC) #15
Message was sent while issue was closed.
Change committed as 202189

Powered by Google App Engine
This is Rietveld 408576698