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 "base/id_map.h" | 8 #include "base/id_map.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/threading/thread_checker.h" |
10 #include "ui/ozone/public/surface_factory_ozone.h" | 11 #include "ui/ozone/public/surface_factory_ozone.h" |
11 | 12 |
12 namespace gfx { | 13 namespace gfx { |
13 class Rect; | 14 class Rect; |
14 } | 15 } |
15 | 16 |
16 namespace ui { | 17 namespace ui { |
17 | 18 |
18 class CacaWindow; | 19 class CacaWindow; |
19 | 20 |
(...skipping 10 matching lines...) Expand all Loading... |
30 | 31 |
31 // ui::SurfaceFactoryOzone overrides: | 32 // ui::SurfaceFactoryOzone overrides: |
32 bool LoadEGLGLES2Bindings( | 33 bool LoadEGLGLES2Bindings( |
33 AddGLLibraryCallback add_gl_library, | 34 AddGLLibraryCallback add_gl_library, |
34 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; | 35 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; |
35 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 36 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
36 gfx::AcceleratedWidget widget) override; | 37 gfx::AcceleratedWidget widget) override; |
37 | 38 |
38 private: | 39 private: |
39 IDMap<CacaWindow> windows_; | 40 IDMap<CacaWindow> windows_; |
| 41 base::ThreadChecker thread_checker_; |
40 | 42 |
41 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager); | 43 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager); |
42 }; | 44 }; |
43 | 45 |
44 } // namespace ui | 46 } // namespace ui |
45 | 47 |
46 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ | 48 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ |
OLD | NEW |