| 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_CACA_CACA_WINDOW_MANAGER_H_ | 5 #ifndef UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ |
| 6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ | 6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 CacaWindowManager(); | 27 CacaWindowManager(); |
| 28 ~CacaWindowManager() override; | 28 ~CacaWindowManager() override; |
| 29 | 29 |
| 30 // Register a new libcaca window/instance. Returns the window id. | 30 // Register a new libcaca window/instance. Returns the window id. |
| 31 int32_t AddWindow(CacaWindow* window); | 31 int32_t AddWindow(CacaWindow* window); |
| 32 | 32 |
| 33 // Remove a libcaca window/instance. | 33 // Remove a libcaca window/instance. |
| 34 void RemoveWindow(int32_t window_id, CacaWindow* window); | 34 void RemoveWindow(int32_t window_id, CacaWindow* window); |
| 35 | 35 |
| 36 // ui::SurfaceFactoryOzone overrides: | 36 // ui::SurfaceFactoryOzone overrides: |
| 37 bool LoadEGLGLES2Bindings( | |
| 38 AddGLLibraryCallback add_gl_library, | |
| 39 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; | |
| 40 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 37 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
| 41 gfx::AcceleratedWidget widget) override; | 38 gfx::AcceleratedWidget widget) override; |
| 42 | 39 |
| 43 private: | 40 private: |
| 44 IDMap<CacaWindow> windows_; | 41 IDMap<CacaWindow> windows_; |
| 45 base::ThreadChecker thread_checker_; | 42 base::ThreadChecker thread_checker_; |
| 46 | 43 |
| 47 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager); | 44 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager); |
| 48 }; | 45 }; |
| 49 | 46 |
| 50 } // namespace ui | 47 } // namespace ui |
| 51 | 48 |
| 52 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ | 49 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ |
| OLD | NEW |