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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 #if defined(OS_ANDROID) | 53 #if defined(OS_ANDROID) |
54 #include "base/trace_event/memory_dump_manager.h" | 54 #include "base/trace_event/memory_dump_manager.h" |
55 #include "components/tracing/common/graphics_memory_dump_provider_android.h" | 55 #include "components/tracing/common/graphics_memory_dump_provider_android.h" |
56 #endif | 56 #endif |
57 | 57 |
58 #if defined(OS_WIN) | 58 #if defined(OS_WIN) |
59 #include "base/win/scoped_com_initializer.h" | 59 #include "base/win/scoped_com_initializer.h" |
60 #include "base/win/windows_version.h" | 60 #include "base/win/windows_version.h" |
61 #include "media/gpu/dxva_video_decode_accelerator_win.h" | 61 #include "media/gpu/dxva_video_decode_accelerator_win.h" |
| 62 #include "media/gpu/media_foundation_video_encode_accelerator_win.h" |
62 #include "sandbox/win/src/sandbox.h" | 63 #include "sandbox/win/src/sandbox.h" |
63 #endif | 64 #endif |
64 | 65 |
65 #if defined(USE_X11) | 66 #if defined(USE_X11) |
66 #include "ui/base/x/x11_util.h" // nogncheck | 67 #include "ui/base/x/x11_util.h" // nogncheck |
67 #include "ui/gfx/x/x11_switches.h" // nogncheck | 68 #include "ui/gfx/x/x11_switches.h" // nogncheck |
68 #endif | 69 #endif |
69 | 70 |
70 #if defined(OS_LINUX) | 71 #if defined(OS_LINUX) |
71 #include "content/public/common/sandbox_init.h" | 72 #include "content/public/common/sandbox_init.h" |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 bool WarmUpSandbox(const base::CommandLine& command_line) { | 483 bool WarmUpSandbox(const base::CommandLine& command_line) { |
483 { | 484 { |
484 TRACE_EVENT0("gpu", "Warm up rand"); | 485 TRACE_EVENT0("gpu", "Warm up rand"); |
485 // Warm up the random subsystem, which needs to be done pre-sandbox on all | 486 // Warm up the random subsystem, which needs to be done pre-sandbox on all |
486 // platforms. | 487 // platforms. |
487 (void) base::RandUint64(); | 488 (void) base::RandUint64(); |
488 } | 489 } |
489 | 490 |
490 #if defined(OS_WIN) | 491 #if defined(OS_WIN) |
491 media::DXVAVideoDecodeAccelerator::PreSandboxInitialization(); | 492 media::DXVAVideoDecodeAccelerator::PreSandboxInitialization(); |
| 493 media::MediaFoundationVideoEncodeAccelerator::PreSandboxInitialization(); |
492 #endif | 494 #endif |
493 return true; | 495 return true; |
494 } | 496 } |
495 | 497 |
496 #if !defined(OS_MACOSX) | 498 #if !defined(OS_MACOSX) |
497 bool CollectGraphicsInfo(gpu::GPUInfo& gpu_info) { | 499 bool CollectGraphicsInfo(gpu::GPUInfo& gpu_info) { |
498 TRACE_EVENT0("gpu,startup", "Collect Graphics Info"); | 500 TRACE_EVENT0("gpu,startup", "Collect Graphics Info"); |
499 | 501 |
500 bool res = true; | 502 bool res = true; |
501 gpu::CollectInfoResult result = gpu::CollectContextGraphicsInfo(&gpu_info); | 503 gpu::CollectInfoResult result = gpu::CollectContextGraphicsInfo(&gpu_info); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 return true; | 621 return true; |
620 } | 622 } |
621 | 623 |
622 return false; | 624 return false; |
623 } | 625 } |
624 #endif // defined(OS_WIN) | 626 #endif // defined(OS_WIN) |
625 | 627 |
626 } // namespace. | 628 } // namespace. |
627 | 629 |
628 } // namespace content | 630 } // namespace content |
OLD | NEW |