| 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> | 7 #include <stddef.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "cc/blink/web_layer_impl.h" | 15 #include "cc/blink/web_layer_impl.h" |
| 16 #include "cc/layers/layer_settings.h" | 16 #include "cc/layers/layer_settings.h" |
| 17 #include "components/html_viewer/blink_platform_impl.h" | 17 #include "components/html_viewer/blink_platform_impl.h" |
| 18 #include "components/html_viewer/blink_settings_impl.h" | 18 #include "components/html_viewer/blink_settings_impl.h" |
| 19 #include "components/html_viewer/media_factory.h" | 19 #include "components/html_viewer/media_factory.h" |
| 20 #include "components/scheduler/renderer/renderer_scheduler.h" | 20 #include "components/scheduler/renderer/renderer_scheduler.h" |
| 21 #include "gin/v8_initializer.h" | 21 #include "gin/v8_initializer.h" |
| 22 #include "mojo/application/public/cpp/application_impl.h" | |
| 23 #include "mojo/logging/init_logging.h" | 22 #include "mojo/logging/init_logging.h" |
| 24 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | 23 #include "mojo/services/tracing/public/cpp/tracing_impl.h" |
| 24 #include "mojo/shell/public/cpp/application_impl.h" |
| 25 #include "third_party/WebKit/public/web/WebKit.h" | 25 #include "third_party/WebKit/public/web/WebKit.h" |
| 26 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 26 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| 27 #include "ui/base/resource/resource_bundle.h" | 27 #include "ui/base/resource/resource_bundle.h" |
| 28 #include "ui/base/ui_base_paths.h" | 28 #include "ui/base/ui_base_paths.h" |
| 29 #include "ui/gfx/display.h" | 29 #include "ui/gfx/display.h" |
| 30 #include "ui/mojo/init/ui_init.h" | 30 #include "ui/mojo/init/ui_init.h" |
| 31 #include "v8/include/v8.h" | 31 #include "v8/include/v8.h" |
| 32 | 32 |
| 33 #if defined(OS_LINUX) && !defined(OS_ANDROID) | 33 #if defined(OS_LINUX) && !defined(OS_ANDROID) |
| 34 #include "components/font_service/public/cpp/font_loader.h" | 34 #include "components/font_service/public/cpp/font_loader.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 return gpu_info_.get(); | 196 return gpu_info_.get(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 void GlobalState::GetGpuInfoCallback(mus::mojom::GpuInfoPtr gpu_info) { | 199 void GlobalState::GetGpuInfoCallback(mus::mojom::GpuInfoPtr gpu_info) { |
| 200 CHECK(gpu_info); | 200 CHECK(gpu_info); |
| 201 gpu_info_ = std::move(gpu_info); | 201 gpu_info_ = std::move(gpu_info); |
| 202 gpu_service_.reset(); | 202 gpu_service_.reset(); |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace html_viewer | 205 } // namespace html_viewer |
| OLD | NEW |