| 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_delegating_output_surface.h" | 5 #include "cc/test/test_delegating_output_surface.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "cc/output/begin_frame_args.h" | 10 #include "cc/output/begin_frame_args.h" |
| 11 #include "cc/output/copy_output_request.h" | 11 #include "cc/output/copy_output_request.h" |
| 12 #include "cc/output/texture_mailbox_deleter.h" | 12 #include "cc/output/texture_mailbox_deleter.h" |
| 13 #include "cc/test/begin_frame_args_test.h" | |
| 14 | 13 |
| 15 static constexpr uint32_t kCompositorClientId = 1; | 14 static constexpr uint32_t kCompositorClientId = 1; |
| 16 | 15 |
| 17 namespace cc { | 16 namespace cc { |
| 18 | 17 |
| 19 TestDelegatingOutputSurface::TestDelegatingOutputSurface( | 18 TestDelegatingOutputSurface::TestDelegatingOutputSurface( |
| 20 scoped_refptr<ContextProvider> compositor_context_provider, | 19 scoped_refptr<ContextProvider> compositor_context_provider, |
| 21 scoped_refptr<ContextProvider> worker_context_provider, | 20 scoped_refptr<ContextProvider> worker_context_provider, |
| 22 std::unique_ptr<OutputSurface> display_output_surface, | 21 std::unique_ptr<OutputSurface> display_output_surface, |
| 23 SharedBitmapManager* shared_bitmap_manager, | 22 SharedBitmapManager* shared_bitmap_manager, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 if (test_client_) | 204 if (test_client_) |
| 206 test_client_->DisplayWillDrawAndSwap(will_draw_and_swap, render_passes); | 205 test_client_->DisplayWillDrawAndSwap(will_draw_and_swap, render_passes); |
| 207 } | 206 } |
| 208 | 207 |
| 209 void TestDelegatingOutputSurface::DisplayDidDrawAndSwap() { | 208 void TestDelegatingOutputSurface::DisplayDidDrawAndSwap() { |
| 210 if (test_client_) | 209 if (test_client_) |
| 211 test_client_->DisplayDidDrawAndSwap(); | 210 test_client_->DisplayDidDrawAndSwap(); |
| 212 } | 211 } |
| 213 | 212 |
| 214 } // namespace cc | 213 } // namespace cc |
| OLD | NEW |