OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ozone/platform/test/test_window_manager.h" | 5 #include "ui/ozone/platform/test/test_window_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 return location_; | 91 return location_; |
92 } | 92 } |
93 | 93 |
94 SurfaceFactoryOzone::HardwareState TestWindowManager::InitializeHardware() { | 94 SurfaceFactoryOzone::HardwareState TestWindowManager::InitializeHardware() { |
95 return INITIALIZED; | 95 return INITIALIZED; |
96 } | 96 } |
97 | 97 |
98 void TestWindowManager::ShutdownHardware() { | 98 void TestWindowManager::ShutdownHardware() { |
99 } | 99 } |
100 | 100 |
101 gfx::AcceleratedWidget TestWindowManager::GetAcceleratedWidget() { | |
102 NOTREACHED(); | |
103 return -1; | |
104 } | |
105 | |
106 scoped_ptr<SurfaceOzoneCanvas> TestWindowManager::CreateCanvasForWidget( | 101 scoped_ptr<SurfaceOzoneCanvas> TestWindowManager::CreateCanvasForWidget( |
107 gfx::AcceleratedWidget widget) { | 102 gfx::AcceleratedWidget widget) { |
108 TestWindow* window = windows_.Lookup(widget); | 103 TestWindow* window = windows_.Lookup(widget); |
109 DCHECK(window); | 104 DCHECK(window); |
110 return make_scoped_ptr<SurfaceOzoneCanvas>(new FileSurface(window->path())); | 105 return make_scoped_ptr<SurfaceOzoneCanvas>(new FileSurface(window->path())); |
111 } | 106 } |
112 | 107 |
113 bool TestWindowManager::LoadEGLGLES2Bindings( | 108 bool TestWindowManager::LoadEGLGLES2Bindings( |
114 AddGLLibraryCallback add_gl_library, | 109 AddGLLibraryCallback add_gl_library, |
115 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { | 110 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { |
116 return false; | 111 return false; |
117 } | 112 } |
118 | 113 |
119 } // namespace ui | 114 } // namespace ui |
OLD | NEW |