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 "content/browser/compositor/reflector_impl.h" | 5 #include "content/browser/compositor/reflector_impl.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "ui/ozone/public/overlay_candidates_ozone.h" | 28 #include "ui/ozone/public/overlay_candidates_ozone.h" |
29 #endif // defined(USE_OZONE) | 29 #endif // defined(USE_OZONE) |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 namespace { | 32 namespace { |
33 class FakeTaskRunner : public base::SingleThreadTaskRunner { | 33 class FakeTaskRunner : public base::SingleThreadTaskRunner { |
34 public: | 34 public: |
35 FakeTaskRunner() {} | 35 FakeTaskRunner() {} |
36 | 36 |
37 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, | 37 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
38 base::Closure task, | 38 base::OnceClosure task, |
39 base::TimeDelta delay) override { | 39 base::TimeDelta delay) override { |
40 return true; | 40 return true; |
41 } | 41 } |
42 bool PostDelayedTask(const tracked_objects::Location& from_here, | 42 bool PostDelayedTask(const tracked_objects::Location& from_here, |
43 base::Closure task, | 43 base::OnceClosure task, |
44 base::TimeDelta delay) override { | 44 base::TimeDelta delay) override { |
45 return true; | 45 return true; |
46 } | 46 } |
47 bool RunsTasksOnCurrentThread() const override { return true; } | 47 bool RunsTasksOnCurrentThread() const override { return true; } |
48 | 48 |
49 protected: | 49 protected: |
50 ~FakeTaskRunner() override {} | 50 ~FakeTaskRunner() override {} |
51 }; | 51 }; |
52 | 52 |
53 #if defined(USE_OZONE) | 53 #if defined(USE_OZONE) |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 plane_2.plane_z_order = 1; | 234 plane_2.plane_z_order = 1; |
235 list.push_back(plane_1); | 235 list.push_back(plane_1); |
236 list.push_back(plane_2); | 236 list.push_back(plane_2); |
237 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); | 237 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); |
238 EXPECT_FALSE(list[0].overlay_handled); | 238 EXPECT_FALSE(list[0].overlay_handled); |
239 } | 239 } |
240 #endif // defined(USE_OZONE) | 240 #endif // defined(USE_OZONE) |
241 | 241 |
242 } // namespace | 242 } // namespace |
243 } // namespace content | 243 } // namespace content |
OLD | NEW |