|
cc: Get rid of PostSwapBuffersComplete.
OutputSurface and CompositorFrameSink both have this method which is
not part of the interface but used to post a call to the client's
DidSwapBuffersComplete to the current ThreadTaskRunnerHandle. This is
problematic since that is *not* the compositor task runner which can
be overridden, and it clutters these base class APIs.
This moves the calls to the client DidSwapBuffersComplete() out to each
implementation of OutputSurface or CompositorFrameSink.
Some additional changes in the process:
- BrowserCompositorOutputSurface had OnGpuSwapBuffersCompleted but it
was only used for gpu cases, so moved to GpuBrowserCompositorOutputSurface
and remove the NOTREACHED() version in
SoftwareBrowserCompositorOutputSurface.
- Blimp was not using the draw callback to provide backpressure for
submitted CompositorFrames, and just posting immediately, so hook that
up instead of doing a simple post-task dance there.
- SoftwareBrowserCompositorOutputSurface was using ThreadTaskRunnerHandle
to make another post task too but it should be using the compositor's
task runner. Since it now has it, use that.
R=enne@chromium.org, khushalsagar@chromium.org
BUG= 616973, 606056
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Committed: https://crrev.com/daad1d10fb3932de760bdc3688e96c947d3c7b18
Cr-Commit-Position: refs/heads/master@{#424294}
Total comments: 11
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+226 lines, -180 lines) |
Patch |
 |
M |
blimp/client/core/compositor/blimp_compositor.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
blimp/client/core/compositor/blimp_compositor.cc
|
View
|
|
1 chunk |
+12 lines, -2 lines |
0 comments
|
Download
|
 |
M |
blimp/client/core/compositor/blimp_compositor_frame_sink.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
blimp/client/core/compositor/blimp_compositor_frame_sink.cc
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
blimp/client/core/compositor/blimp_compositor_frame_sink_proxy.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
blimp/client/core/compositor/blimp_compositor_frame_sink_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
blimp/client/support/compositor/blimp_embedder_compositor.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+21 lines, -9 lines |
0 comments
|
Download
|
 |
M |
cc/output/compositor_frame_sink.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/output/compositor_frame_sink.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+2 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cc/output/output_surface.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/output/output_surface.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -16 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/direct_compositor_frame_sink.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/fake_compositor_frame_sink.h
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_compositor_frame_sink.cc
|
View
|
|
3 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_output_surface.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_output_surface.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_test.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test_output_surface.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test_output_surface.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_compositor_frame_sink.h
|
View
|
1
2
3
|
5 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/test_compositor_frame_sink.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+28 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/browser_compositor_output_surface.h
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_browser_compositor_output_surface.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+27 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_process_transport_factory.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/compositor/offscreen_browser_compositor_output_surface.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/reflector_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_browser_compositor_output_surface.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_browser_compositor_output_surface.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+16 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_browser_compositor_output_surface_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/compositor/vulkan_browser_compositor_output_surface.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/vulkan_browser_compositor_output_surface.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositor_impl_android.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 58 (39 generated)
|