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_GPU_GPU_SURFACE_TRACKER_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_SURFACE_TRACKER_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_SURFACE_TRACKER_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_SURFACE_TRACKER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const scoped_refptr<SurfaceRef>& surface_ref); | 114 const scoped_refptr<SurfaceRef>& surface_ref); |
115 ~SurfaceInfo(); | 115 ~SurfaceInfo(); |
116 int renderer_id; | 116 int renderer_id; |
117 int render_widget_id; | 117 int render_widget_id; |
118 gfx::AcceleratedWidget native_widget; | 118 gfx::AcceleratedWidget native_widget; |
119 gfx::GLSurfaceHandle handle; | 119 gfx::GLSurfaceHandle handle; |
120 scoped_refptr<SurfaceRef> surface_ref; | 120 scoped_refptr<SurfaceRef> surface_ref; |
121 }; | 121 }; |
122 typedef std::map<int, SurfaceInfo> SurfaceMap; | 122 typedef std::map<int, SurfaceInfo> SurfaceMap; |
123 | 123 |
124 friend struct DefaultSingletonTraits<GpuSurfaceTracker>; | 124 friend struct base::DefaultSingletonTraits<GpuSurfaceTracker>; |
125 | 125 |
126 GpuSurfaceTracker(); | 126 GpuSurfaceTracker(); |
127 ~GpuSurfaceTracker() override; | 127 ~GpuSurfaceTracker() override; |
128 | 128 |
129 base::Lock lock_; | 129 base::Lock lock_; |
130 SurfaceMap surface_map_; | 130 SurfaceMap surface_map_; |
131 int next_surface_id_; | 131 int next_surface_id_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceTracker); | 133 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceTracker); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace content | 136 } // namespace content |
137 | 137 |
138 #endif // CONTENT_BROWSER_GPU_GPU_SURFACE_TRACKER_H_ | 138 #endif // CONTENT_BROWSER_GPU_GPU_SURFACE_TRACKER_H_ |
OLD | NEW |