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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ |
7 #pragma once | |
8 | 7 |
9 // The "GPU plugin" is currently implemented as a special kind of | 8 // The "GPU plugin" is currently implemented as a special kind of |
10 // NPAPI plugin to provide high-performance on-screen 3D rendering for | 9 // NPAPI plugin to provide high-performance on-screen 3D rendering for |
11 // Pepper 3D. | 10 // Pepper 3D. |
12 // | 11 // |
13 // On Windows and X11 platforms the GPU plugin relies on cross-process | 12 // On Windows and X11 platforms the GPU plugin relies on cross-process |
14 // parenting of windows, which is not supported via any public APIs in | 13 // parenting of windows, which is not supported via any public APIs in |
15 // the Mac OS X window system. | 14 // the Mac OS X window system. |
16 // | 15 // |
17 // To achieve full hardware acceleration we use the new IOSurface APIs | 16 // To achieve full hardware acceleration we use the new IOSurface APIs |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 bool visible_; | 147 bool visible_; |
149 | 148 |
150 // Stores if the plugin's IOSurface has been swapped before. Used to not show | 149 // Stores if the plugin's IOSurface has been swapped before. Used to not show |
151 // it before it hasn't been painted to at least once. | 150 // it before it hasn't been painted to at least once. |
152 bool was_painted_to_; | 151 bool was_painted_to_; |
153 | 152 |
154 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); | 153 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); |
155 }; | 154 }; |
156 | 155 |
157 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ | 156 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ |
OLD | NEW |