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/gfx/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/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/string_number_conversions.h" | |
15 #include "base/time.h" | |
16 #include "base/debug/trace_event.h" | 14 #include "base/debug/trace_event.h" |
17 #include "base/file_path.h" | 15 #include "base/file_path.h" |
18 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
19 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
20 #include "base/scoped_native_library.h" | 18 #include "base/scoped_native_library.h" |
| 19 #include "base/string_number_conversions.h" |
21 #include "base/stringprintf.h" | 20 #include "base/stringprintf.h" |
22 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
23 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
24 #include "base/threading/thread_restrictions.h" | 23 #include "base/threading/thread_restrictions.h" |
| 24 #include "base/time.h" |
25 #include "base/tracked_objects.h" | 25 #include "base/tracked_objects.h" |
26 #include "base/win/wrapped_window_proc.h" | 26 #include "base/win/wrapped_window_proc.h" |
27 #include "ui/base/win/hwnd_util.h" | 27 #include "ui/base/win/hwnd_util.h" |
28 #include "ui/gfx/gl/gl_switches.h" | 28 #include "ui/gfx/gl/gl_switches.h" |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 typedef HRESULT (WINAPI *Direct3DCreate9ExFunc)(UINT sdk_version, | 32 typedef HRESULT (WINAPI *Direct3DCreate9ExFunc)(UINT sdk_version, |
33 IDirect3D9Ex **d3d); | 33 IDirect3D9Ex **d3d); |
34 | 34 |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 return presenter_->Present(); | 674 return presenter_->Present(); |
675 } | 675 } |
676 | 676 |
677 bool AcceleratedSurface::CopyTo(const gfx::Size& size, void* buf) { | 677 bool AcceleratedSurface::CopyTo(const gfx::Size& size, void* buf) { |
678 return presenter_->CopyTo(size, buf); | 678 return presenter_->CopyTo(size, buf); |
679 } | 679 } |
680 | 680 |
681 void AcceleratedSurface::Suspend() { | 681 void AcceleratedSurface::Suspend() { |
682 presenter_->Suspend(); | 682 presenter_->Suspend(); |
683 } | 683 } |
OLD | NEW |