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

Issue 2392183003: cc: Remove SurfaceSize from OutputSurface. (Closed)

Created:
4 years, 2 months ago by danakj
Modified:
4 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, kylechar, piman+watch_chromium.org, sievers+watch_chromium.org, boliu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove SurfaceSize from OutputSurface. SurfaceSize is no longer needed that the external viewport is always at 0,0 and no output surfaces override the size returned there except cc unittests. So make them stop and remove the getter. This kinda points out that GLFrameData's size is redundant with the size given to Reshape. For now I'm DCHECKing that they are the same to document (and confirm) this. Also adds DCHECKs that the viewport rect is at 0,0 and the clip rect given to DirectRenderer matches the viewport rect since that is what Display does now. Followups can remove code to not need DCHECKs. R=enne@chromium.org BUG=606056 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/a7e03fe1f42b541fa54b218808c1354fbf498e7e Cr-Commit-Position: refs/heads/master@{#423650}

Patch Set 1 #

Patch Set 2 : nosurfacesize: . #

Total comments: 1

Patch Set 3 : nosurfacesize: ozonethinger #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -262 lines) Patch
M cc/BUILD.gn View 1 1 chunk +0 lines, -2 lines 0 comments Download
M cc/output/direct_renderer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M cc/output/gl_renderer.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 chunks +0 lines, -91 lines 0 comments Download
M cc/output/output_surface.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 1 chunk +0 lines, -24 lines 0 comments Download
M cc/test/data/background_filter_on_scaled_layer_gl.png View 1 Binary file 0 comments Download
M cc/test/data/rotated_drop_shadow_filter_gl.png View 1 Binary file 0 comments Download
M cc/test/data/rotated_filter_gl.png View 1 Binary file 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 3 chunks +2 lines, -9 lines 0 comments Download
M cc/test/pixel_test.h View 1 3 chunks +0 lines, -9 lines 0 comments Download
M cc/test/pixel_test.cc View 1 4 chunks +5 lines, -27 lines 0 comments Download
D cc/test/pixel_test_software_output_device.h View 1 1 chunk +0 lines, -26 lines 0 comments Download
D cc/test/pixel_test_software_output_device.cc View 1 1 chunk +0 lines, -17 lines 0 comments Download
M content/browser/compositor/gpu_browser_compositor_output_surface.cc View 1 chunk +10 lines, -13 lines 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc View 3 chunks +7 lines, -2 lines 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M content/browser/compositor/reflector_impl.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/compositor/reflector_impl.cc View 1 chunk +11 lines, -13 lines 0 comments Download
M content/browser/compositor/reflector_impl_unittest.cc View 5 chunks +8 lines, -7 lines 0 comments Download
M services/ui/surfaces/direct_output_surface_ozone.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/surfaces/direct_output_surface_ozone.cc View 1 2 5 chunks +8 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (17 generated)
danakj
4 years, 2 months ago (2016-10-06 00:27:38 UTC) #3
enne (OOO)
lgtm This cleanup is super good! https://codereview.chromium.org/2392183003/diff/20001/cc/test/layer_tree_pixel_test.cc File cc/test/layer_tree_pixel_test.cc (left): https://codereview.chromium.org/2392183003/diff/20001/cc/test/layer_tree_pixel_test.cc#oldcode70 cc/test/layer_tree_pixel_test.cc:70: // Always test ...
4 years, 2 months ago (2016-10-06 00:33:17 UTC) #7
danakj
+rjkroege for services/
4 years, 2 months ago (2016-10-06 01:03:11 UTC) #12
danakj
4 years, 2 months ago (2016-10-06 01:06:37 UTC) #14
Fady Samuel
lgtm
4 years, 2 months ago (2016-10-06 19:53:29 UTC) #18
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/2392183003/40001
4 years, 2 months ago (2016-10-06 20:14:04 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-06 20:22:29 UTC) #23
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 20:25:43 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a7e03fe1f42b541fa54b218808c1354fbf498e7e
Cr-Commit-Position: refs/heads/master@{#423650}

Powered by Google App Engine
This is Rietveld 408576698