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 "ui/surface/accelerated_surface_win.h" | 5 #include "ui/surface/accelerated_surface_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/debug/trace_event.h" | 14 #include "base/debug/trace_event.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/message_loop/message_loop_proxy.h" | 18 #include "base/message_loop/message_loop_proxy.h" |
19 #include "base/scoped_native_library.h" | 19 #include "base/scoped_native_library.h" |
20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
21 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
22 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
23 #include "base/threading/thread_restrictions.h" | 23 #include "base/threading/thread_restrictions.h" |
24 #include "base/win/wrapped_window_proc.h" | 24 #include "base/win/wrapped_window_proc.h" |
25 #include "media/base/video_frame.h" | 25 #include "media/base/video_frame.h" |
26 #include "media/base/video_util.h" | 26 #include "media/base/video_util.h" |
27 #include "third_party/skia/include/core/SkBitmap.h" | 27 #include "third_party/skia/include/core/SkBitmap.h" |
28 #include "ui/base/latency_info.h" | 28 #include "ui/base/latency_info.h" |
29 #include "ui/base/win/hwnd_util.h" | |
30 #include "ui/base/win/shell.h" | 29 #include "ui/base/win/shell.h" |
31 #include "ui/gfx/dpi_win.h" | |
32 #include "ui/gfx/rect.h" | 30 #include "ui/gfx/rect.h" |
| 31 #include "ui/gfx/win/dpi.h" |
| 32 #include "ui/gfx/win/hwnd_util.h" |
33 #include "ui/gl/gl_switches.h" | 33 #include "ui/gl/gl_switches.h" |
34 #include "ui/surface/accelerated_surface_transformer_win.h" | 34 #include "ui/surface/accelerated_surface_transformer_win.h" |
35 #include "ui/surface/d3d9_utils_win.h" | 35 #include "ui/surface/d3d9_utils_win.h" |
36 #include "ui/surface/surface_switches.h" | 36 #include "ui/surface/surface_switches.h" |
37 | 37 |
38 namespace d3d_utils = ui_surface_d3d9_utils; | 38 namespace d3d_utils = ui_surface_d3d9_utils; |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 UINT GetPresentationInterval() { | 42 UINT GetPresentationInterval() { |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 presenter_->Suspend(); | 1090 presenter_->Suspend(); |
1091 } | 1091 } |
1092 | 1092 |
1093 void AcceleratedSurface::WasHidden() { | 1093 void AcceleratedSurface::WasHidden() { |
1094 presenter_->WasHidden(); | 1094 presenter_->WasHidden(); |
1095 } | 1095 } |
1096 | 1096 |
1097 void AcceleratedSurface::SetIsSessionLocked(bool locked) { | 1097 void AcceleratedSurface::SetIsSessionLocked(bool locked) { |
1098 presenter_->SetIsSessionLocked(locked); | 1098 presenter_->SetIsSessionLocked(locked); |
1099 } | 1099 } |
OLD | NEW |