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 "services/ui/surfaces/display_compositor.h" | 5 #include "services/ui/surfaces/display_compositor.h" |
6 | 6 |
7 #include <inttypes.h> | 7 #include <inttypes.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ptr_util.h" |
14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
15 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
16 #include "cc/ipc/display_compositor.mojom.h" | 17 #include "cc/ipc/display_compositor.mojom.h" |
17 #include "cc/surfaces/surface_id.h" | 18 #include "cc/surfaces/surface_id.h" |
18 #include "cc/surfaces/surface_observer.h" | 19 #include "cc/surfaces/surface_observer.h" |
19 #include "cc/surfaces/surface_reference.h" | 20 #include "cc/surfaces/surface_reference.h" |
20 #include "mojo/public/cpp/bindings/binding.h" | 21 #include "mojo/public/cpp/bindings/binding.h" |
21 #include "mojo/public/cpp/bindings/interface_request.h" | 22 #include "mojo/public/cpp/bindings/interface_request.h" |
22 #include "services/ui/common/task_runner_test_base.h" | 23 #include "services/ui/common/task_runner_test_base.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 276 |
276 // The real reference should be added for 2:1:2 and both temporary references | 277 // The real reference should be added for 2:1:2 and both temporary references |
277 // should be removed. | 278 // should be removed. |
278 EXPECT_EQ("Add(1:1:1-2:1:2);Remove(0:0:0-2:1:2);Remove(0:0:0-2:1:1)", | 279 EXPECT_EQ("Add(1:1:1-2:1:2);Remove(0:0:0-2:1:2);Remove(0:0:0-2:1:1)", |
279 reference_manager_.events()); | 280 reference_manager_.events()); |
280 EXPECT_EQ(0u, CountTempReferences()); | 281 EXPECT_EQ(0u, CountTempReferences()); |
281 } | 282 } |
282 | 283 |
283 } // namespace test | 284 } // namespace test |
284 } // namespace ui | 285 } // namespace ui |
OLD | NEW |