| 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" |
| 11 #include "base/threading/thread_checker.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 12 #include "ui/ozone/platform/test/test_window.h" | 13 #include "ui/ozone/platform/test/test_window.h" |
| 13 #include "ui/ozone/public/surface_factory_ozone.h" | 14 #include "ui/ozone/public/surface_factory_ozone.h" |
| 14 | 15 |
| 15 namespace ui { | 16 namespace ui { |
| 16 | 17 |
| 17 class TestWindowManager : public SurfaceFactoryOzone { | 18 class TestWindowManager : public SurfaceFactoryOzone { |
| 18 public: | 19 public: |
| 19 explicit TestWindowManager(const base::FilePath& dump_location); | 20 explicit TestWindowManager(const base::FilePath& dump_location); |
| 20 ~TestWindowManager() override; | 21 ~TestWindowManager() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 36 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
| 36 gfx::AcceleratedWidget w) override; | 37 gfx::AcceleratedWidget w) override; |
| 37 bool LoadEGLGLES2Bindings( | 38 bool LoadEGLGLES2Bindings( |
| 38 AddGLLibraryCallback add_gl_library, | 39 AddGLLibraryCallback add_gl_library, |
| 39 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; | 40 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; |
| 40 | 41 |
| 41 private: | 42 private: |
| 42 base::FilePath location_; | 43 base::FilePath location_; |
| 43 | 44 |
| 44 IDMap<TestWindow> windows_; | 45 IDMap<TestWindow> windows_; |
| 46 base::ThreadChecker thread_checker_; |
| 45 | 47 |
| 46 DISALLOW_COPY_AND_ASSIGN(TestWindowManager); | 48 DISALLOW_COPY_AND_ASSIGN(TestWindowManager); |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 } // namespace ui | 51 } // namespace ui |
| 50 | 52 |
| 51 #endif // UI_OZONE_PLATFORM_TEST_FILE_SURFACE_FACTORY_H_ | 53 #endif // UI_OZONE_PLATFORM_TEST_FILE_SURFACE_FACTORY_H_ |
| OLD | NEW |