| 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 | 7 |
| 8 // The "GPU plugin" is currently implemented as a special kind of | 8 // The "GPU plugin" is currently implemented as a special kind of |
| 9 // NPAPI plugin to provide high-performance on-screen 3D rendering for | 9 // NPAPI plugin to provide high-performance on-screen 3D rendering for |
| 10 // Pepper 3D. | 10 // Pepper 3D. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "ui/gfx/native_widget_types.h" | 34 #include "ui/gfx/native_widget_types.h" |
| 35 #include "ui/gfx/rect.h" | 35 #include "ui/gfx/rect.h" |
| 36 #include "ui/surface/transport_dib.h" | 36 #include "ui/surface/transport_dib.h" |
| 37 | 37 |
| 38 namespace webkit { | 38 namespace webkit { |
| 39 namespace npapi { | 39 namespace npapi { |
| 40 struct WebPluginGeometry; | 40 struct WebPluginGeometry; |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace content { |
| 44 class AcceleratedSurfaceContainerManagerMac; | 45 class AcceleratedSurfaceContainerManagerMac; |
| 45 | 46 |
| 46 class AcceleratedSurfaceContainerMac { | 47 class AcceleratedSurfaceContainerMac { |
| 47 public: | 48 public: |
| 48 AcceleratedSurfaceContainerMac( | 49 AcceleratedSurfaceContainerMac( |
| 49 AcceleratedSurfaceContainerManagerMac* manager, | 50 AcceleratedSurfaceContainerManagerMac* manager, |
| 50 bool opaque); | 51 bool opaque); |
| 51 virtual ~AcceleratedSurfaceContainerMac(); | 52 virtual ~AcceleratedSurfaceContainerMac(); |
| 52 | 53 |
| 53 // Sets the backing store and size of this accelerated surface container. | 54 // Sets the backing store and size of this accelerated surface container. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Stores if the plugin has a visible state. | 147 // Stores if the plugin has a visible state. |
| 147 bool visible_; | 148 bool visible_; |
| 148 | 149 |
| 149 // Stores if the plugin's IOSurface has been swapped before. Used to not show | 150 // Stores if the plugin's IOSurface has been swapped before. Used to not show |
| 150 // it before it hasn't been painted to at least once. | 151 // it before it hasn't been painted to at least once. |
| 151 bool was_painted_to_; | 152 bool was_painted_to_; |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); | 154 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); |
| 154 }; | 155 }; |
| 155 | 156 |
| 157 } // namespace content |
| 158 |
| 156 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ | 159 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ |
| OLD | NEW |