Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: ui/surface/accelerated_surface_win.cc

Issue 10351002: ui: Move surface/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gpu DEPS Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/surface/accelerated_surface_win.h ('k') | ui/surface/io_surface_support_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « ui/surface/accelerated_surface_win.h ('k') | ui/surface/io_surface_support_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698