OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/gpu/gpu_internals_ui.h" | 5 #include "content/browser/gpu/gpu_internals_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "content/public/browser/web_ui.h" | 23 #include "content/public/browser/web_ui.h" |
24 #include "content/public/browser/web_ui_data_source.h" | 24 #include "content/public/browser/web_ui_data_source.h" |
25 #include "content/public/browser/web_ui_message_handler.h" | 25 #include "content/public/browser/web_ui_message_handler.h" |
26 #include "content/public/common/content_client.h" | 26 #include "content/public/common/content_client.h" |
27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
28 #include "content/public/common/url_constants.h" | 28 #include "content/public/common/url_constants.h" |
29 #include "gpu/config/gpu_feature_type.h" | 29 #include "gpu/config/gpu_feature_type.h" |
30 #include "gpu/config/gpu_info.h" | 30 #include "gpu/config/gpu_info.h" |
31 #include "grit/content_resources.h" | 31 #include "grit/content_resources.h" |
| 32 |
| 33 |
| 34 #if defined(ANGLE_DX11) |
| 35 #include "third_party/angle_dx11/src/common/version.h" |
| 36 #else |
32 #include "third_party/angle/src/common/version.h" | 37 #include "third_party/angle/src/common/version.h" |
| 38 #endif |
33 | 39 |
34 namespace content { | 40 namespace content { |
35 namespace { | 41 namespace { |
36 | 42 |
37 struct GpuFeatureInfo { | 43 struct GpuFeatureInfo { |
38 std::string name; | 44 std::string name; |
39 uint32 blocked; | 45 uint32 blocked; |
40 bool disabled; | 46 bool disabled; |
41 std::string disabled_description; | 47 std::string disabled_description; |
42 bool fallback_to_software; | 48 bool fallback_to_software; |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 : WebUIController(web_ui) { | 660 : WebUIController(web_ui) { |
655 web_ui->AddMessageHandler(new GpuMessageHandler()); | 661 web_ui->AddMessageHandler(new GpuMessageHandler()); |
656 | 662 |
657 // Set up the chrome://gpu/ source. | 663 // Set up the chrome://gpu/ source. |
658 BrowserContext* browser_context = | 664 BrowserContext* browser_context = |
659 web_ui->GetWebContents()->GetBrowserContext(); | 665 web_ui->GetWebContents()->GetBrowserContext(); |
660 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 666 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
661 } | 667 } |
662 | 668 |
663 } // namespace content | 669 } // namespace content |
OLD | NEW |