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 <stdlib.h> | 6 #include <stdlib.h> |
6 | 7 |
7 #if defined(OS_WIN) | |
8 #include <dwmapi.h> | |
9 #include <windows.h> | |
10 #endif | |
11 | |
12 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
13 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
14 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
15 #include "base/metrics/statistics_recorder.h" | 11 #include "base/metrics/statistics_recorder.h" |
16 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
17 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
19 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 15 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
20 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
21 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
(...skipping 18 matching lines...) Expand all Loading... |
40 #include "gpu/config/gpu_info_collector.h" | 36 #include "gpu/config/gpu_info_collector.h" |
41 #include "gpu/config/gpu_switches.h" | 37 #include "gpu/config/gpu_switches.h" |
42 #include "gpu/config/gpu_util.h" | 38 #include "gpu/config/gpu_util.h" |
43 #include "ui/events/platform/platform_event_source.h" | 39 #include "ui/events/platform/platform_event_source.h" |
44 #include "ui/gl/gl_context.h" | 40 #include "ui/gl/gl_context.h" |
45 #include "ui/gl/gl_implementation.h" | 41 #include "ui/gl/gl_implementation.h" |
46 #include "ui/gl/gl_surface.h" | 42 #include "ui/gl/gl_surface.h" |
47 #include "ui/gl/gl_switches.h" | 43 #include "ui/gl/gl_switches.h" |
48 #include "ui/gl/gpu_switching_manager.h" | 44 #include "ui/gl/gpu_switching_manager.h" |
49 | 45 |
| 46 #if defined(OS_WIN) |
| 47 #include <dwmapi.h> |
| 48 #include <windows.h> |
| 49 #endif |
| 50 |
50 #if defined(OS_ANDROID) | 51 #if defined(OS_ANDROID) |
51 #include "base/trace_event/memory_dump_manager.h" | 52 #include "base/trace_event/memory_dump_manager.h" |
52 #include "components/tracing/graphics_memory_dump_provider_android.h" | 53 #include "components/tracing/graphics_memory_dump_provider_android.h" |
53 #endif | 54 #endif |
54 | 55 |
55 #if defined(OS_WIN) | 56 #if defined(OS_WIN) |
56 #include "base/win/windows_version.h" | 57 #include "base/win/windows_version.h" |
57 #include "base/win/scoped_com_initializer.h" | 58 #include "base/win/scoped_com_initializer.h" |
58 #include "content/common/gpu/media/dxva_video_decode_accelerator_win.h" | 59 #include "content/common/gpu/media/dxva_video_decode_accelerator_win.h" |
59 #include "sandbox/win/src/sandbox.h" | 60 #include "sandbox/win/src/sandbox.h" |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 return true; | 577 return true; |
577 } | 578 } |
578 | 579 |
579 return false; | 580 return false; |
580 } | 581 } |
581 #endif // defined(OS_WIN) | 582 #endif // defined(OS_WIN) |
582 | 583 |
583 } // namespace. | 584 } // namespace. |
584 | 585 |
585 } // namespace content | 586 } // namespace content |
OLD | NEW |