OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MANAGER_MAC_
H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MANAGER_MAC_
H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MANAGER_MAC_
H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MANAGER_MAC_
H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 #include "ui/gfx/surface/transport_dib.h" | 15 #include "ui/surface/transport_dib.h" |
16 | 16 |
17 namespace gfx { | 17 namespace gfx { |
18 class Rect; | 18 class Rect; |
19 } | 19 } |
20 | 20 |
21 namespace webkit { | 21 namespace webkit { |
22 namespace npapi { | 22 namespace npapi { |
23 struct WebPluginGeometry; | 23 struct WebPluginGeometry; |
24 } | 24 } |
25 } | 25 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // Both |plugin_window_to_container_map_| and the | 91 // Both |plugin_window_to_container_map_| and the |
92 // AcceleratedSurfaceContainerMac in it are not threadsafe, but accessed from | 92 // AcceleratedSurfaceContainerMac in it are not threadsafe, but accessed from |
93 // multiple threads. All these accesses are guarded by this lock. | 93 // multiple threads. All these accesses are guarded by this lock. |
94 mutable base::Lock lock_; | 94 mutable base::Lock lock_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerManagerMac); | 96 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerManagerMac); |
97 }; | 97 }; |
98 | 98 |
99 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MANAGER_M
AC_H_ | 99 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MANAGER_M
AC_H_ |
OLD | NEW |