| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/test/test_compositor_frame_sink.h" | 5 #include "cc/test/test_compositor_frame_sink.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" |
| 10 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
| 11 #include "cc/output/compositor_frame_sink_client.h" | 12 #include "cc/output/compositor_frame_sink_client.h" |
| 12 #include "cc/output/copy_output_request.h" | 13 #include "cc/output/copy_output_request.h" |
| 13 #include "cc/output/direct_renderer.h" | 14 #include "cc/output/direct_renderer.h" |
| 14 #include "cc/output/output_surface.h" | 15 #include "cc/output/output_surface.h" |
| 15 #include "cc/output/texture_mailbox_deleter.h" | 16 #include "cc/output/texture_mailbox_deleter.h" |
| 16 | 17 |
| 17 namespace cc { | 18 namespace cc { |
| 18 | 19 |
| 19 static constexpr FrameSinkId kCompositorFrameSinkId(1, 1); | 20 static constexpr FrameSinkId kCompositorFrameSinkId(1, 1); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 bool will_draw_and_swap, | 197 bool will_draw_and_swap, |
| 197 const RenderPassList& render_passes) { | 198 const RenderPassList& render_passes) { |
| 198 test_client_->DisplayWillDrawAndSwap(will_draw_and_swap, render_passes); | 199 test_client_->DisplayWillDrawAndSwap(will_draw_and_swap, render_passes); |
| 199 } | 200 } |
| 200 | 201 |
| 201 void TestCompositorFrameSink::DisplayDidDrawAndSwap() { | 202 void TestCompositorFrameSink::DisplayDidDrawAndSwap() { |
| 202 test_client_->DisplayDidDrawAndSwap(); | 203 test_client_->DisplayDidDrawAndSwap(); |
| 203 } | 204 } |
| 204 | 205 |
| 205 } // namespace cc | 206 } // namespace cc |
| OLD | NEW |