OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/surfaces/display.h" | 5 #include "cc/surfaces/display.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
9 #include "base/test/null_task_runner.h" | 10 #include "base/test/null_task_runner.h" |
10 #include "cc/output/compositor_frame.h" | 11 #include "cc/output/compositor_frame.h" |
11 #include "cc/output/copy_output_result.h" | 12 #include "cc/output/copy_output_result.h" |
12 #include "cc/output/texture_mailbox_deleter.h" | 13 #include "cc/output/texture_mailbox_deleter.h" |
13 #include "cc/quads/render_pass.h" | 14 #include "cc/quads/render_pass.h" |
14 #include "cc/resources/shared_bitmap_manager.h" | 15 #include "cc/resources/shared_bitmap_manager.h" |
15 #include "cc/scheduler/begin_frame_source.h" | 16 #include "cc/scheduler/begin_frame_source.h" |
16 #include "cc/surfaces/display_client.h" | 17 #include "cc/surfaces/display_client.h" |
17 #include "cc/surfaces/display_scheduler.h" | 18 #include "cc/surfaces/display_scheduler.h" |
18 #include "cc/surfaces/frame_sink_id.h" | 19 #include "cc/surfaces/frame_sink_id.h" |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 // Verify DidLoseOutputSurface callback is hooked up correctly. | 507 // Verify DidLoseOutputSurface callback is hooked up correctly. |
507 EXPECT_EQ(0, client.loss_count()); | 508 EXPECT_EQ(0, client.loss_count()); |
508 output_surface_->context_provider()->ContextGL()->LoseContextCHROMIUM( | 509 output_surface_->context_provider()->ContextGL()->LoseContextCHROMIUM( |
509 GL_GUILTY_CONTEXT_RESET_ARB, GL_INNOCENT_CONTEXT_RESET_ARB); | 510 GL_GUILTY_CONTEXT_RESET_ARB, GL_INNOCENT_CONTEXT_RESET_ARB); |
510 output_surface_->context_provider()->ContextGL()->Flush(); | 511 output_surface_->context_provider()->ContextGL()->Flush(); |
511 EXPECT_EQ(1, client.loss_count()); | 512 EXPECT_EQ(1, client.loss_count()); |
512 } | 513 } |
513 | 514 |
514 } // namespace | 515 } // namespace |
515 } // namespace cc | 516 } // namespace cc |
OLD | NEW |