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 #ifndef UI_OZONE_PLATFORM_TEST_FILE_SURFACE_FACTORY_H_ | 5 #ifndef UI_OZONE_PLATFORM_TEST_FILE_SURFACE_FACTORY_H_ |
6 #define UI_OZONE_PLATFORM_TEST_FILE_SURFACE_FACTORY_H_ | 6 #define UI_OZONE_PLATFORM_TEST_FILE_SURFACE_FACTORY_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // Register a new window. Returns the window id. | 25 // Register a new window. Returns the window id. |
26 int32_t AddWindow(TestWindow* window); | 26 int32_t AddWindow(TestWindow* window); |
27 | 27 |
28 // Remove a window. | 28 // Remove a window. |
29 void RemoveWindow(int32_t window_id, TestWindow* window); | 29 void RemoveWindow(int32_t window_id, TestWindow* window); |
30 | 30 |
31 // User-supplied path for images. | 31 // User-supplied path for images. |
32 base::FilePath base_path() const; | 32 base::FilePath base_path() const; |
33 | 33 |
34 // SurfaceFactoryOzone: | 34 // SurfaceFactoryOzone: |
35 virtual HardwareState InitializeHardware() OVERRIDE; | |
36 virtual void ShutdownHardware() OVERRIDE; | |
37 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 35 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
38 gfx::AcceleratedWidget w) OVERRIDE; | 36 gfx::AcceleratedWidget w) OVERRIDE; |
39 virtual bool LoadEGLGLES2Bindings( | 37 virtual bool LoadEGLGLES2Bindings( |
40 AddGLLibraryCallback add_gl_library, | 38 AddGLLibraryCallback add_gl_library, |
41 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | 39 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
42 | 40 |
43 private: | 41 private: |
44 base::FilePath location_; | 42 base::FilePath location_; |
45 | 43 |
46 IDMap<TestWindow> windows_; | 44 IDMap<TestWindow> windows_; |
47 | 45 |
48 DISALLOW_COPY_AND_ASSIGN(TestWindowManager); | 46 DISALLOW_COPY_AND_ASSIGN(TestWindowManager); |
49 }; | 47 }; |
50 | 48 |
51 } // namespace ui | 49 } // namespace ui |
52 | 50 |
53 #endif // UI_OZONE_PLATFORM_TEST_FILE_SURFACE_FACTORY_H_ | 51 #endif // UI_OZONE_PLATFORM_TEST_FILE_SURFACE_FACTORY_H_ |
OLD | NEW |