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 "components/html_viewer/global_state.h" | 5 #include "components/html_viewer/global_state.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/command_line.h" | 12 #include "base/command_line.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "build/build_config.h" |
12 #include "cc/blink/web_layer_impl.h" | 15 #include "cc/blink/web_layer_impl.h" |
13 #include "cc/layers/layer_settings.h" | 16 #include "cc/layers/layer_settings.h" |
14 #include "components/html_viewer/blink_platform_impl.h" | 17 #include "components/html_viewer/blink_platform_impl.h" |
15 #include "components/html_viewer/blink_settings_impl.h" | 18 #include "components/html_viewer/blink_settings_impl.h" |
16 #include "components/html_viewer/media_factory.h" | 19 #include "components/html_viewer/media_factory.h" |
17 #include "components/scheduler/renderer/renderer_scheduler.h" | 20 #include "components/scheduler/renderer/renderer_scheduler.h" |
18 #include "gin/v8_initializer.h" | 21 #include "gin/v8_initializer.h" |
19 #include "mojo/application/public/cpp/application_impl.h" | 22 #include "mojo/application/public/cpp/application_impl.h" |
20 #include "mojo/logging/init_logging.h" | 23 #include "mojo/logging/init_logging.h" |
21 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | 24 #include "mojo/services/tracing/public/cpp/tracing_impl.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 return gpu_info_.get(); | 196 return gpu_info_.get(); |
194 } | 197 } |
195 | 198 |
196 void GlobalState::GetGpuInfoCallback(mus::mojom::GpuInfoPtr gpu_info) { | 199 void GlobalState::GetGpuInfoCallback(mus::mojom::GpuInfoPtr gpu_info) { |
197 CHECK(gpu_info); | 200 CHECK(gpu_info); |
198 gpu_info_ = gpu_info.Pass(); | 201 gpu_info_ = gpu_info.Pass(); |
199 gpu_service_.reset(); | 202 gpu_service_.reset(); |
200 } | 203 } |
201 | 204 |
202 } // namespace html_viewer | 205 } // namespace html_viewer |
OLD | NEW |