| 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 "blimp/client/feature/compositor/blimp_compositor_manager.h" | 5 #include "blimp/client/feature/compositor/blimp_compositor_manager.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "blimp/client/core/compositor/blob_image_serialization_processor.h" |
| 9 #include "blimp/client/feature/compositor/blimp_layer_tree_settings.h" | 10 #include "blimp/client/feature/compositor/blimp_layer_tree_settings.h" |
| 10 #include "blimp/client/feature/compositor/blob_image_serialization_processor.h" | |
| 11 #include "blimp/common/compositor/blimp_task_graph_runner.h" | 11 #include "blimp/common/compositor/blimp_task_graph_runner.h" |
| 12 #include "cc/proto/compositor_message.pb.h" | 12 #include "cc/proto/compositor_message.pb.h" |
| 13 | 13 |
| 14 namespace blimp { | 14 namespace blimp { |
| 15 namespace client { | 15 namespace client { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 base::LazyInstance<blimp::BlimpTaskGraphRunner> g_task_graph_runner = | 18 base::LazyInstance<blimp::BlimpTaskGraphRunner> g_task_graph_runner = |
| 19 LAZY_INSTANCE_INITIALIZER; | 19 LAZY_INSTANCE_INITIALIZER; |
| 20 | 20 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 BlimpCompositor* BlimpCompositorManager::GetCompositor(int render_widget_id) { | 204 BlimpCompositor* BlimpCompositorManager::GetCompositor(int render_widget_id) { |
| 205 CompositorMap::const_iterator it = compositors_.find(render_widget_id); | 205 CompositorMap::const_iterator it = compositors_.find(render_widget_id); |
| 206 if (it == compositors_.end()) | 206 if (it == compositors_.end()) |
| 207 return nullptr; | 207 return nullptr; |
| 208 return it->second.get(); | 208 return it->second.get(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace client | 211 } // namespace client |
| 212 } // namespace blimp | 212 } // namespace blimp |
| OLD | NEW |