| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ | 5 #ifndef UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ |
| 6 #define UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ | 6 #define UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <OpenGL/OpenGL.h> | 8 #include <OpenGL/OpenGL.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 13 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 14 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 16 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" | 15 #include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" |
| 17 #include "ui/gl/gpu_switching_observer.h" | 16 #include "ui/gl/gpu_switching_observer.h" |
| 18 #include "ui/gl/scoped_cgl.h" | 17 #include "ui/gl/scoped_cgl.h" |
| 19 | 18 |
| 20 namespace ui { | 19 namespace ui { |
| 21 | 20 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // The global map from window number and window ordering to | 64 // The global map from window number and window ordering to |
| 66 // context data. | 65 // context data. |
| 67 typedef std::map<Type, IOSurfaceContext*> TypeMap; | 66 typedef std::map<Type, IOSurfaceContext*> TypeMap; |
| 68 static base::LazyInstance<TypeMap> type_map_; | 67 static base::LazyInstance<TypeMap> type_map_; |
| 69 static TypeMap* type_map(); | 68 static TypeMap* type_map(); |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace ui | 71 } // namespace ui |
| 73 | 72 |
| 74 #endif // UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ | 73 #endif // UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ |
| OLD | NEW |