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

Issue 640023004: cc: Make OutputSurface::SwapBuffers pure virtual (Closed)

Created:
6 years, 2 months ago by no sievers
Modified:
6 years, 2 months ago
Reviewers:
danakj, jamesr
CC:
chromium-reviews, qsr+mojo_chromium.org, danakj+watch_chromium.org, viettrungluu+watch_chromium.org, Ian Vollick, jam, yzshen+watch_chromium.org, abarth-chromium, jbauman+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, sievers+watch_chromium.org, ben+mojo_chromium.org, darin (slow to review)
Base URL:
https://chromium.googlesource.com/chromium/src.git@latinfo
Project:
chromium
Visibility:
Public.

Description

cc: Make OutputSurface::SwapBuffers pure virtual The current implementation is not used in production code and there is no reasonable common denominator anymore between the different implementations. Also removing the compositor example app (which was using cc::OutputSurface) since James says it's not incredibly useful anymore. Committed: https://crrev.com/0668048aef27305171af88d6f870f0a041e2b2b7 Cr-Commit-Position: refs/heads/master@{#299173}

Patch Set 1 #

Patch Set 2 : missing files #

Patch Set 3 : GN #

Patch Set 4 : cc_unittests #

Total comments: 2

Patch Set 5 : and rebase #

Total comments: 2

Patch Set 6 : rebase, comment, removed unused includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -393 lines) Patch
M cc/output/output_surface.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M cc/output/output_surface.cc View 1 2 3 4 5 2 chunks +0 lines, -46 lines 0 comments Download
M cc/output/output_surface_unittest.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M cc/output/renderer_unittest.cc View 1 2 3 2 chunks +24 lines, -1 line 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M cc/test/pixel_test_output_surface.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/pixel_test_output_surface.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/test/test_context_support.h View 1 2 3 1 chunk +0 lines, -14 lines 0 comments Download
M cc/test/test_context_support.cc View 1 2 3 3 chunks +1 line, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 chunks +10 lines, -10 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/cc/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/cc/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
A mojo/cc/direct_output_surface.h View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
A mojo/cc/direct_output_surface.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download
M mojo/examples/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D mojo/examples/compositor_app/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -28 lines 0 comments Download
D mojo/examples/compositor_app/DEPS View 1 chunk +0 lines, -6 lines 0 comments Download
D mojo/examples/compositor_app/compositor_app.cc View 1 2 3 4 5 1 chunk +0 lines, -78 lines 0 comments Download
D mojo/examples/compositor_app/compositor_host.h View 1 chunk +0 lines, -61 lines 0 comments Download
D mojo/examples/compositor_app/compositor_host.cc View 1 chunk +0 lines, -97 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M mojo/mojo_examples.gypi View 1 chunk +0 lines, -34 lines 0 comments Download
M mojo/services/surfaces/surfaces_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M ui/compositor/test/in_process_context_factory.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
no sievers
ptal
6 years, 2 months ago (2014-10-09 23:41:21 UTC) #2
no sievers
https://codereview.chromium.org/640023004/diff/480001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/640023004/diff/480001/cc/trees/layer_tree_host_impl_unittest.cc#newcode4439 cc/trees/layer_tree_host_impl_unittest.cc:4439: gfx::Rect expected_swap_rect(0, 0, 500, 500); Interesting that full swaps ...
6 years, 2 months ago (2014-10-10 00:25:05 UTC) #3
jamesr
lgtm. really glad to see this starting to clean up! https://codereview.chromium.org/640023004/diff/630001/mojo/cc/direct_output_surface.h File mojo/cc/direct_output_surface.h (right): https://codereview.chromium.org/640023004/diff/630001/mojo/cc/direct_output_surface.h#newcode12 ...
6 years, 2 months ago (2014-10-10 06:36:40 UTC) #4
no sievers
+dana: mind stamping the change in ui/compositor/test/in_process_context_factory.cc?
6 years, 2 months ago (2014-10-10 18:52:44 UTC) #6
danakj
ui LGTM
6 years, 2 months ago (2014-10-10 18:57:27 UTC) #7
no sievers
https://codereview.chromium.org/640023004/diff/630001/mojo/cc/direct_output_surface.h File mojo/cc/direct_output_surface.h (right): https://codereview.chromium.org/640023004/diff/630001/mojo/cc/direct_output_surface.h#newcode12 mojo/cc/direct_output_surface.h:12: class DirectOutputSurface : public cc::OutputSurface { On 2014/10/10 06:36:40, ...
6 years, 2 months ago (2014-10-10 18:58:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640023004/780001
6 years, 2 months ago (2014-10-10 18:58:52 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:780001)
6 years, 2 months ago (2014-10-10 20:22:04 UTC) #11
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/0668048aef27305171af88d6f870f0a041e2b2b7 Cr-Commit-Position: refs/heads/master@{#299173}
6 years, 2 months ago (2014-10-10 20:22:45 UTC) #12
no sievers
just fyi and in case it uncovers some bugs or flakiness later: i was sneaky ...
6 years, 2 months ago (2014-10-10 21:46:14 UTC) #13
danakj
can you point out where that is in this CL?
6 years, 2 months ago (2014-10-10 21:47:46 UTC) #14
no sievers
6 years, 2 months ago (2014-10-10 22:10:22 UTC) #15
Message was sent while issue was closed.
On 2014/10/10 21:47:46, danakj wrote:
> can you point out where that is in this CL?

PixelTestOutputSurface::SwapBuffers() vs. previously
OutputSurface::SwapBuffers().

Instantiated from:
ui/compositor/test/in_process_context_factory.cc
content/test/web_layer_tree_view_impl_for_testing.cc
cc/test/layer_tree_pixel_test.cc
cc/test/pixel_test.cc

Powered by Google App Engine
This is Rietveld 408576698